Hi,
I want to know the way to find the number of actual physical processors present. Though system has one processor it is returning count as two. Is there any way to find exact no of physical processors present?
Technology Tips and News
Hi,
I want to know the way to find the number of actual physical processors present. Though system has one processor it is returning count as two. Is there any way to find exact no of physical processors present?
Hi,
Is this what you are trying to achieve?
wmic cpu get description, maxclockspeed,extclock, manufacturer
wmic cpu gives no of logical processors but not physica processsor count.
i found this command
systeminfo | find /i "processors"
thanks
Check from command prompt
wmic cpu get caption
This is another way
echo %PROCESSOR_ARCHITECTURE% %PROCESSOR_IDENTIFIER% %PROCESSOR_LEVEL% %PROCESSOR_REVISION%
Its because you might have intel 2 core processor.
the number of processors in practical terms (a product in a housing that can be plugged and unplugged) is having less and lesser relevance in todays software system. rather more important is the number of physical and logical cores.
not having any mulit processor machine to my hands anymore i instead do have only a multi core machine with a single processor unit (supposed to be hard soldered to the pcb as ist a laptop) to my hands.
you will have found out that "systeminfo" is noticeably slow and thus not that good for any use in a scripting solution. further the Terms you have to look for might depend on the language selection of the operating system.
"wmic" instead seems to be language independent and further relatively fast. it might produce multiple lines when there are multiple processor units - but i am just assuming that. summing up mutlitple lines might be a problem of increasing complexity in a script - but lets ignore that as it is of decreasing importance to solve that at the moment.
try this on your machine (it hase some tricks included to better cope with wmic):
for /F "skip=1" %%i in ('wmic cpu get NumberOfCores') do ( set NumberOfCores=!prev! set prev=%%i ) echo NumberOfCores=%NumberOfCores% for /F "skip=1" %%i in ('wmic cpu get NumberOfLogicalProcessors') do ( set NumberOfLogicalProcessors=!prev! set prev=%%i ) echo NumberOfLogicalProcessors=%NumberOfLogicalProcessors%
can use command in cmd "msinfo32" and
You can see physical processor, No of core and logical.
and one more command use full need to know system information "systeminfo"
Regards,
4M
@jeelani:
your suggestion works for just reading the number of physical processors on the screen.
but it does not work solely on command line. instead the command line launches a GUI window that has the value embedded somewhere. this is not script-able (=command line) and as a second aspect the result is language dependent and might further be very dependent on the processor vendor string layout.
i looked into the help for msinfo32 but was not able to find any hints for command line switches. a quick check using "/?" only brought up a relatively basic description of what that program is intended to do. but you might know better and want to share this with us?