LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 01-18-2004, 06:07 PM   #1
zepplin611
Member
 
Registered: Jan 2004
Distribution: AIX 4.3 RH 7,8,9 / Fedora C1/
Posts: 187

Rep: Reputation: 30
ps question on rs6000


Greetings AIX'ers

When doing some machine audits on an IBM rs6000 (aix 4.3.3.0 <--- lowest ML), i typed:

ps -aux and the following returned (it has been truncated for shortness here):

# ps aux|more
USER PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND
root 516 24.8 1.0 8 6352 - A Aug 04 239054:44 kproc
root 774 23.7 1.0 8 6352 - A Aug 04 227883:55 kproc
root 1032 23.1 1.0 8 6352 - A Aug 04 222423:01 kproc
root 1290 23.0 1.0 8 6352 - A Aug 04 221316:33 kproc
----- MORE HERE BUT DELETED -----


What are commands: kproc ? And why are the chewing up the cpu percentage?

This is a 4 cpu machine. While typing ' w ' the following returns:
# w
07:09PM up 167 days, 4:11, 8 users, load average: 1.68, 1.39, 1.47

however there are no jobs called kproc running on the machine (that is, jobs called kproc executed by regular users).

Any help is greatly appreciated.

zepplin611
 
Old 01-18-2004, 10:33 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
kproc are the kernels idle processes. There is one for each CPU. The PIDs will always be 516, 774, 1032, 1290 for a 4 processor machine.

Here is the output from one of our 4 processor boxes.
Code:
USER       PID %CPU %MEM   SZ  RSS    TTY STAT    STIME  TIME COMMAND
root       516 24.8  0.0   12 16140      - A      Dec 17 46544:50 wait
root       774 24.7  0.0   12 16140      - A      Dec 17 46287:13 wait
root      1032 24.5  0.0   12 16140      - A      Dec 17 45860:19 wait
root      1290 24.3  0.0   12 16140      - A      Dec 17 45555:39 wait
 
Old 01-19-2004, 05:53 AM   #3
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
Worth mentioning that the CPU is always doing something. The idle process is the process it runs when nothing is happening so it does not show up most stats.

When the CPU becomes busy, idle goes down (of course).
 
Old 01-19-2004, 09:17 AM   #4
zepplin611
Member
 
Registered: Jan 2004
Distribution: AIX 4.3 RH 7,8,9 / Fedora C1/
Posts: 187

Original Poster
Rep: Reputation: 30
thanks crabboy and iainr....i know this was an "AIX" question, but does linux have equally observable 'idle' processes that one can monitor?

thanks again,

zepplin611
 
Old 02-03-2004, 11:35 AM   #5
jc2it
LQ Newbie
 
Registered: Jan 2004
Posts: 29

Rep: Reputation: 15
Is the size of your idle process percentage a good indicator of how your hardware is handling the software? Also, is this cumulative or the current status? What I mean is does the idle process percentage calculate all of the idle time from the last reboot, or is this just the most recent five minutes?
 
Old 02-03-2004, 02:35 PM   #6
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
Quote:
Originally posted by jc2it
Is the size of your idle process percentage a good indicator of how your hardware is handling the software? Also, is this cumulative or the current status? What I mean is does the idle process percentage calculate all of the idle time from the last reboot, or is this just the most recent five minutes?
Run vmstat (e.g. vmstat 2). Ignore the first line (which shows stats since the last reboot) and look at the others which show current system performance.

The last four columns are usr, sys, idle and wait. Usr + sys is the total time the CPU is spending doing things. As a rule of thumb, on a normal system with interactive users (i.e. not doing batch processing) you want this to be below 70%. If the CPU usr + sys is consistently high, that's an indication that the system has too little processing power.

The "wait" is the system waiting for I/O. Again a very rough rule of thumb, but on a normal interactive workload you want this to be below 30%. If wait i/o is high, you can use iostat (or topas, or a few other tools) to identify hot spots. Idle in itself isn't very useful - you need to know whether the non-idle time is doing CPU work or waiting for I/O.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to sudy aix without rs6000 zhebincong AIX 2 04-23-2005 09:21 AM
rs6000 Install Error Toasty Linux - Hardware 0 03-15-2005 04:48 PM
IBM rs6000 fng_#1 Linux - Hardware 3 03-15-2005 04:26 PM
RS6000 B50 with Linux ???? camoura AIX 1 01-12-2005 11:14 AM
Rs6000 7043-240 kalzanth Linux - Hardware 0 01-10-2005 06:18 PM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 02:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration