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