34

Here is an example from my top:

Cpu(s):  6.0%us,  3.0%sy,  0.0%ni, 78.7%id,  0.0%wa,  0.0%hi,  0.3%si, 12.0%st

I am trying to figure out the significance of the %st field. I read that it means steal cpu and it represents time spent by the hypervisor, but I want to know what that actually means to me.

Does it mean I may be on a busy physical server and someone else is using too much CPU on the server and they are taking from my VM?

If I am using EBS could it be related to handling EBS I/O at the hypervisor level?

Is it related to things running on my VM or is it completely unaffected by me?

5 Answers 5

25

The Steal percentage (documented in the mpstat man-page) is indeed the hypervisor telling your VM that it can't have CPU resources the VM would otherwise use. This percentage is regulated in part by Amazon's CPU limiting, and VM load on that specific host. I/O load is monitored through the %io stat.

You will see this most often on their t class of instances that use a CPU credit model for regulating performance. If you're seeing high percentages, chances are good you're running out of CPU credits.

2
  • ahh ... I was looking in the top man-page. So it could indeed be because I am on a machine that is getting used heavily by another user. On one of my EC2 instances I have seen it get as high as 65%
    – Ben
    Feb 3, 2011 at 16:59
  • @Ben Yeah, the fact that the info isn't in the top man page makes this harder than it needs to be. The stuff I've seen online suggests that certain EC2 machine types can peak as high as 70%.
    – sysadmin1138
    Feb 3, 2011 at 17:50
5

man sar's

Show the percentage of time spent in involuntary wait by the virtual CPU or CPUs while the hypervisor was servicing another virtual processor.

4

Steal load accounts for time when your VM wanted to run something, but the hypervisor chose to run something else instead.

4

Steal Time or stolen time, mean the amount of time that your host in VM is ready to run (some instruction), but could not do this because other's VM competing for the CPU. When the value get bigger, this is indicate that your vm getting slow or stall. So keep this value as minimum as possible.

0

Steal time is the percentage of time a virtual CPU (vCPU) has to wait to run on a Physical CPU (pCPU) while the hypervisor is servicing another virtual CPU (vCPU).

full credit to source

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .