• Customers
  • Pricing
  • Docs
Sign Up

Compute Glossary

How computers for agents work, from the hardware to the sandbox.

  1. Compute Glossary
  2. /
  3. Virtualization

vCPU

Also called Virtual CPU

ProcessorCoresOther host threadsvCPU threadsVirtual machineGuest kernel and schedulervCPUs

A vCPU is a virtual processor that a guest schedules its work on as if it were a real CPU core. On the host, each vCPU is a thread that runs guest code whenever the host scheduler gives it a physical processor. The guest kernel cannot tell the difference and runs its own scheduler on top. Two schedulers then make decisions without knowing about each other, which can cause odd delays.

The host treats vCPU threads like its other threads, so a vCPU competes for processor time with everything else on the host. When its thread has to wait, the virtual machine does not see the wait directly. To the guest, the time simply passes, as if its processor had stalled. Timing inside a guest is therefore less predictable than on bare metal.

The vCPU count is what a workload buys, but it does not fix what the workload gets. How the vCPUs map to physical cores, and how many other vCPUs share those cores, decides the real performance. Two offers with the same count can perform very differently, depending on the processor model and how full the host is. The processor generation alone can change the speed of a vCPU noticeably.

Hardware threads

Hardware threads are the streams of instructions that one physical core runs side by side under simultaneous multithreading. Cloud providers usually sell one vCPU as one hardware thread, so two vCPUs are often the two threads of a single core. Many Arm server processors lack this feature, so there a vCPU is usually a whole core. A count of vCPUs therefore means different things on different processors.

Two threads on one core share its execution units and caches, so they slow each other down under load. Some security policies forbid sharing a core with another tenant, because the shared parts can leak data between threads. Attacks such as L1TF and MDS showed that one thread could read data handled by the other. Software fixes for them cost speed, and some were only complete with multithreading turned off.

Providers meet these needs by turning the second thread off or by giving a guest whole cores. Either way, the guest gets fewer vCPUs out of the same hardware. Some hosts instead run only vCPUs of the same guest on the threads of a core at once, a technique called core scheduling. That keeps the speed of multithreading while shutting out other tenants.

Pinning

Pinning is the binding of each vCPU thread to one hardware thread on the host. It gives steadier performance and keeps caches warm, because the vCPU never moves between physical processors. It also lets a guest sit on cores close to its memory, which matters on large machines with NUMA. The host scheduler stops deciding where the vCPU runs, which removes one source of jitter.

Pinning on its own sets only where a vCPU may run, so several vCPUs can still share one thread. Exclusive pinning, with one vCPU per thread and nothing else on it, limits the number of vCPUs a host can run to the number of threads it has. A host without it can overcommit instead, running more vCPUs than it has hardware threads and relying on most of them being idle. Exclusive pinning wastes capacity when a guest is idle, because nothing else can use its threads. Overcommit turns that idle time into capacity, at the risk of contention when guests get busy together.

The choice trades density for steady performance. Providers often offer both, as dedicated instances with pinned vCPUs and as cheaper shared instances on hosts that run overcommitted. Work that is sensitive to latency, such as real-time audio, favors the pinned kind. Bursty web services usually run well on the shared kind.

Steal time

Steal time is the time a vCPU was ready to run while the host ran something else. Paravirtualized guests can read how much time the hypervisor has taken from them, and Linux reports it in the st column of top. The hypervisor shares the figure with the guest through a small area of shared memory. Without it, the guest would count stolen time as its own work or as idle time.

A steady high steal time means the host is busier than the guest's share allows. The guest's latency rises even though its own processors report plenty of idle time. Adding vCPUs to such a guest rarely helps, since the shortage is on the host. Moving the guest to a quieter host or a pinned instance is the usual fix.

Steal time is the main sign that neighbors on the host, not the guest's own work, are slowing it down. It shows up most on hosts that run more vCPUs than they have hardware threads. Operators watch it across a fleet to find hosts that are packed too tightly. A brief rise is normal on shared hosts, while a lasting one points to a placement problem.

Related terms

  • Virtual machine
  • KVM
  • CPU core
  • Overcommit
  • CPU
PreviousVirtual machineNextMicroVM

On this page

Compute Glossary
  1. Foundations
    • Sandbox
    • Virtual machine
    • vCPU
    • Block storage
    • Virtual network interface
    • Kernel
    • Hardware virtualization
    • Hypervisor
    • GPU
    • CPU core
    • Memory
    • CPU
    • Local disk
    • Network interface card
    • Compute
    • Workload
    • Latency
  2. Sandboxes
    • Isolation
    • Lifecycle
    • Snapshot
    • Persistence
  3. Virtualization
    • KVM
    • MicroVM
    • Container
  4. Hardware
    • Server
    • CPU architecture
    • CPU type
    • GPU memory
    • GPU model
    • Mac model
  5. Kernel
    • System call
    • Process
    • Memory page
    • Namespace
    • Control group
    • Seccomp
  6. Storage
    • Object storage
    • File system
  7. Networking
    • Egress control
    • SSH
  8. Infrastructure
    • Control plane
    • Scheduler
    • Overcommit
    • Preemption
    • Region
    • Capacity
    • Scale
  9. Agents
    • AI agent
    • Tool call
    • Untrusted code
  10. Reinforcement learning
    • Reinforcement learning
    • Environment
    • Rollout
    • Verifier
    • Reward hacking
    • Actor–learner architecture

Computersfor Agents

Isolated sandboxes for agent code,
ready in under 100 ms.

Start for Free

Subscribe to DotFiles Insider, our monthly digest of AI infrastructure news, deep dives, and Daytona product releases.

Company

  • About
  • Careers
  • Brand
  • Partners
  • Startup Program
  • Research Grants
  • Events
  • Contact

Product

  • Pricing
  • Docs
  • Changelog

Resources

  • Guides
  • Blog

Legal

  • DPA
  • SLA
  • Terms of Service
  • Privacy Policy
Trust Center
All Systems Operational