120 points · by netmonk · 9y ago · 22 comments
I've said it before in talks, but if you want to write a new tool in this space, please write bustop - top for system busses.
(I'd also rather this tool didn't use a kernel module, of course, and I still don't understand why it needs to).
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.
Most of the things listed there can be gotten from userspace (through cpu instructions/registers, procfs, sysfs).
Do you know which one of those things can not be gotten in userspace ? Turbo boost state ? Topology ?
It would be cool if eBPF could read MSRs; then this kind of monitoring could be done though perf tracing.
It looked really nice, but I do not need that data bad enough to load a third-party kernel module. Or mess with my grub configuration.