top and seeing 90% idle time alongside negligible user space activity often leads engineers to assume the host processor is unstressed, prompting them to spend hours profiling application runtime locks, slow database queries, or external network calls. In a virtualized environment, that assumption frequently fails. A virtual machine can report high idle capacity to its internal process monitor even while its active tasks are starved of physical compute cycles.
This discrepancy between internal OS metrics and real-world application responsiveness is one of the most confusing operational issues on virtual private servers (VPS). To resolve it, you have to look beyond the user, system, and idle columns and inspect a metric tucked at the far end of the CPU summary line: the steal time (st) percentage.
The Virtual CPU Illusion and Hypervisor Scheduling
TASK_RUNNING), the kernel's completely fair scheduler (CFS or EEVDF in newer kernels) assigns it to an execution pipeline without intermediary contention. If the CPU is not executing instructions, it halts into low-power sleep states, which the kernel accurately records as idle time (%id).
On a VPS or cloud instance, your operating system does not manage physical silicon. Your virtual CPUs (vCPUs) are simply POSIX threads managed by a hypervisor like KVM, Xen, or VMware running on a physical host server. When your guest kernel wants to execute instructions for a web server, background worker, or database thread, it places the task on its virtual runqueue. It then signals the hypervisor that the vCPU requires physical execution time.
If the physical host is oversubscribed, or if other virtual machines on the same hardware node undergo sudden workload spikes, the hypervisor's scheduler cannot immediately fulfill that request. The physical CPU cores are busy processing instructions for other tenants. Your virtual machine is forced to pause execution while its internal runqueue remains full.
Because Linux uses paravirtualized time structures (such as pvclock in modern KVM environments), the guest kernel is aware of the passage of physical time. It detects that its virtual CPU was runnable and demanded cycles, yet received none from the hypervisor. The kernel classifies this involuntarily lost processing capacity under the steal metric (%st).
This dynamic explains why a server can exhibit a climbing system load average while simultaneously reporting minimal user space activity. Load average measures the number of tasks waiting in the runqueue or blocked in uninterruptible disk I/O. If ten PHP-FPM workers need to process requests, but the hypervisor suspends the vCPU, those ten workers sit trapped in the runqueue. The load average climbs, requests stall, and users experience timeouts. Yet because the virtual CPU never executed the code, the guest kernel cannot record those cycles under user time (%us).
Reading the Metrics in top
top should be your first stop. By default, pressing 1 inside top toggles between an aggregate view and per-vCPU metrics, which is crucial because hypervisor contention often affects individual vCPU threads unevenly.
TEXT
# Illustrative output format from top during host CPU contention
top - 14:22:05 up 18 days, 4:11, 1 user, load average: 8.42, 6.15, 3.20
Tasks: 142 total, 2 running, 140 sleeping, 0 stopped, 0 zombie
%Cpu(s): 3.2 us, 1.1 sy, 0.0 ni, 58.4 id, 0.3 wa, 0.0 hi, 0.0 si, 37.0 st
MiB Mem : 3920.1 total, 1210.4 free, 1850.2 used, 859.5 buff/cache
MiB Swap: 2048.0 total, 1980.0 free, 68.0 used. 1820.5 avail Mem- The system load average is high (
8.42) relative to standard single-core or dual-core VPS allocations. - User space CPU (
us) is negligible at3.2%, and system/kernel space (sy) is low at1.1%. - Idle time (
id) appears deceptively safe at58.4%. - Steal time (
st) has surged to37.0%.
37.0% steal metric means that for more than a third of every second, the virtual machine wanted to compute instructions but was suspended by the hypervisor while other virtual machines consumed the physical cores. A deeper analysis of these states is discussed in An Introduction to CPU Steal, I/O wait and the top command.
To determine operational health, keep these general thresholds in mind:
- Under 5% (
%st): Acceptable baseline on shared public clouds. Minor scheduling jitter and occasional micro-bursts are normal on multi-tenant hardware. - 10% to 15% (
%st): Problematic contention. Latency-sensitive services such as real-time web traffic, DNS resolution, and cache stores will show noticeable jitter. - Above 20% (
%st): Critical service degradation. Applications will fail health checks, background job queues will fall behind, and web servers will begin dropping connections.
Distinguishing CPU Steal from Shared Storage Contention
%st) with I/O wait (%wa). Where %st measures time lost because the hypervisor withheld the CPU, %wa measures the percentage of time the vCPU was idle simply because it had to pause while waiting for a disk or network storage transaction to return.
If you want to view these metrics side by side over time without running the full interactive interface of top, use vmstat:
TEXT
# Illustrative output format: vmstat 1 5
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
6 0 69632 1239456 88012 879892 0 0 12 44 420 890 4 2 54 0 40
5 0 69632 1238912 88012 879916 0 0 0 16 380 760 3 1 56 0 40
7 0 69632 1238120 88012 879948 0 0 4 20 410 812 5 2 51 0 42
4 0 69632 1237980 88012 879960 0 0 0 8 390 795 3 1 58 0 38
6 0 69632 1237440 88012 879984 0 0 0 32 405 805 4 2 56 0 38vmstat output above, look closely at the procs section on the far left and the cpu section on the far right:
- The
r(runnable) column consistently shows between 4 and 7 processes waiting for CPU time. - The
b(blocked) column sits at0, indicating that processes are not blocked waiting for disk access. - The
wacolumn sits at0%, confirming local disk I/O is not the bottleneck. - The
stcolumn remains pinned between38%and42%.
st was near zero but wa was spiked above 20%, you would be dealing with disk subsystem saturation. For an in-depth breakdown of diagnosing whether storage latency originates inside the guest or on host-level disks, read our guide on High iowait in a Proxmox VM: Is It the Guest Disk or the Host Storage?.
Recording Sustained Evidence with sar
top. When this happens, historical metrics are necessary to prove the pattern.
If the sysstat package is installed on your Linux instance, the system activity reporter (sar) continuously captures CPU statistics in the background. To review historical CPU metrics for the current day, query the CPU utilization collector:
BASH
# Inspect historical CPU utilization across the current day in 10-minute intervals
sar -u
# Or monitor real-time CPU states at 2-second intervals for 5 counts
sar -u 2 5sar -u output is %steal. By reviewing these records, you can correlate customer-reported application timeouts with historical spikes in steal time. As detailed in VPS Is Still Shared Hosting: Diagnose Noisy Neighbors the Right Way, documenting multi-hour patterns provides the empirical evidence required when escalating infrastructure tickets to hosting providers.
Contention patterns on hypervisor nodes often stem from loose host-level controls. When virtualization hosts lack strict throttling frameworks, one tenant can disrupt an entire chassis. For an architectural look at how modern Linux systems enforce hard CPU limits at the kernel level, see our article on Linux Kernel cgroups v2: How Modern Multi-Tenant Web Hosting Isolates CPU & Memory.
Remediation and Support Escalation
1. Check for Burstable Instance Credit Depletion
2. Prepare Concrete Diagnostic Evidence for Hosting Support
- A text excerpt from
toporvmstatshowing high load average, lowus/sy, and elevatedst. - Historical excerpts from
sar -udemonstrating that the issue recurs over specific time windows. - The current vCPU and memory allocation of your instance.
3. Consider Dedicated CPU Instances
top insists the server is mostly idle, resist the impulse to immediately rewrite code or adjust database pools. Look directly at the st column. If steal time is elevated, your application is not failing to compute; the underlying hypervisor is simply failing to give it the processor time it asked for.