← Back to team overview

touch-packages team mailing list archive

[Bug 1427995] Re: lscpu -p is showing wrong values for Node component

 

** Description changed:

+ [Impact]
+ Any user of lscpu on systems with multiple NUMA nodes.
+ 
+ [Test case]
+ On a POWER8 system:
+ 1) Run 'lscpu'; take note of the values for "NUMA node# CPU(s)".
+ 2) Run 'lscpu -p'.
+ 
+ The values on the fourth column in lscpu -p output should match the node
+ for which the CPU (first column) is listed (or contained in the
+ displayed range). For example:
+ 
+ $ lscpu
+ [...]
+ NUMA node0 CPU(s):     0-12,14-39
+ [...]
+ NUMA node3 CPU(s):     13,40-79
+ [...]
+ $ lscpu -p
+ [...]
+ 12,1,0,0,,1,1,1,1
+ 13,1,0,3,,1,1,1,1
+ [...]
+ 39,4,0,0,,4,4,4,4
+ 40,5,1,3,,5,5,5,5
+ [..]
+ 
+ The fourth column for CPU 12 and 39 is "0", which matches the "node0" range of 0-12,14-39.
+ The fourth column for CPU 13 and 40 is "3", which matches the "node3" range 13,40-79.
+ 
+ [Regression potential]
+ This change is limited to the output of a command that can be parsed; so any regression would be erroneous values for node "names" or numbers, which may throw off data retrieved by parsing the output of lscpu.
+ 
+ This particular bug constitutes the fix to a regression in a previous
+ SRU (ubuntu7.4), which included changes to support discontinuous NUMA
+ nodes, and introduced the code this SRU changes, so the regression
+ potential is minimal (this particular feature of lscpu is already
+ broken).
+ 
+ ---
+ 
  ---Problem Description---
  lscpu -p is showing wrong values for Node component
-  
+ 
  ---uname output---
  Linux ubuntu 3.16.0-25-generic #14-Ubuntu ppc64le ppc64le ppc64le GNU/Linux
-  
- Machine Type = P8 
-  
+ 
+ Machine Type = P8
+ 
  ---Debugger---
  A debugger is not configured
