CPU
The chip in a computer that runs program instructions; a machine can have several.
In more detail
CPU stands for central processing unit. Modern CPUs have several cores that work in parallel, and the operating system shares processor time between running programs. A program that performs more steps needs more CPU time, which is why algorithmic cost matters.
Examples
redpanda start --smp 1 limits a broker to one core.A host CPU graph can explain a problem, but CPU is rarely an SLI because users do not ask for a percentage of CPU.In the browser: CPU stands for central processing unit. Containers share the host processors, and a CPU limit decides how much of that time each one gets. Processors also come in architectures, such as 64-bit Arm or 64-bit Intel, and an image must be built for the architecture it runs on.A class file runs on any CPU that has a JVM; native code runs on only one kind.Middleware matchers skip static files so the CPU is not spent running middleware for every image.A single line of Python stands for many simple processor instructions.Heavy renders keep the CPU busy on the main thread, so the page cannot respond to input until they finish.Related terms
- CPU cache — A small, very fast memory on the processor that keeps copies of recently used data, and the data next to it, so it can be read again quickly.
- hash flooding — An attack that sends a server many keys crafted to collide in its hash tables, turning each O(1) operation into O(n) and exhausting its CPU.
- vCPU — A virtual processor that an instance sees, usually one hardware thread of a real physical processor core.
- instance type — The size and hardware shape of a virtual machine: how many virtual processors, how much memory and how much network capacity it gets.
- memory — The fast, temporary working space where running programs keep their data; it is emptied when the machine powers off.
- load average — The average number of processes running or waiting to run over the last 1, 5 and 15 minutes.
- top command — The top command, which shows a live, regularly refreshed list of processes sorted by CPU use.
- ps — The command that lists running processes with details such as process ID, CPU use and command name.
- --smp — A Redpanda start flag that sets how many CPU cores the broker uses, each running its own independent shard of work.
- compression.type — The producer setting that compresses each batch with a codec such as gzip, snappy, lz4 or zstd before sending it.
- diagnostic metric — A metric used to explain a problem, such as CPU or memory use, rather than to measure what users experience.
- saturation — How full a system’s most constrained resource is, such as its CPU, memory, connections or queue.
- CPU limit — A cap on how much processor time a container may use, expressed as a number of processors.
- CPU architecture — The family of instructions a processor understands, such as 64-bit Intel (amd64) or 64-bit Arm (arm64).
- GPU — A processor with thousands of small cores that run the same operation in parallel, used for graphics and for training and running AI models.
- Web Worker — A script that runs on its own background thread, separate from the page's main thread, so heavy computation does not freeze the page.
- thread — A path of execution inside a process that the operating system schedules on a processor; one process can have many.
- native code — Instructions in the language of a specific processor, which the processor can execute directly.
- common pool — The JVM-wide shared thread pool that parallel streams and CompletableFuture use by default when you do not supply an executor.
- machine instruction — One of the small, fixed set of basic operations a processor can carry out, such as adding two numbers or copying a value.
- main thread — The first thread a program starts with; in a browser page it also runs JavaScript and handles input, layout and painting.
- Profiler — A React component, and a React DevTools tab, that measures how often and how long parts of the tree render.
- unrestricted resource consumption — OWASP's name for APIs that let callers spend unlimited processor time, memory, connections, rows or money.
Taught in
- Collisions In Practice And Hash Flooding — Algorithms & Data Structures for Working Engineers
- Nine Jobs, Not Nine Servers — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Billing Sprint: Worth An Evening? — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Confusable Services Sprint: One Clue Each — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Scaling Patterns: When Capacity Arrives Too Late — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- Testing Resilience: The Experiment That Would Have Been The Outage — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- Collecting Logs And Metrics: The Disk Nobody Measured — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- The Full Mock And Your Review Plan — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- The Morning An Availability Zone Went Dark — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Decoupling: SQS, SNS, EventBridge And Step Functions — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Load Balancers And Auto Scaling: Capacity That Arrives On Time — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Compute Performance: Families, Placement And Lambda Memory — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Database Performance: Caches, Proxies And Capacity Units — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Ingest And Transform: Streams, Lakes And Partitions — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- The Performance Clinic: Five Slow Systems, Five Fixes — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Compute Cost: Commit, Interrupt Or Pay As You Go — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Long-Stem Clinic: The Phrase That Decides — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Three Weeks Before Anyone Noticed: Budgets, Alerts And Advisor — Microsoft Azure Administrator (AZ-104) Exam Prep
- Monday At Eight: Scale Sets And Autoscale — Microsoft Azure Administrator (AZ-104) Exam Prep
- Ten Thousand Scans By Morning: Registries, Instances And Container Apps — Microsoft Azure Administrator (AZ-104) Exam Prep
- Ten Workloads, One Week: The Compute Decision Drill — Microsoft Azure Administrator (AZ-104) Exam Prep
- Before Marcus Asks: Azure Monitor, Alerts And Insights — Microsoft Azure Administrator (AZ-104) Exam Prep
- When Did It Start, And What Changed? KQL For Administrators — Microsoft Azure Administrator (AZ-104) Exam Prep
- Monitoring A DevOps Environment — Microsoft Azure DevOps Engineer Expert (AZ-400) Exam Prep
- Monitoring: Advisor, Service Health And Azure Monitor — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Look-Alike Services Sprint — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Processes, Jobs And Signals — Bash Scripting & Command Line Automation
- Scheduling, Monitoring And A Script That Reports — Bash Scripting & Command Line Automation
- Friday At Five To Five: DevOps And DevSecOps — Certified GitOps Associate (CGOA) Exam Prep
- A Rollback Nobody Heard: Notifications, Observability And CI — Certified GitOps Associate (CGOA) Exam Prep
- Tooling Sprint: The CTO's Shopping List — Certified GitOps Associate (CGOA) Exam Prep
- Generators Write The YAML, You Decide — Certified Kubernetes Administrator (CKA) Exam Prep
- Usage, Requests And The Pod That Will Not Fit — Certified Kubernetes Administrator (CKA) Exam Prep
- Self-Healing And Autoscaling: Who Restarts, Who Replaces, Who Adds — Certified Kubernetes Administrator (CKA) Exam Prep
- Placing Pods: Selectors, Affinity, Taints And Requests — Certified Kubernetes Administrator (CKA) Exam Prep
- Mock Exam: Seventeen Tasks Against The Clock — Certified Kubernetes Administrator (CKA) Exam Prep
- Kustomize Bases, Overlays And Patches — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Monitoring With The Built-in CLI — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Requests, Limits And Quotas — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Configuration And Security: Timed Drill And Checkpoint — Certified Kubernetes Application Developer (CKAD) Exam Prep
- kube-bench: Ten Failures On A Fresh Cluster — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Static Analysis: kubesec And KubeLinter — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Elasticity and Scale — Cloud Infrastructure & Hyperscaler Architecture
- Elastic Compute Cloud (EC2) — Cloud Infrastructure & Hyperscaler Architecture
- Containers on AWS (ECS and EKS) — Cloud Infrastructure & Hyperscaler Architecture
- Auto Scaling Groups — Cloud Infrastructure & Hyperscaler Architecture
- Managed Relational Databases (RDS) — Cloud Infrastructure & Hyperscaler Architecture
- The Container That Did Not Come Back — CompTIA Cloud+ (CV0-004) Exam Prep
- Two Domain Controllers, One Host: Virtualisation — CompTIA Cloud+ (CV0-004) Exam Prep
- Thirty Eight Percent More: Billing Models And Tags — CompTIA Cloud+ (CV0-004) Exam Prep
- Six Big Servers Doing Very Little: Rightsizing — CompTIA Cloud+ (CV0-004) Exam Prep
- Nine In The Morning, Every Monday: Scaling — CompTIA Cloud+ (CV0-004) Exam Prep
- Operations Sprint: Twelve Servers, Two Hours — CompTIA Cloud+ (CV0-004) Exam Prep
- Eighteen Percent Cheaper, Abroad: Compliance And Regulation — CompTIA Cloud+ (CV0-004) Exam Prep
- The Bill That Jumped Overnight: Spotting Attacks — CompTIA Cloud+ (CV0-004) Exam Prep
- Security Sprint: A Table To Complete — CompTIA Cloud+ (CV0-004) Exam Prep
- DevOps Sprint: Tax At A Hundred Percent — CompTIA Cloud+ (CV0-004) Exam Prep
- Five Deploys, Five Failures: Troubleshooting Deployments — CompTIA Cloud+ (CV0-004) Exam Prep
- Retention Deletes Files, Not Records — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Blank Names After Every Deploy — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Two Controllers At Once — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Seventy One Percent — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Symmetric Encryption: AES-GCM & ChaCha20 — Cybersecurity Fundamentals, GRC & Cryptography
- Service Level Indicators — DevOps & Site Reliability Engineering
- Why Containers: Bare Metal, Machines And Processes — Docker Architecture & Production Containers
- Namespaces And Cgroups: Isolation And Limits — Docker Architecture & Production Containers
- Docker, OCI, The Engine And The CLI — Docker Architecture & Production Containers
- Install Docker And Verify Your Environment — Docker Architecture & Production Containers
- Environment, Secret Files And Runtime Restrictions — Docker Architecture & Production Containers
- Diagnose Crashes, Resource Limits And Unhealthy Containers — Docker Architecture & Production Containers
- Harden And Deliver The Complete Service Stack — Docker Architecture & Production Containers
- What is .NET? Runtime vs SDK, and LTS vs STS — Modern .NET Core, C# & Enterprise Microservices
- Async and Await: Managing Concurrency — Modern .NET Core, C# & Enterprise Microservices
- Web Workers: Off-Thread Computation And Structured Clone — Frontend Architecture & Web Platform
- APIs, Quotas, Locations And Inventory — Google Cloud Associate Cloud Engineer Exam Prep
- Choosing Compute — Google Cloud Associate Cloud Engineer Exam Prep
- Compute Engine — Google Cloud Associate Cloud Engineer Exam Prep
- GKE Clusters And A First Deploy — Google Cloud Associate Cloud Engineer Exam Prep
- Running Compute Engine — Google Cloud Associate Cloud Engineer Exam Prep
- Running GKE — Google Cloud Associate Cloud Engineer Exam Prep
- GitHub-Hosted And Larger Runners: Specs, Software And Networks — GitHub Actions (GH-200) Exam Prep
- What Go Is and Why It Matters — Concurrent Systems Programming with Go
- Installing the Go Toolchain — Concurrent Systems Programming with Go
- The Virtual Machine, The Kit And The Runtime — Modern Java: Virtual Threads & High-Throughput Services
- The Lifecycle Of A Java Program — Modern Java: Virtual Threads & High-Throughput Services
- Advanced Stream Operations — Modern Java: Virtual Threads & High-Throughput Services
- Why A Log And Not A Queue — Apache Kafka & Event Streaming
- A Producer In Python — Apache Kafka & Event Streaming
- Batching, Linger And Throughput — Apache Kafka & Event Streaming
- Pending All Saturday: How The Scheduler Places Pods — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Fundamentals Sprint: Four Tickets Before The Doors Open — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Not As Root, Not In Plain Sight: Pod Security And Secrets — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Six Times The Traffic: Autoscaling Pods And Nodes — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Orchestration Sprint: Four Fixes, No Walls Removed — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Architecture Sprint: The Refunds Review — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Forty Four Of Sixty: The Full Mock, And How To Read It — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- The Festival, End To End: Final Review — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- The Report That Ate The Node: Denial Of Service And Malicious Code — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Threat Model Sprint: Name It, Then Stop It — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Requests, Limits, Quotas And Horizontal Autoscaling — Kubernetes: Production-Grade Container Orchestration
- Troubleshooting: OOMKilled, Throttling And Evictions — Kubernetes: Production-Grade Container Orchestration
- Package The Service As A Helm Chart — Kubernetes: Production-Grade Container Orchestration
- Edge Middleware: Auth Verification & Route Matchers — Next.js 15 & Modern App Router Architecture
- libuv Architecture: Event Demultiplexer & Thread Pool — Node.js Internals & Backend Services
- Timers Phase: setTimeout, Min-Heap Scheduling & Drift — Node.js Internals & Backend Services
- Thread Pooling: Piscina & CPU-Bound Workload Pools — Node.js Internals & Backend Services
- Diagnostic Profiling: CPU Profiler & Heap Snapshots — Node.js Internals & Backend Services
- Cluster Architecture: node:cluster & Zero-Downtime — Node.js Internals & Backend Services
- Two Replicas, Half A Trace: Scaling The Collector — OpenTelemetry Certified Associate (OTCA) Exam Prep
- Six Minutes Nobody Saw: Prometheus In One Outage — Prometheus Certified Associate (PCA) Exam Prep
- Ninety Nine Percent Of What? SLIs, SLOs And SLAs — Prometheus Certified Associate (PCA) Exam Prep
- A Database You Cannot Recompile: Exporters — Prometheus Certified Associate (PCA) Exam Prep
- Instrumentation Sprint: Sixteen Calls On Code And Exporters — Prometheus Certified Associate (PCA) Exam Prep
- What A Program Really Is — Hands-on Python: Complete Video Course & Book
- Installing Python On Windows — Hands-on Python: Complete Video Course & Book
- Installing Python On A Mac — Hands-on Python: Complete Video Course & Book
- Playing Computer — Hands-on Python: Complete Video Course & Book
- How A Web Page Reaches You — Hands-on Python: Complete Video Course & Book
- useLayoutEffect vs useEffect: Painting And Synchronous Reads — React 19 & Modern Component Architecture
- Tuning Profiles With tuned — Red Hat Certified System Administrator (EX200) Exam Prep
- Rate Limiting And Resource Consumption — Application Security & Threat Modeling for Engineers
- Indicators: Malware And Physical Attacks — CompTIA Security+ (SY0-801) Exam Prep
- Partitioning, Sharding And Hot Keys — Scalable System Design & Distributed Architecture
- Worked Design Two: A Global Chat System — Scalable System Design & Distributed Architecture
- Worked Design Three: A Metrics Ingestion Pipeline — Scalable System Design & Distributed Architecture
- Worked Design Three: Scaling The Metrics Pipeline — Scalable System Design & Distributed Architecture
- Two Of Everything: Deploying, Sizing And Backing Up UCP And DTR — Docker Certified Associate (DCA) Exam Prep
- Root, But Not That Root: Default Engine Security And Image Scanning — Docker Certified Associate (DCA) Exam Prep
- The Pager Goes Off At 2 A.M.: A Three-Question Triage — CompTIA Linux+ (XK0-006) Exam Prep
- Friday's Backup, Monday's Restore: Incrementals, Images And Compressed Logs — CompTIA Linux+ (XK0-006) Exam Prep
- Twelve Old Servers, Two New Hosts: KVM, QEMU, libvirt And Disk Images — CompTIA Linux+ (XK0-006) Exam Prep
- Works On My Laptop: Images, Containers, Volumes And Networks — CompTIA Linux+ (XK0-006) Exam Prep
- It Is Slow, Says Everyone: CPU, Memory, Disk And Network Bottlenecks — CompTIA Linux+ (XK0-006) Exam Prep
- Ninety Minutes, Five Domains: The Full Mock And The Week Before The Exam — CompTIA Linux+ (XK0-006) Exam Prep
- Virtual Machines With libvirt: XML, virsh And Autostart — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Services You Write: Units, Drop-Ins And The Reload — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Performance Triage: Processor, Memory Or Disk? — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Constraints: Limits, Control Groups And Listeners — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Processes: Priorities, Monitors And Long Jobs — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep
- Facts And Magic Variables: Let Each Node Describe Itself — RHCE in Ansible (EX294): Automate Red Hat Systems
References
- NIST glossary: central processing unit
- Amazon EC2: CPU options
- proc_loadavg(5) manual page
- Resource constraints: CPU
- MDN glossary: Main thread
- Python docs: os.cpu_count
- Operating Systems: Three Easy Pieces, Introduction to Operating Systems
- Operating Systems: Three Easy Pieces, The Abstraction: The Process (CPU virtualization)
Certification courses
- AWS Cloud Practitioner course and practice exam: CLF-C02
- AWS DevOps Engineer Professional course and practice exam: DOP-C02
- AWS Solutions Architect Associate course and practice exam: SAA-C03
- AZ-104 course and practice exam: Microsoft Azure Administrator
- AZ-400 course and practice exam: Microsoft Azure DevOps Engineer Expert
- AZ-900 course and practice exam: Microsoft Azure Fundamentals
- CGOA course and practice exam: Certified GitOps Associate
- CKA course and practice exam: Certified Kubernetes Administrator
- CKAD course and practice exam: Certified Kubernetes Application Developer
- CKS course and practice exam: Certified Kubernetes Security Specialist
- CompTIA Cloud+ course and practice exam: CV0-004
- CCDAK and CCAAK course and practice exams: Confluent Apache Kafka certifications
- Google Associate Cloud Engineer course and practice exam: Google Cloud certification
- GH-200 course and practice exam: GitHub Actions
- KCNA course and practice exam: Kubernetes and Cloud Native Associate
- KCSA course and practice exam: Kubernetes and Cloud Native Security Associate
- OTCA course and practice exam: OpenTelemetry Certified Associate
- PCA course and practice exam: Prometheus Certified Associate
- RHCSA course and practice exam: Red Hat Certified System Administrator (EX200)
- CompTIA Security+ course and practice exam: SY0-801
- DCA course and practice exam: Docker Certified Associate
- CompTIA Linux+ course and practice exam: XK0-006
- LFCS course and practice exam: Linux Foundation Certified System Administrator
- LPIC-1 course and practice exam: Linux Administrator (101-500 and 102-500)
- RHCE course and practice exam: Red Hat Certified Engineer in Ansible (EX294)