Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Nov 2011
Load values in /proc/stat and /proc/[pid]/stat
I have a cyclic program which awakes every 1 ms and runs for 200 us. 'htop' does not measure the system load caused by this program correctly, I found the explanation for this in Documentation/cpu-load.txt.
But in the process list, 'htop' shows correctly 20% for the program, so it seems /proc/[pid]/stat measures cyclic programs correctly. Why doesn't /proc/stat use the same exact method for measuring?