• Customers
  • Pricing
  • Docs
Sign Up

Compute Glossary

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

  1. Compute Glossary
  2. /
  3. Hardware

CPU

Also called Central processing unit, Processor

Socket and contactsSubstrateI/O dieCore chipletsHeat spreaderRetention frame

A CPU is the processor that runs the operating system and almost all application code of a computer. It can execute any program written for its instruction set architecture, which is what makes it general-purpose. The same chip runs a database or a compiler without any change to the hardware. It also runs the code that starts the machine and controls its devices, which no accelerator handles on its own.

The design goal of a CPU is to run one stream of instructions as fast as possible. Doing many identical operations at once is left to a GPU, which takes such work from the CPU. This makes each CPU core large and power hungry next to a GPU core, but far faster on code full of decisions. The split is a trade between the speed of one task and the throughput of many.

A modern CPU is a single chip, or a package of several chips, holding many cores. Cloud providers rarely sell whole CPUs and sell vCPUs instead, each usually backed by one hardware thread of a core. The smaller chips in such a package are called chiplets, and they let a vendor build a large CPU from pieces that are cheaper to make. Servers often hold two CPUs in separate sockets, which adds cores but makes some memory slower to reach, an effect called NUMA.

Speculative execution

Speculative execution is a technique in which a core runs ahead on a guess, such as which way a branch will go, before it knows the guess is right. When the guess was wrong, the core throws the work away. Branches are common in ordinary code, and waiting to resolve each one would leave the core idle much of the time. Modern predictors guess right most of the time, so the discarded work is a small share of the total.

The technique exists to keep the pipeline of the core full. A core works on many instructions at different stages at once, and it also runs them out of order whenever their inputs are ready. Running out of order is itself a kind of speculation, because an earlier instruction may still fault after later ones have run. Without these techniques, a modern core would run far slower on ordinary code.

Speculation leaves traces in the caches even when its results are discarded. The Spectre and Meltdown attacks used those traces to read memory across privilege levels, so hosts that run code from different owners care which workloads share a core. A discarded load still brings its data into the cache, and an attacker can time which line became fast to read. Fixes in software and microcode closed the worst paths, at some cost in speed for code that makes many system calls.

Caches

Caches are small, fast memories on the CPU chip, and most of the chip is cache rather than arithmetic. Each core keeps small caches close by, and the cores share a larger last-level cache. The split mirrors a trade-off: a cache close to the core is fast but small, while a shared one is larger but farther away. A cache holds copies of data in fixed-size lines, and the hardware decides what to keep and what to evict.

Caches exist because main memory is far slower than the core. A core that has to wait for main memory does no useful work until the data arrives. Each read from memory costs the core time in which it could have run many instructions. The gap has widened over the decades, because processor speed grew much faster than memory speed.

A program that fits in cache can run many times faster than one that keeps missing it. The order in which a program touches its data therefore matters as much as how much it computes. Walking an array in order is fast, while following pointers scattered across memory is slow, even when both do the same arithmetic. On a shared host, other workloads use the same last-level cache, so the speed of a program can change with its neighbors.

Privilege levels

Privilege levels are the modes in which a CPU runs code, each allowed a different set of operations. The kernel runs at a level that can touch page tables and devices, and ordinary programs run at a level that cannot. The CPU enforces the levels in hardware, so a program that tries a forbidden operation is stopped before it takes effect. On x86-64 they are called rings, while AArch64 calls them exception levels.

A program that needs something only the kernel can do must ask through a system call. The CPU switches to the higher level, runs the kernel, and switches back when the request is done. Each switch costs time, because the CPU saves the state of the program and the kernel checks the request. Programs that make many small calls pay that cost many times, which is why reads and writes are often batched.

Hardware virtualization adds a separate mode for the hypervisor, outside the kernel of each guest. The guest kernel keeps its usual powers but cannot reach past its own virtual machine. When a guest does something only the hypervisor may do, the CPU exits to the hypervisor, which handles it and resumes the guest. Each exit costs more than a system call, so hypervisors work to keep exits rare.

Related terms

  • CPU core
  • CPU architecture
  • Memory
  • GPU
  • vCPU
PreviousServerNextCPU architecture

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