gsass1 / NTop

💻 htop-like system-monitor for Windows with Vi-keybindings.
GNU General Public License v3.0
1.21k stars 69 forks source link

NTop shows incorrect number of cores #67

Closed isanych closed 2 weeks ago

isanych commented 2 months ago

VM configured with 48 vCPUs image

echo %NUMBER_OF_PROCESSORS%
48

but ntop 0.3.4 shows 32 cores

Name: Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz (32 Cores)
isanych commented 2 months ago

I've tested next code:

  SYSTEM_INFO SystemInfo;
  GetSystemInfo(&SystemInfo);
  std::cout << "GetSystemInfo dwNumberOfProcessors " << SystemInfo.dwNumberOfProcessors << std::endl;
  GetNativeSystemInfo(&SystemInfo);
  std::cout << "GetNativeSystemInfo dwNumberOfProcessors " << SystemInfo.dwNumberOfProcessors << std::endl;

32 bit binary:

GetSystemInfo dwNumberOfProcessors 32
GetNativeSystemInfo dwNumberOfProcessors 48

64 bit binary

GetSystemInfo dwNumberOfProcessors 48
GetNativeSystemInfo dwNumberOfProcessors 48