-  
+ 
  ---Steps to Reproduce---
  Install a P8 machine with Ubuntu 14.04.02 ISO image in Power NV mode.
  Then execute the below test scenario.
  
  root@ubuntu-daily:~# lscpu -p
  # The following is the parsable format, which can be fed to other
  # programs. Each different item in every column has an unique ID
  # starting from zero.
  # CPU,Core,Socket,Node,,L1d,L1i,L2,L3
  0,0,0,0,,0,0,0,0
  1,0,0,1,,0,0,0,0
  2,0,0,16,,0,0,0,0
  3,0,0,17,,0,0,0,0
  4,0,0,0,,0,0,0,0
  5,0,0,0,,0,0,0,0
  6,0,0,33,,0,0,0,0
  7,0,0,0,,0,0,0,0
  8,1,0,0,,1,1,1,1
  9,1,0,0,,1,1,1,1
  10,1,0,-1429431768,,1,1,1,1
  11,1,0,16383,,1,1,1,1
  12,1,0,1852125029,,1,1,1,1
  13,1,0,777213279,,1,1,1,1
  14,1,0,81,,1,1,1,1
  15,1,0,0,,1,1,1,1
  16,2,0,1920169263,,2,2,2,2
  17,2,0,1634235183,,2,2,2,2
  18,2,0,1815045490,,2,2,2,2
  19,2,0,1818321775,,2,2,2,2
  20,2,0,1852125029,,2,2,2,2
  21,2,0,777213279,,2,2,2,2
  22,2,0,759583829,,2,2,2,2
  23,2,0,1953836600,,2,2,2,2
  24,3,0,1278163046,,3,3,3,3
  25,3,0,1162698563,,3,3,3,3
  26,3,0,1195463507,,3,3,3,3
  27,3,0,1966035781,,3,3,3,3
  28,3,0,762079604,,3,3,3,3
  29,3,0,1970170220,,3,3,3,3
  30,3,0,1869426296,,3,3,3,3
  31,3,0,0,,3,3,3,3
  32,4,1,0,,4,4,4,4
  33,4,1,0,,4,4,4,4
  34,4,1,177,,4,4,4,4
  35,4,1,0,,4,4,4,4
  36,4,1,269092192,,4,4,4,4
  37,4,1,256,,4,4,4,4
  38,4,1,1,,4,4,4,4
  39,4,1,16383,,4,4,4,4
  40,5,1,0,,5,5,5,5
  41,5,1,0,,5,5,5,5
  42,5,1,269096544,,5,5,5,5
  43,5,1,256,,5,5,5,5
  44,5,1,269092512,,5,5,5,5
  45,5,1,256,,5,5,5,5
  46,5,1,269097536,,5,5,5,5
  47,5,1,256,,5,5,5,5
  48,6,1,269092688,,6,6,6,6
  49,6,1,256,,6,6,6,6
  50,6,1,269098208,,6,6,6,6
  51,6,1,256,,6,6,6,6
  52,6,1,269096960,,6,6,6,6
  53,6,1,256,,6,6,6,6
  54,6,1,269097456,,6,6,6,6
  55,6,1,256,,6,6,6,6
  56,7,1,269096544,,7,7,7,7
  57,7,1,256,,7,7,7,7
  58,7,1,269098592,,7,7,7,7
  59,7,1,256,,7,7,7,7
  60,7,1,269097344,,7,7,7,7
  61,7,1,256,,7,7,7,7
  62,7,1,269098016,,7,7,7,7
  63,7,1,256,,7,7,7,7
  64,8,2,269096880,,8,8,8,8
  65,8,2,256,,8,8,8,8
  66,8,2,269098400,,8,8,8,8
  67,8,2,256,,8,8,8,8
  68,8,2,269097184,,8,8,8,8
  69,8,2,256,,8,8,8,8
  70,8,2,269097856,,8,8,8,8
  71,8,2,256,,8,8,8,8
  72,9,2,269096672,,9,9,9,9
  73,9,2,256,,9,9,9,9
  74,9,2,0,,9,9,9,9
  75,9,2,0,,9,9,9,9
  76,9,2,0,,9,9,9,9
  77,9,2,0,,9,9,9,9
  78,9,2,65,,9,9,9,9
  79,9,2,0,,9,9,9,9
  80,10,2,1920169263,,10,10,10,10
  81,10,2,1634235183,,10,10,10,10
  82,10,2,1815045490,,10,10,10,10
  83,10,2,1818321775,,10,10,10,10
  84,10,2,1852125029,,10,10,10,10
  85,10,2,777213279,,10,10,10,10
  86,10,2,759583829,,10,10,10,10
  87,10,2,1129066296,,10,10,10,10
  88,11,2,1397050719,,11,11,11,11
  89,11,2,1162297683,,11,11,11,11
  90,11,2,1953836883,,11,11,11,11
  91,11,2,1814916201,,11,11,11,11
  92,11,2,2020961897,,11,11,11,11
  93,11,2,7302446,,11,11,11,11
  94,11,2,113,,11,11,11,11
  95,11,2,0,,11,11,11,11
  96,12,3,269092448,,12,12,12,12
  97,12,3,256,,12,12,12,12
  98,12,3,1,,12,12,12,12
  99,12,3,16383,,12,12,12,12
  100,12,3,0,,12,12,12,12
  101,12,3,0,,12,12,12,12
  102,12,3,269092272,,12,12,12,12
  103,12,3,256,,12,12,12,12
  104,13,3,269092688,,13,13,13,13
  105,13,3,256,,13,13,13,13
  106,13,3,269096960,,13,13,13,13
  107,13,3,256,,13,13,13,13
  108,13,3,269096544,,13,13,13,13
  109,13,3,256,,13,13,13,13
  110,13,3,269097344,,13,13,13,13
  111,13,3,256,,13,13,13,13
  112,14,3,269096880,,14,14,14,14
  113,14,3,256,,14,14,14,14
  114,14,3,269097184,,14,14,14,14
  115,14,3,256,,14,14,14,14
  116,14,3,269096672,,14,14,14,14
  117,14,3,256,,14,14,14,14
  118,14,3,0,,14,14,14,14
  119,14,3,0,,14,14,14,14
  120,15,3,0,,15,15,15,15
  121,15,3,0,,15,15,15,15
  122,15,3,65,,15,15,15,15
  123,15,3,0,,15,15,15,15
  124,15,3,1920169263,,15,15,15,15
  125,15,3,1634235183,,15,15,15,15
  126,15,3,1815045490,,15,15,15,15
  127,15,3,1818321775,,15,15,15,15
  
  root@ubuntu-daily:~# dpkg --list | grep util-linux
  ii  util-linux                          2.20.1-5.1ubuntu20.4                ppc64el      Miscellaneous system utilities
  
- 
-  
- Contact Information = pavsubra@xxxxxxxxxx 
-  
- Userspace tool common name: /usr/bin/lscpu 
-  
- The userspace tool has the following bit modes: 64-bit 
+ Contact Information = pavsubra@xxxxxxxxxx
+ 
+ Userspace tool common name: /usr/bin/lscpu
+ 
+ The userspace tool has the following bit modes: 64-bit
  
  Userspace package: util-linux
  
  Userspace tool obtained from project website:  na

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1427995

Title:
  lscpu -p is showing wrong values for Node component

Status in util-linux package in Ubuntu:
  In Progress
Status in util-linux source package in Trusty:
  New

Bug description:
  [Impact]
  Any user of lscpu on systems with multiple NUMA nodes.

  [Test case]
  On a POWER8 system:
  1) Run 'lscpu'; take note of the values for "NUMA node# CPU(s)".
  2) Run 'lscpu -p'.

  The values on the fourth column in lscpu -p output should match the
  node for which the CPU (first column) is listed (or contained in the
  displayed range). For example:

  $ lscpu
  [...]
  NUMA node0 CPU(s):     0-12,14-39
  [...]
  NUMA node3 CPU(s):     13,40-79
  [...]
  $ lscpu -p
  [...]
  12,1,0,0,,1,1,1,1
  13,1,0,3,,1,1,1,1
  [...]
  39,4,0,0,,4,4,4,4
  40,5,1,3,,5,5,5,5
  [..]

  The fourth column for CPU 12 and 39 is "0", which matches the "node0" range of 0-12,14-39.
  The fourth column for CPU 13 and 40 is "3", which matches the "node3" range 13,40-79.

  [Regression potential]
  This change is limited to the output of a command that can be parsed; so any regression would be erroneous values for node "names" or numbers, which may throw off data retrieved by parsing the output of lscpu.

  This particular bug constitutes the fix to a regression in a previous
  SRU (ubuntu7.4), which included changes to support discontinuous NUMA
  nodes, and introduced the code this SRU changes, so the regression
  potential is minimal (this particular feature of lscpu is already
  broken).

  ---

  ---Problem Description---
  lscpu -p is showing wrong values for Node component

  ---uname output---
  Linux ubuntu 3.16.0-25-generic #14-Ubuntu ppc64le ppc64le ppc64le GNU/Linux

  Machine Type = P8

  ---Debugger---
  A debugger is not configured

  ---Steps to Reproduce---
  Install a P8 machine with Ubuntu 14.04.02 ISO image in Power NV mode.
  Then execute the below test scenario.

  root@ubuntu-daily:~# lscpu -p
  # The following is the parsable format, which can be fed to other
  # programs. Each different item in every column has an unique ID
  # starting from zero.
  # CPU,Core,Socket,Node,,L1d,L1i,L2,L3
  0,0,0,0,,0,0,0,0
  1,0,0,1,,0,0,0,0
  2,0,0,16,,0,0,0,0
  3,0,0,17,,0,0,0,0
  4,0,0,0,,0,0,0,0
  5,0,0,0,,0,0,0,0
  6,0,0,33,,0,0,0,0
  7,0,0,0,,0,0,0,0
  8,1,0,0,,1,1,1,1
  9,1,0,0,,1,1,1,1
  10,1,0,-1429431768,,1,1,1,1
  11,1,0,16383,,1,1,1,1
  12,1,0,1852125029,,1,1,1,1
  13,1,0,777213279,,1,1,1,1
  14,1,0,81,,1,1,1,1
  15,1,0,0,,1,1,1,1
  16,2,0,1920169263,,2,2,2,2
  17,2,0,1634235183,,2,2,2,2
  18,2,0,1815045490,,2,2,2,2
  19,2,0,1818321775,,2,2,2,2
  20,2,0,1852125029,,2,2,2,2
  21,2,0,777213279,,2,2,2,2
  22,2,0,759583829,,2,2,2,2
  23,2,0,1953836600,,2,2,2,2
  24,3,0,1278163046,,3,3,3,3
  25,3,0,1162698563,,3,3,3,3
  26,3,0,1195463507,,3,3,3,3
  27,3,0,1966035781,,3,3,3,3
  28,3,0,762079604,,3,3,3,3
  29,3,0,1970170220,,3,3,3,3
  30,3,0,1869426296,,3,3,3,3
  31,3,0,0,,3,3,3,3
  32,4,1,0,,4,4,4,4
  33,4,1,0,,4,4,4,4
  34,4,1,177,,4,4,4,4
  35,4,1,0,,4,4,4,4
  36,4,1,269092192,,4,4,4,4
  37,4,1,256,,4,4,4,4
  38,4,1,1,,4,4,4,4
  39,4,1,16383,,4,4,4,4
  40,5,1,0,,5,5,5,5
  41,5,1,0,,5,5,5,5
  42,5,1,269096544,,5,5,5,5
  43,5,1,256,,5,5,5,5
  44,5,1,269092512,,5,5,5,5
  45,5,1,256,,5,5,5,5
  46,5,1,269097536,,5,5,5,5
  47,5,1,256,,5,5,5,5
  48,6,1,269092688,,6,6,6,6
  49,6,1,256,,6,6,6,6
  50,6,1,269098208,,6,6,6,6
  51,6,1,256,,6,6,6,6
  52,6,1,269096960,,6,6,6,6
  53,6,1,256,,6,6,6,6
  54,6,1,269097456,,6,6,6,6
  55,6,1,256,,6,6,6,6
  56,7,1,269096544,,7,7,7,7
  57,7,1,256,,7,7,7,7
  58,7,1,269098592,,7,7,7,7
  59,7,1,256,,7,7,7,7
  60,7,1,269097344,,7,7,7,7
  61,7,1,256,,7,7,7,7
  62,7,1,269098016,,7,7,7,7
  63,7,1,256,,7,7,7,7
  64,8,2,269096880,,8,8,8,8
  65,8,2,256,,8,8,8,8
  66,8,2,269098400,,8,8,8,8
  67,8,2,256,,8,8,8,8
  68,8,2,269097184,,8,8,8,8
  69,8,2,256,,8,8,8,8
  70,8,2,269097856,,8,8,8,8
  71,8,2,256,,8,8,8,8
  72,9,2,269096672,,9,9,9,9
  73,9,2,256,,9,9,9,9
  74,9,2,0,,9,9,9,9
  75,9,2,0,,9,9,9,9
  76,9,2,0,,9,9,9,9
  77,9,2,0,,9,9,9,9
  78,9,2,65,,9,9,9,9
  79,9,2,0,,9,9,9,9
  80,10,2,1920169263,,10,10,10,10
  81,10,2,1634235183,,10,10,10,10
  82,10,2,1815045490,,10,10,10,10
  83,10,2,1818321775,,10,10,10,10
  84,10,2,1852125029,,10,10,10,10
  85,10,2,777213279,,10,10,10,10
  86,10,2,759583829,,10,10,10,10
  87,10,2,1129066296,,10,10,10,10
  88,11,2,1397050719,,11,11,11,11
  89,11,2,1162297683,,11,11,11,11
  90,11,2,1953836883,,11,11,11,11
  91,11,2,1814916201,,11,11,11,11
  92,11,2,2020961897,,11,11,11,11
  93,11,2,7302446,,11,11,11,11
  94,11,2,113,,11,11,11,11
  95,11,2,0,,11,11,11,11
  96,12,3,269092448,,12,12,12,12
  97,12,3,256,,12,12,12,12
  98,12,3,1,,12,12,12,12
  99,12,3,16383,,12,12,12,12
  100,12,3,0,,12,12,12,12
  101,12,3,0,,12,12,12,12
  102,12,3,269092272,,12,12,12,12
  103,12,3,256,,12,12,12,12
  104,13,3,269092688,,13,13,13,13
  105,13,3,256,,13,13,13,13
  106,13,3,269096960,,13,13,13,13
  107,13,3,256,,13,13,13,13
  108,13,3,269096544,,13,13,13,13
  109,13,3,256,,13,13,13,13
  110,13,3,269097344,,13,13,13,13
  111,13,3,256,,13,13,13,13
  112,14,3,269096880,,14,14,14,14
  113,14,3,256,,14,14,14,14
  114,14,3,269097184,,14,14,14,14
  115,14,3,256,,14,14,14,14
  116,14,3,269096672,,14,14,14,14
  117,14,3,256,,14,14,14,14
  118,14,3,0,,14,14,14,14
  119,14,3,0,,14,14,14,14
  120,15,3,0,,15,15,15,15
  121,15,3,0,,15,15,15,15
  122,15,3,65,,15,15,15,15
  123,15,3,0,,15,15,15,15
  124,15,3,1920169263,,15,15,15,15
  125,15,3,1634235183,,15,15,15,15
  126,15,3,1815045490,,15,15,15,15
  127,15,3,1818321775,,15,15,15,15

  root@ubuntu-daily:~# dpkg --list | grep util-linux
  ii  util-linux                          2.20.1-5.1ubuntu20.4                ppc64el      Miscellaneous system utilities

  Contact Information = pavsubra@xxxxxxxxxx

  Userspace tool common name: /usr/bin/lscpu

  The userspace tool has the following bit modes: 64-bit

  Userspace package: util-linux

  Userspace tool obtained from project website:  na

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1427995/+subscriptions