Knowledgebase

Find frequently asked questions and setup guides by searching or by browsing the categories.

What Steal Time Measures

On a virtual server, each virtual CPU is scheduled by the hypervisor on a physical CPU of the host. Most of the time it runs when it has work. When the physical CPU is busy with other work, the virtual CPU waits. The guest kernel cannot see that work, but on KVM and other hypervisors that support it, the guest is told how long it waited, and it reports that time as steal (the steal column in /proc/stat). See what KVM virtualization is for how virtual CPUs map to physical ones.

Steal is time your server wanted to compute and could not. It is not time your own processes used.

Where to See It

In top, it is the last field of the CPU line:

%Cpu(s): 22.0 us,  4.1 sy,  0.0 ni, 58.3 id,  0.4 wa,  0.0 hi,  0.2 si, 15.0 st

Press 1 in top to see it per CPU. In vmstat, it is the last column:

vmstat 1 10

With the sysstat package installed, mpstat -P ALL 1 shows a %steal column for each CPU, and sar -u shows it for past intervals if sysstat collection is enabled.

When It Matters

Steal only hurts when your server needs the CPU. A server that is mostly idle may show some steal with no effect on its work. It matters when steal stays high for minutes at a time while your own processes are busy and the application slows down. As a rough guide, short peaks of a few percent are seldom noticed; steal that stays in the double digits during your busy hours is worth measuring and reporting.

Steal vs Your Own Load

What you seeLikely meaning
High us, low stYour programs use the CPU
High wa, low stYour server waits for the disk
High stYour server waits for a physical CPU
High us and stBusy, and slowed down further

Check your own side first. If us is near 100% on every CPU, the server is short of CPU for its work, and steal is not the main cause. The load average is also affected: tasks waiting for stolen time still count as runnable, so load average can rise with steal.

Steal vs I/O Wait

Both are time a CPU is not doing your work, but for different reasons. wa is time a CPU was idle while tasks waited for the disk; better storage or less disk activity reduces it, and how to check disk I/O shows how to find the cause. st is time the virtual CPU wanted to run and the host did not run it; nothing inside the server changes it.

What You Can Do

  • Measure first: confirm with samples over time, not one screenshot.
  • Reduce your CPU demand: caching and fewer workers lower the time you need, but not the steal rate itself.
  • Ask your hosting provider: only the provider can see the host and act on it.
  • Change the plan: a plan with dedicated CPU cores, or a dedicated server, takes host scheduling out of the picture. See VPS vs dedicated server.

What to Send Your Provider

A report with data is easier to act on. Collect a minute of samples with timestamps while the problem is visible:

vmstat -t 1 60 > steal-$(date +%F-%H%M).txt
top -b -n 1 | head -n 15 >> steal-$(date +%F-%H%M).txt
  • When: the dates and times, with the server's time zone.
  • How much: the vmstat output and the top header.
  • How often: whether it happens daily, at certain hours, or all the time.
  • Effect: what slowed down and how you measured it.
  • Which server: the server name or ID shown in your provider's control panel.
Was this answer helpful?
Loading...