Weird issue with multi socket CPUs
See original GitHub issueDescribe the bug
When running si.cpu()
on a multi-socket server the results are incorrect.
To Reproduce
- Get multi-socket server
- Run command
- Profit?
Current Output
{ manufacturer: 'Intel®',
brand: 'Xeon® X5650',
vendor: 'GenuineIntel',
family: '6',
model: '44',
stepping: '2',
revision: '',
voltage: '',
speed: '2.67',
speedmin: '',
speedmax: '',
cores: 24,
physicalCores: 3,
processors: 2,
socket: 'LGA1366',
cache: { l1d: 393216, l1i: 393216, l2: 3, l3: 24 } }
Expected behavior I think this is the correct result. The server is using 2x 6 core CPUs with 2 threads per core.
{ manufacturer: 'Intel®',
brand: 'Xeon® X5650',
vendor: 'GenuineIntel',
family: '6',
model: '44',
stepping: '2',
revision: '',
voltage: '',
speed: '2.67',
speedmin: '',
speedmax: '',
cores: 24,
physicalCores: 12,
processors: 2,
socket: 'LGA1366',
cache: { l1d: 393216, l1i: 393216, l2: 3, l3: 24 } }
Environment (please complete the following information):
- systeminformation package version:
latest
- OS:
macOS
andUnraid
- Hardware:
MacBook Pro 2010
andDell R710
Additional context
For reference the same version of si
works perfect on my single-socket Macbook.
{
manufacturer: 'Intel®',
brand: 'Core™ i5 M 520',
vendor: 'GenuineIntel',
family: '6',
model: '37',
stepping: '5',
revision: '',
voltage: '',
speed: '2.40',
speedmin: '2.40',
speedmax: '2.40',
cores: 4,
physicalCores: 2,
processors: 1,
socket: '',
cache: { l1d: 32768, l1i: 32768, l2: 262144, l3: 3145728 }
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Why isn't dual/quad processor more common? | Ars OpenForum
The problem is that multi-socket CPUs have a whole lot of extra stuff which keeps cache coherency between the sockets which you don't...
Read more >Why won't my motherboard work with two CPUs? - Super User
No issue with the actual sockets (no bent pins);; Updated BIOS, no change; Reset CMOS, no change. What could be wrong here? The...
Read more >Weird 10130: Only one core, one socket, one logical ...
After upgrading my DELL Venue Pro 11 from 10122 to 10130, the task manager shows just one core instead of 4 cores like...
Read more >Do Dual CPUs Provide Fault Tolerance? - Server Fault
In a normal dual-socket system, no, although there are servers that do permit hot-swapping of processors and RAM. So these things do exist, ......
Read more >Why isn't there a motherboard that has 2 CPU sockets? - Quora
No. The interconnects between the sockets on a motherboard are slower than the interconnects between cores on a die because they span a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@OmgImAlexis - thank you for testing! New version published on npm v4.14.12
@OmgImAlexis I changed the code now (not yet released on npm). Can you test it on your side? you only need to grab
lib/cpu.js
from github and replace your existing one. If this returns good results, I will publish this on npm. Thank you in advance!!