[SRU] lscpu reports incorrect number of NUMA nodes on systems with discontinuous NUMA nodes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
util-linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
Running 'lscpu' on a system with discontinuous NUMA nodes (such as some IBM Power 8 hardware) will only display the continuous NUMA nodes. Users may be confused due to incorrect information.
[Test Case]
On a system with discontinuous NUMA nodes, just run the lscpu command
# ls -d /sys/devices/
/sys/devices/
# lscpu|grep NUMA
NUMA node(s): 2
NUMA node0 CPU(s): 0-39
NUMA node1 CPU(s): 40-79
[Regression Potential]
Since this is an informational command, anything relying on its output may experience new behavior.
This affects Trusty, but Utopic and Vivid are based on newer upstream releases that don't include this error.
This was fixed upstream (http:// git.kernel. org/cgit/ utils/util- linux/util- linux.git/) by commit e9074a167cb485f ea91be2cb20f68e 137b6d3246. There have been many changes, so I don't think updating to the new version is appropriate for a SRU. To backport this, I had to also pull in code from 416c43a9a5519ae 0e4c91e075cf42c 5cf0b5cbcb and dd3bc51a539ffdd 5c6c6b7d0b20acd 1f61bdd337.