[Crunchstat] Report CPU accounting numbers accurately.
Expected by user: same as CPU usage figures reported by top (between 0 and 400 on a 4-core node).
Currently reported: CPU usage divided by number of cores available, rounded or truncated to an integer.
Both numbers are useful. Crunchstat should log the raw data, and let the post-processing step do the dividing and rounding as desired.Implementation:
- Log CPU load as a percentage of one CPU core. Round to 2 decimal places.
- Log #cores with each status update (instead of just when it changes) to make it easy to parse.
#2 Updated by Ward Vandewege about 5 years ago
- Subject changed from [Crunchstat] cpu accounting numbers appear off. They seem to never go above 10, so it's certainly not a percentage of CPU load (which is what I expected). to [Crunchstat] cpu accounting numbers appear off. They seem to not be a percentage of CPU load (which is what I expected).