So, the total memory reported by the resources binary includes both general and hugepages memory.
The issue with wrong counts turns out to be that when computing the "free" general memory, the reserved hugepages memory for the node should be subtracted.
So, the total memory reported by the resources binary includes both general and hugepages memory.
The issue with wrong counts turns out to be that when computing the "free" general memory, the reserved hugepages memory for the node should be subtracted.