Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* offline CPUs shown in sysfs core_siblings mask
@ 2019-09-11 13:23 Brice Goglin
  2019-09-11 16:06 ` James Morse
  0 siblings, 1 reply; 4+ messages in thread
From: Brice Goglin @ 2019-09-11 13:23 UTC (permalink / raw)
  To: linux-arm-kernel

Hello

We have a report from a user of hwloc/lstopo on ThunderX2 that complains
that offline CPUs are shown in sysfs cpu core_siblings files.

$ cat sys/devices/system/cpu/*/topology/core_siblings
000000,0fffffff
000000,0fffffff
000000,0fffffff
000000,0fffffff
ffffff,f0000000
ffffff,f0000000
ffffff,f0000000
ffffff,f0000000

Only 8 online logicial CPUs, but 56 are shown in these masks. This is on
RHEL7 with a kernel 4.14.0-115.2.2.el7a.aarch64 but I couldn't find any
significant change in Linux git.

On x86, only online CPUs are shown, you would get:

$ cat sys/devices/system/cpu/*/topology/core_siblings
000000,0000000f
000000,0000000f
000000,0000000f
000000,0000000f
000000,f0000000
000000,f0000000
000000,f0000000
000000,f0000000

I guess thread_siblings has the same behavior but I couldn't test it.

Do you ever plan to align the ARM behavior with x86? I couldn't find
anything in the doc stating whether offline CPUs are supposed to be
shown there, but it would be nice to have the same behavior across
different architectures. I couldn't find any such code for POWER either.

Brice



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-12  8:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-11 13:23 offline CPUs shown in sysfs core_siblings mask Brice Goglin
2019-09-11 16:06 ` James Morse
2019-09-11 16:14   ` Sudeep Holla
2019-09-12  8:09   ` Brice Goglin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox