Comments (1)
Threads Per Core
is not going to be accurate.
But it does seem like there is something fishy with the latest Intels:
=== RUN TestMocks/GenuineIntel00B06A2_RaptorLakeP_04_CPUID.txt
mockcpu_test.go:180: Opening GenuineIntel00B06A2_RaptorLakeP_04_CPUID.txt
mockcpu_test.go:183: Name: 13th Gen Intel(R) Core(TM) i9-13900H
mockcpu_test.go:185: Max Function:0x20
mockcpu_test.go:187: Max Extended Function:0x80000008
mockcpu_test.go:188: VendorString: GenuineIntel
mockcpu_test.go:189: VendorID: Intel
mockcpu_test.go:190: PhysicalCores: 10
mockcpu_test.go:191: ThreadsPerCore: 2
mockcpu_test.go:192: LogicalCores: 20
mockcpu_test.go:193: Family 6 Model: 186 Stepping: 2
mockcpu_test.go:194: Features: ADX,AESNI,AVX,AVX2,AVXVNNI,BHI_CTRL,BMI1,BMI2,CETIBT,CETSS,CLMUL,CMOV,CMPXCHG8,CX16,ERMS,F16C,FLUSH_L1D,FMA3,FSRM,FXSR,FXSROPT,GFNI,HRESET,HTT,HYBRID_CPU,IA32_ARCH_CAP,IA32_CORE_CAP,IBPB,IDPRED_CTRL,KEYLOCKER,LAHF,LZCNT,MD_CLEAR,MMX,MOVBE,MOVDIR64B,MOVDIRI,NX,OSXSAVE,PCONFIG,POPCNT,PSFD,RDRAND,RDSEED,RDTSCP,RRSBA_CTRL,SERIALIZE,SHA,SPEC_CTRL_SSBD,SSE,SSE2,SSE3,SSE4,SSE42,SSSE3,STIBP,STOSB_SHORT,SYSEE,TME,VAES,VMX,VPCLMULQDQ,WAITPKG,X87,XGETBV1,XSAVE,XSAVEC,XSAVEOPT,XSAVES
mockcpu_test.go:195: Microarchitecture level: 3
mockcpu_test.go:196: Cacheline bytes: 64
mockcpu_test.go:197: L1 Instruction Cache: 32768 bytes
mockcpu_test.go:198: L1 Data Cache: 49152 bytes
mockcpu_test.go:199: L2 Cache: 1310720 bytes
mockcpu_test.go:200: L3 Cache: 25165824 bytes
mockcpu_test.go:201: Hz: 3000000000 Hz
mockcpu_test.go:202: Boost: 5400000000 Hz
- Total Cores: 14
- no of Performance-cores: 6
- no of Efficient-cores: 8
- Total Threads: 20
Problem seem to be:
func physicalCores() int {
v, _ := vendorID()
switch v {
case Intel:
return logicalCores() / threadsPerCore()
So some work will have to be put into changing the detection of this, and maybe some additional information on slow/fast cores.
from cpuid.
Related Issues (20)
- Process hangs for an hour on init HOT 9
- CPUID and NFD support: AVX_VNNI HOT 9
- Difference in characteristics between lscpu and cpuid go implementation for AMD Ryzen HOT 1
- Provide stepping information for Intel CPU HOT 1
- Possible SCE check issue HOT 13
- Looks at CPUID leaves it should not HOT 5
- L1 icache and dcache on M1 are the same sysctl HOT 1
- Can this package support detecting CPU microarchitecture information? HOT 3
- Discussion: Support detecting confidential guests (TDX, SNP, SEV) running on Azure nodes HOT 3
- invalid operation: 1 << (feat & flagMask) (shift count type FeatureID, must be unsigned integer) HOT 1
- I have one my Windows 10 Pro Physical Desktop Machine, still it's returning true for the call cpuid.CPU.VM() HOT 5
- Spurious debug line: "frequencies(): ..." HOT 1
- CPU.Hz returns 0? HOT 1
- CPU without L3 cache shows -1 bytes of L3 HOT 1
- main.go:7:2: cannot find package "github.com/klauspost/cpuid/v2" in any of: HOT 2
- main.go:7:2: cannot find package "github.com/klauspost/cpuid/v2" in any of: HOT 3
- Can this package support arm linux HOT 1
- Can not compile to amd64 in mac m1 arm HOT 1
- Support for memory encryption cpuids (AMD SME, SEV and Intel TME) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpuid.