4 ms·
I was wondering the same. No way I would load a module just to monitor CPU.
by m82labs 9y ago
I was wondering the same. No way I would load a module just to monitor CPU.
- floatboth 9y agoFreeBSD already comes with cpuctl.ko which is used by Intel's pcm.x tools. No way Linux doesn't have something similar…
- mmrezaie 9y agoLinux has MSR module or one can use perf.
- gens 9y agoMaybe for the real-time cache usage display ? Or performance (in the sense of less noise while measuring) ? I'm tempted to try it out and see for myself, though. For posterity; Cpu counters for a lot of things can be gotten from userspace. The linux kernel exposes a lot of things in /proc (procfs) and /sys (sysfs). Programs like perf, slabtop (and probably others, that i can't remember now), use these informations to display more-or-less the same data as this program.