Re: code cpustat.c
On Fri, 30 Jun 2006 16:18:58 +0300 (EEST)
"Ozgur Karatas" <ozgur@ozgurkaratas.com> wrote:
> Re,
> ps and top command gives the ram state. i am doing this to see cpu's
> load and usage.
huh?
My top shows (admittedly not on my desktop machine;) shows:
15:31:22 up 50 days, 2:41, 2 users, load average: 3,81, 3,85, 3,86
75 processes: 70 sleeping, 5 running, 0 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 99,9% 0,0% 0,0% 0,0% 0,0% 0,0% 0,0%
cpu00 100,0% 0,0% 0,0% 0,0% 0,0% 0,0% 0,0%
cpu01 100,0% 0,0% 0,0% 0,0% 0,0% 0,0% 0,0%
cpu02 99,8% 0,0% 0,2% 0,0% 0,0% 0,0% 0,0%
cpu03 100,0% 0,0% 0,0% 0,0% 0,0% 0,0% 0,0%
Mem: 15658564k av, 15618992k used, 39572k free, 0k shrd, 1138248k buff
10379544k actv, 3661724k in_d, 412448k in_c
Swap: 2048276k av, 1134532k used, 913744k free 5722464k cached
which will give the cpu load just fine...
grts Tim
Reply to: