CPU load :
-
ps -eao "pcpu" | awk '{a+=$1} END {print a}'
Memory load :
-
ps -eao "pmem" | awk '{a+=$1} END {print a}'
Related posts
Shorter URL
Want to share or tweet this post? Please use this short URL: http://ozh.in/s
CPU load :
Memory load :
Want to share or tweet this post? Please use this short URL: http://ozh.in/s
This entry "CPU & Memory Load"
was posted on 01/04/2004 at 8:16 am and is tagged with Bash, Code, Linux
Watch this discussion : Comments RSS 2.0.
The last 5 post on planetOzh:
All time popular posts
Read and discover what I've written about:
See the complete archives
My recent bookmarks
See my last.fm profile
My latest favorite vids
Things & stuff (c) Ozh, 1996-2010. Googlebot, look at Ozh so I'm the first "Ozh" in Google's images damn it. Probably valid XHTML, but who cares ? Powered by Wordpress. 46 frags in 0.631 seconds. Pledge your allegiance. I'm a rolling thunder, a pouring rain. I feel so good I feel so numb yeah
commented, on 04/May/04 at 12:12 am # :
Firstpost.
(au cas ou)