Add hugetop command#392
Conversation
|
I wanted to reuse some functionality from |
Krysztal112233
left a comment
There was a problem hiding this comment.
I apologize for the late review of this PR. Since Debian's procps-ng does not currently include hugetop, I will continue the review later. I'm very sorry!
|
And since there were some conflicts due to the commits that were previously merged, could you please help fix them? |
575272b to
7c90f10
Compare
I checked and found that the hugetop command is only available in procps-ng version 4.0.5. As of now, the latest version of procps on Debian Daily is 4.0.4-9+b1. |
The hugetop command displays system-wide hugepage informantion as well as per-process hugepage information.
It has the flags
--human(for human-readable size output),--numa(to display info per numa core),--delay <N>(for display refresh) and--once(to only display once then exit). For now none of these flags are supported, and we currently only print once and then exit.The info shown is also very minimal, but it's the same one which is displayed by the original hugetop. Since we get the info from
/proc/meminfoand/sys/kernel/mm/hugepages/hugepages-<size>/...this is not portable at all and only works on linux.