I am trying to figure out for different workloads (CPU intensive, high DB IOPs etc), which compute series of cloud VM would be ideal.
In order to do that I need to be able to get the CPU utilisation. I am using python psutil library to get CPU % (similar to top) , how can I determine actual CPU usage given number of cores of CPU.
Trying to find this I am confused by a lot of other aspects also. My main aim is to find which series [compute intensive, memory intensive, general-purpose etc] would be better for a given job. To find that what are the parameters that could affect that I need to consider. Are there any utilities, tools that would help in this case. I have used top and perf to check the CPU usage, but to run it programatically is there any standard way.