Re: [PATCH] lscpu: fix incorrect number of sockets during hotplug
Anushree Mathur <[email protected]>
| Newsgroups | org.kernel.vger.util-linux |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> Thanks, Anushree Mathur