Re: [PATCH] lscpu: fix incorrect number of sockets during hotplug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I have verified the patch and it works fine!Here is my analysis:

LSCPU O/P on my system without enabling and disabling cpus

Architecture:             ppc64le
  Byte Order:             Little Endian
CPU(s):                   384
  On-line CPU(s) list:    0-383
Model name:               POWER10 (raw), altivec supported
  Model:                  2.0 (pvr 0080 0200)
  Thread(s) per core:     8
  Core(s) per socket:     12
  Socket(s):              4
  Physical sockets:       2
  Physical chips:         2
  Physical cores/chip:    12



Before applying the patch
While repeatedly onlining/offlining cpus on my system , saw that socket number is higher. It doesn't happen if i do online/offline of cpu single time.

Architecture:             ppc64le
  Byte Order:             Little Endian
CPU(s):                   384
  On-line CPU(s) list:    0-3,5-7,9,11-15,17-383
  Off-line CPU(s) list:   4,8,10,16
Model name:               POWER10 (raw), altivec supported
  Model:                  2.0 (pvr 0080 0200)
  Thread(s) per core:     8
  Core(s) per socket:     9
  Socket(s):              5
  Physical sockets:       2
  Physical chips:         2
  Physical cores/chip:    12



After applying the patch :
Tried the same scenario again to online and offline the cpus in a loop continuously and it didn't show any wrong topology:

Architecture:             ppc64le
  Byte Order:             Little Endian
CPU(s):                   384
  On-line CPU(s) list:    0-3,5-7,9,11-15,17-383
  Off-line CPU(s) list:   4,8,10,16
Model name:               POWER10 (raw), altivec supported
  Model:                  2.0 (pvr 0080 0200)
  Thread(s) per core:     8
  Core(s) per socket:     12
  Socket(s):              4
  Physical sockets:       2
  Physical chips:         2
  Physical cores/chip:    12

Tested-by: Anushree Mathur <anushree.mathur@xxxxxxxxxxxxxxxxxx>

Thanks,
Anushree Mathur




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux