Skip Menu |

This queue is for tickets about the Sys-Info-Driver-Windows CPAN distribution.

Report information
The Basics
Id: 129598
Status: new
Priority: 0/
Queue: Sys-Info-Driver-Windows

People
Owner: Nobody in particular
Requestors: mrudat [...] toraboka.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.78
Fixed in: (no value)



Subject: Possibly a documentation bug?
An i7-4790 occupies 1 socket, has 4 cores, and (with hyperthreading) presents 8 cores to the operating system. I was surprised to find that ->count returns 1 on Win32 (which if you're counting occupied sockets, is correct), but the documentation suggests that it counts cores, in which case it should probably return 4. Is ht only defined for CPUs that support hyperthreading, or should I always use ht to retrieve the maximum number of threads that it is possible to run in parallel? perl -MSys::Info -e"print Sys::Info->new->device('CPU')->count" 1 perl -MSys::Info -e"print Sys::Info->new->device('CPU')->ht" 8