Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/sys/devices/system/cpu contains incorrect information for Intel big.LITTLE CPUs #9121

Open
2 tasks done
kimwalisch opened this issue Nov 5, 2022 · 1 comment
Open
2 tasks done
Labels

Comments

@kimwalisch
Copy link

Version

Microsoft Windows [Version 10.0.22621.674]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.16.3-microsoft-standard-WSL2

Distro Version

Ubuntu 22.04.1 LTS

Other Software

None

Repro Steps

The command below loops over all CPU cores and prints the sizes of the CPU's L1 data cache (per core).

for i in {0..64}; do cat /sys/devices/system/cpu/cpu$i/cache/index0/size 2>/dev/null; done | sort | uniq

Expected Behavior

For recent Intel big.LITTLE CPUs (>= 12th Gen, Alder Lake) this should print 32 KiB for the L1 data cache size of the efficiency CPU cores and 48 KiB for the L1 data cache size of the performance CPU cores.

for i in {0..64}; do cat /sys/devices/system/cpu/cpu$i/cache/index0/size 2>/dev/null; done | sort | uniq
32 KiB
48 KiB

Actual Behavior

The command below only prints 48 KiB for the L1 data cache size of the performance CPU cores.

for i in {0..64}; do cat /sys/devices/system/cpu/cpu$i/cache/index0/size 2>/dev/null; done | sort | uniq
48 KiB

Hence /sys/devices/system/cpu currently only contains information about the performance CPU cores and all information about the efficiency CPU cores is missing. Why does this matter? Because most CPU information libraries like e.g. pytorch/cpuinfo & open-mpi/hwloc rely on this CPU info and other programs depending on these libraries use this CPU information for runtime tuning to achieve the best performance for the user's CPU.

Diagnostic Logs

No response

@kimwalisch kimwalisch changed the title /sys/devices/system/cpu contains incorrect information for Intel bit.LITTLE CPUs /sys/devices/system/cpu contains incorrect information for Intel big.LITTLE CPUs Nov 5, 2022
@borjamunozf
Copy link

any news about this? Not sure if this issue could impact our ongoing performance problem in #11966

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants