CPU load :
-
ps -eao "pcpu" | awk '{a+=$1} END {print a}'
Memory load :
-
ps -eao "pmem" | awk '{a+=$1} END {print a}'
CPU load :
Memory load :
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.
You can trackback this post from your own site
The last 5 post on planetOzh:
All time popular posts
Read and discover what I've written about:
See the complete archives
I've archived 5802 tracks. The 10 latest are...
See my last.fm profile
My recent bookmarks
Things & stuff (c) Ozh, 1996-2008. 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. 45 frags in 1.217 seconds. Pledge your allegiance. I'm a rolling thunder, a pouring rain. I feel so good I feel so numb yeah
wrote, on 04/May/04 at 12:12 am # :
Firstpost.
(au cas ou)