2007-09-28

Process memory usage summary in AIX

This is from the Performance Management book on the AIX Infocenter. A useful command to list the top 15 memory-using processes on the system.
svmon -Pt15 | perl -e 'while(<>){print if($.==2||$&&&!$s++);$.=0 if(/^-+$/)}'

Labels:

1 Comments:

At Thursday, March 27, 2008 at 1:56:00 PM GMT+3 , Blogger Unknown said...

I suggest the shorter form :

svmon -Pt15 | perl -ne 'print if($.==2||$&&&!$s++);$.=0 if(/^-+$/)'


I'm pretty sure we can do shorter, but I'm hungry and I'm going to a pretty Japanese Bar at La Defense ;)

--
David "Sniper" Rigaudiere

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home