pmdalinux: fix mem.numa.hugepages on non-sequential NUMA node ids - #2700
Conversation
refresh_sysfs_numa_hugepages() used the pmdaCache walk index as the NUMA node number when opening sysfs paths and building instance names. On ppc64le Power systems, firmware-assigned node ids are often non-sequential or omit node0, so the wrong directories were scanned and mem.numa.hugepages.* returned no values even when per-node hugepage sysfs entries existed. Use pernode_t::nodeid from pmdaCacheLookup(), consistent with numa_meminfo.c. Add qa/linux/sysfs-hugepages-004.tgz exercising a node1-only layout and update qa/1788 expected output. Resolves Red Hat bug RHEL-113057
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Repository UI (inherited), Organization UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughSummary by CodeRabbit
WalkthroughThe NUMA hugepage refresh now resolves each cache entry to its ChangesNUMA hugepage refresh
Poem
Merge Risk: ⚪ Minimal · up to This localized fix updates NUMA node handling and adds focused regression coverage; no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
refresh_sysfs_numa_hugepages()used the pmdaCache walk index as the NUMA node number when opening sysfs paths and building instance names. On ppc64le Power systems, firmware-assigned node ids are often non-sequential or omit node0, so the wrong directories were scanned andmem.numa.hugepages.*returned no values even when per-node hugepage sysfs entries existed.Use
pernode_t::nodeidfrompmdaCacheLookup(), consistent withnuma_meminfo.c. Addqa/linux/sysfs-hugepages-004.tgzexercising a node1-only layout and updateqa/1788expected output.Resolves Red Hat bug RHEL-113057