-1

I need to find out, how many cores are available on a server at that moment. For example, it is a 8 core machine and running at 50% CPU utilization. Can this be assumed as 4 cores are available? or is there a more sophisticated way to determine number of cores available.

Few observations I had was that, there may be 50 system processes active on that machine but most of them will be in dormant state for majority of time. Few of them will wake up and do few millisecond worth of task and then sleep again. So I need to understand, what calculation run behind the scene for calculating CPU utilization and how can I use that to determine free cores.

Varun Gupta
  • 117
  • 1

1 Answers1

3

Your system will normally allocate the load to all available cores. Meaning all cores would be active at a distributed load.

You should also consider that there are applications that have been specifically instructed to use certain number of cores. Thus in a graphical presentation of CPU Utilization, you would see certain cores being used more.

Therefore you cannot directly conclude that 50% Utilization in an 8 core machine means that 4 cores are used at 100% and the other 4 cores are not used.

jarvis
  • 1,956
  • 4
  • 17
  • 31