Sunday, November 18, 2012

5 Get CPU/Socket/Core/Hyper-Threading from PowerShell

A while ago, I was been asked how to determine the Socket, CPU or Hyper-threading is enable on the Host.

The information can be retrieved from WMI’s Win32_processor . The problem is if you are on Win2003 or WinXP, the hotfix must apply  kb/932370 , otherwise the WMI may report the incorrect information.

Here is the simple PowerShell script to retrieve the information.

gwmi win32_computersystem | fl NumberOfProcessors, NumberOfLogicalProcessors
gwmi  win32_processor | ft NumberOfCores,NumberOfLogicalProcessors

Quart core – No Hyper threading

image

In the screenshot above, the NumberOflogicalprocessors is same as Numberofcores, that means the Hyper-threading is not enable.

We can use sysinternal tools coreinfo to verify the information.

image

Quart core – with Hyper threading

Here is another test on my Win2012 host with Intel(R) Core(TM) i7-3610QM CPU

The host is one socket with Quart core CPU and Hyper-threading enable,

image

Dual Core – No Hyper-threading

I use VMWare to emulate the 2 sockets host. The host has 2 sockets, Each Socket has 2 core but no hyper-threading enable.

image

The VMWare does not support the Multicore with HT enable. So I don’t have the test screenshot base on that.

5 comments:

  1. Some drivers don’t run quite as they should in Windows 10. One that has been discovered to be causing 100% HDD use is the StorAHCI.sys driver, which has a firmware bug. read more

    ReplyDelete
  2. gwmi win32_computersystem | fl NumberOfProcessors, NumberOfLogicalProcessors
    gwmi win32_processor | ft NumberOfCores,NumberOfLogicalProcessors
    Service Host SuperFetch

    ReplyDelete
  3. Here is another test on my Win2012 host with Intel(R) Core(TM) i7-3610QM CPU
    The host is one socket with Quart core CPU and Hyper-threading enable Service Host SuperFetch

    ReplyDelete
  4. DNS Server Not Responding
    When you try to connect to the Internet, the connection might fail when we run the Troubleshooter, and you might get this error: The device or resource (DNS server) is not responding. The exact error would be: You computer appears to be correctly configured, but the device or resource (DNS server) is not responding.

    ReplyDelete
  5. sometimes a technical error can cause hogh disk usage.The basic reason is sid to be service host superfetch that can cause 100 disk in windows task manager. There is simple solution. Click Here

    ReplyDelete

 

SQL Panda Copyright © 2011 - |- Template created by O Pregador - |- Powered by Blogger Templates