PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : /proc/stat



dakjo
16-04-2003, 16:01
Tach,

ich hab da so nen Problem mit /proc/stat.

Ich will die derzeitige CPU Last ermittel ich habe mir auch schon gkrellm angeschaut nur werde ich da nicht so ganz schlau draus.

In Proc stat steht ja z.B. folgendes.

cpu 12689461 16614381 10418010 777360374
cpu0 6292673 8307643 5158626 388782171
cpu1 6396788 8306738 5259384 388578203
page 738128955 208572696
swap 116579 82890
........


Wie ermittle ich jetzt daraus die Last ?

Ich weiss wass es ist, nähmlich
cpu total_user total_nice total_sys total_idle
cpu0 cpu0_user cpu0_nice cpu0_sys cpu0_idle

Aber wie werte ich das aus? Und was sind jiffies ?????????

:confused:
:confused:

anda_skoa
16-04-2003, 16:15
Original geschrieben von dakjo

Wie ermittle ich jetzt daraus die Last ?

Ich weiss wass es ist, nähmlich
cpu total_user total_nice total_sys total_idle
cpu0 cpu0_user cpu0_nice cpu0_sys cpu0_idle

Aber wie werte ich das aus? Und was sind jiffies ?????????


Ich schätze du addierst einfach die Werte, dann hast du 100%.
Welcher Wert dann wieviel Prozent ist, dürfte danach ja kein Problem mehr sein.

Ciao,
_

dakjo
16-04-2003, 18:40
Danke schonmal aber was sind jiffies ?

tkortkamp
16-04-2003, 18:52
Hi!


Original geschrieben von dakjo
Danke schonmal aber was sind jiffies ?
"jiffies" sind auch als "clock ticks" bekannt.
Definition findest du hier: http://www.webopedia.com/TERM/C/clock_tick.html

c ya,
Tobias

dakjo
16-04-2003, 19:24
Alles klar danke :D

TheDodger
27-04-2004, 17:14
Wenn ich ehrlich sein soll ... ich hab nix verstanden :)