views:

16

answers:

1

Is there a way to find out the total number of cores available on Server 2008 cluster system? i.e. total number of cores on all compute nodes? Is there an environment variable that has this information?

Thanks,

AG

A: 

If you're using the .NET framework, you can use the Environment Class:

http://msdn.microsoft.com/en-us/library/system.environment.processorcount.aspx

EDIT:

Note, this gets the number of cores on an individual server, not a cluster.

JYelton
Thank You. However it looks like this returns the number of processors on the current computer only. Is there a way to get the total number of cores that are available on the entire cluster system?
agg
You're right, sorry I overlooked the "cluster" part. I'm not sure, unfortunately. You might want to try asking this question on serverfault.com too.
JYelton

related questions