All guides
Home Glossary CPU core
Term

CPU core

A physical processing unit within a CPU that independently executes a stream of instructions.

A CPU core is a physical processing unit within a central processor that independently executes a stream of instructions. Each core integrates its own arithmetic logic units (ALU), registers, and dedicated Level 1 (L1) cache, while typically sharing a larger Level 3 (L3) cache with other cores on the same chip. Modern server CPUs pack anywhere from 4 to over 128 physical cores onto a single processor package, enabling true hardware-level parallel execution.

How it works

At the hardware level, every core continuously runs an instruction cycle: it fetches an instruction from memory, decodes what operation is required, executes it using its ALUs, and writes the result back to a register or cache. Because each core has independent execution units, separate operating system processes or threads can run simultaneously without waiting in line.

To squeeze more throughput out of each core, modern architectures use Simultaneous Multithreading (SMT)—branded by Intel as Hyper-Threading. SMT duplicates the architectural state (registers) of a physical core so the operating system sees two logical processors (often called threads or vCPUs in virtualized environments). When one thread stalls waiting for data from RAM, the core immediately executes instructions from the second thread, reducing idle pipeline cycles.

Example

In a production hosting environment, an AMD EPYC 9654 processor provides 96 physical cores (192 logical threads), allowing a KVM hypervisor to host dozens of isolated virtual machines or hundreds of microservices without excessive context switching. On Linux, you can inspect your exact physical core count versus logical thread count using lscpu:

lscpu | grep -E "Model name|Socket|Thread|Core|CPU\(s\)"

For example, an output showing Thread(s) per core: 2 and Core(s) per socket: 8 confirms 8 physical cores and 16 logical threads available to the kernel scheduler.

What matters when choosing a server or hosting

  • Dedicated cores vs. shared vCPUs: Budget VPS plans usually allocate shared vCPUs—time slices of a logical thread shared with noisy neighbors. Choose dedicated CPU cores (VDS) for latency-sensitive databases like PostgreSQL or real-time APIs.
  • Core count vs. clock speed: Web servers, worker queues, and containerized microservices scale horizontally across many cores. Single-threaded workloads—such as certain game servers or legacy build pipelines—benefit more from fewer cores with higher clock frequencies and larger L3 cache.
  • CPU-heavy inference and automation: Running local AI models or headless browsers pushes core utilization to 100%. For sizing guidance on compute-bound workloads, see our breakdowns on VPS for LLMs: How to Run Llama 3 and Mistral on a CPU and Selenium on VPS: Hard-Won Data on RAM, CPU, and Scaling.

Common mistakes

  • Treating logical threads as physical cores: Two SMT threads share the same physical ALU and L1 cache. Under heavy floating-point or cryptographic load, 8 logical threads on 4 cores will not deliver double the performance of 4 dedicated physical cores.
  • Ignoring CPU steal time (%st): On oversold virtual servers, the hypervisor may delay scheduling your vCPUs. Always check top or vmstat for high steal time before assuming your application needs more cores.
  • Over-provisioning cores for GPU workloads: Throwing extra CPU cores at deep learning training rarely compensates for the lack of tensor hardware; compare architectures first using our guide on VPS for Machine Learning: Hard-Won Data on GPU vs CPU Costs.

FAQ

What is the difference between a CPU core and a vCPU?

A CPU core is a physical hardware execution unit on the silicon chip. A vCPU (virtual CPU) is a virtualized share of a physical core—typically mapped to a single logical SMT thread—assigned to a virtual machine by a hypervisor.

Do more CPU cores always make a website faster?

No. Extra cores increase concurrency, allowing your server to handle more simultaneous visitors or background jobs. If a single page request is slow due to an unindexed database query or slow external API call, adding cores will not reduce single-request latency.

How many CPU cores do I need for a production web server?

A typical small-to-medium web stack (reverse proxy, application runtime, and database) runs comfortably on 2 to 4 dedicated cores. Scale upward when average CPU utilization consistently exceeds 70% or load average surpasses your physical core count.

All glossary terms

Glossary

Related terms

Full glossary

New guides every week.

A digest of the best pieces on servers, VPN and self-hosted software. No ads, no spam.

1 email a weekOne-click unsubscribeRU · EN
Only slipjar.app articles, nothing else.