mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware

Reply
 
Thread Tools
Old 2022-11-03, 09:49   #1
kwalisch
 
kwalisch's Avatar
 
Sep 2015

23·3 Posts
Default Help confirming Windows bug with Intel big.LITTLE CPUs (>= 12th Gen.)

Hi,

I am pretty confident I found a Windows bug (both Windows 10 & 11 are affected) with Intel big.LITTLE CPUs (>= 12th Gen.) that is severely impacting the performance of my primesieve program. However, I am unsure whether all Windows users are affected by this bug or only me. This Windows bug was not present on my PC about a year ago and could potentially have been triggered by me frequently enabling/disabling the efficiency CPU cores of my i5-12600 CPU in the BIOS. The problem is that Windows (GetLogicalProcessorInformationEx from kernel32.dll) does not report the cache sizes of the efficiency CPU cores, instead it only reports the cache sizes of the performance CPU cores.

If you own an Intel big.LITTLE CPUs (>= 12th Gen.) you can confirm the issue using the commands below:

Code:
winget install primesieve
primesieve --cpu-info
This should print information about the efficiency CPU cores with 32 KiB L1 data cache but instead prints information about the performance CPU cores with 48 KiB L1 data cache. Below is the incorrect output on my PC:

Code:
12th Gen Intel(R) Core(TM) i5-12600K
Logical CPU cores: 16
L1 cache size: 48 KiB
L2 cache size: 1280 KiB
L3 cache size: 20 MiB
L1 cache sharing: 2 threads
L2 cache sharing: 2 threads
L3 cache sharing: 16 threads
Another option for confirming this bug is to open the Windows Subsystem for Linux and print the different L1 data cache sizes recognized by WSL. For 12th & 13th gen. Intel big.LITTLE CPUs this should print 48KiB & 32 KiB but only prints 48KiB on my PC.

Code:
for i in {0..64}; do cat /sys/devices/system/cpu/cpu$i/cache/index0/size 2>/dev/null; done | uniq
48 KiB
If confirmed, this Windows bug is not only affecting primesieve but many of CPU Info libraries that are using GetLogicalProcessorInformationEx such as e.g. pytorch/cpuinfo and all of the programs that depend on these libraries. I have also opened opened an issue in the primesieve bug tracker for this: https://github.com/kimwalisch/primesieve/issues/129
kwalisch is offline   Reply With Quote
Old 2022-11-05, 12:39   #2
kwalisch
 
kwalisch's Avatar
 
Sep 2015

1816 Posts
Default

My Windows bug disappeared after updating to the latest Windows 11 version 22H2. However the WSL2 bug is stil present (but this is less critical).

Last fiddled with by kwalisch on 2022-11-05 at 12:40
kwalisch is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which DDR4 RAM is best for LL on intel CPUs? simon389 Hardware 46 2019-12-27 05:53
'Kernel memory leaking' Intel processor design flaw forces Linux, Windows redesign M344587487 Science & Technology 42 2018-11-17 13:07
Can non-K Intel CPUs overclock memory? Prime95 Hardware 5 2015-12-31 22:09
help - prime number confirming georgekarl Miscellaneous Math 3 2005-12-11 23:12
Apple to Switch to Intel CPUs? ewmayer Hardware 20 2005-06-24 01:56

All times are UTC. The time now is 16:28.


Fri Jul 7 16:28:58 UTC 2023 up 323 days, 13:57, 0 users, load averages: 2.71, 2.21, 1.82

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