Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding Process id which is taking maxm. load 1

Status
Not open for further replies.

samirm

Technical User
May 12, 2003
80
0
0
US
Hi AIX guru,

All of a sudden in one of my production server the uptime is showing as follows :-

10:09AM up 16 days, 7:58, 106 users, load average: 13.33, 7.09, 6.10

Is there any way I can find out the particular process which is making this much load in the system ?

ps aux work ?

Sam
 
top or topas

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
sam@nodeA: /home/sam > topas
topas: Unable to initialize Spmi interface
Spmi: Error 13 opening /dev/mem


Can't we get from "ps" command ? I can't remember at this time, but there were some combination of flag which used to return the load with respect to process details from maxm. to minm.
 
Can you run topas as root - that's the problem there.

I don't mind people who aren't what they seem. I just wish they'd make their mind up.

Alan Bennett.
 
Thanks Alan ..

I did silly thing by executing the topas without root.
I am getting the details ..now

 
...No probs.

*Thinks* I really must change my sig!!

I don't mind people who aren't what they seem. I just wish they'd make their mind up.

Alan Bennett.
 
Thanks Khalid,

For this wonderful link. I was exactly looking for the ps commands with desired flags instead of going for topas.
 
You can use variants of this, which I have set as a function:

ps auxw|egrep -v "^USER"|sort -n +4

Larger users at the bottom. Keeps down the eyestrain. Note that this is inaccurate when dealing with shared mem. Also note that I am not really a performance guy. Anther fun thing is 'svmon -P'.

IBM Certified -- AIX 4.3 Obfuscation
 
Hi

Following the ps commands i have collected

1) Displaying top CPU_consuming processes:

ps aux | head -1; ps aux | sort -rn +2 | head -10

2) Displaying top 10 memory-sonsuming processes:

ps aux | head -1; ps aux | sort -rn +3 | head

3) Displaying process in order of being penalized:

ps -eakl | head -1; ps -eakl | sort -rn +5

4) Displaying process in order of priority:

ps -eakl | sort -n +6 | head

5) Displaying process in order of nice value

ps -eakl | sort -n +7

6) Displaying the process in order of time

ps vx | head -1;ps vx | grep -v PID | sort -rn +3 | head -10

7) Displaying the process in order of real memory use

ps vx | head -1; ps vx | grep -v PID | sort -rn +6 | head -10

8) Displaying the process in order of I/O

ps vx | head -1; ps vx | grep -v PID | sort -rn +4 | head -10

9) Displaying WLM classes

ps -a -o pid, user, class, pcpu, pmem, args

10) Determinimg process ID of wait processes:

ps vg | head -1; ps vg | grep -w wait

11) Wait process bound to CPU

ps -mo THREAD -p <PID>


Hope this helps
 
KenCunningham..
Its Wonderful ..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top