What does lscpu show by default?
lscpu
It reads /proc/cpuinfo and sysfs and prints a summary. The lines that matter most on a server:
| Field | What it tells you |
|---|---|
| Architecture | x86_64 on Intel and AMD models, aarch64 on Arm |
| CPU(s) | Logical CPUs the OS can schedule on |
| Model name | The exact processor |
| Socket(s) | Physical processors on the board |
| Core(s) per socket | Physical cores in each processor |
| Thread(s) per core | 2 with SMT on, 1 without |
| NUMA node(s) | Memory domains; matters on dual socket |
| L1d, L2, L3 | Cache sizes, total across instances |
| Flags | Instruction set extensions |
How do I check cores and threads match my order?
Multiply sockets by cores per socket for physical cores, then by threads per core for logical CPUs. On D2, which has 2x Intel Xeon Gold 5317, you should see 2 sockets, 24 cores in total and 48 threads. Arm and some efficiency core models run one thread per core, so CPU(s) equals cores there; A1 is an example. Quick check in one line:
lscpu -p=SOCKET,CORE | grep -v '^#' | sort -u | wc -l # physical cores nproc --all # logical CPUs
If the numbers are lower than expected, a CPU may be offline. lscpu -e has an ONLINE column, and SMT and threads explains why threads are not the same as cores.
How do I see the per CPU layout?
lscpu -e=CPU,NODE,SOCKET,CORE,L3,ONLINE,MAXMHZ | head -20
The extended view prints one row per logical CPU. Two rows with the same CORE number are the two hardware threads of one core. Use this to pin a latency sensitive process to whole cores, for example with taskset -c 2,3 or CPUAffinity= in a systemd unit, and to avoid putting two busy threads on siblings.
Why does NUMA matter?
On dual socket machines each CPU has its own memory. Reading memory attached to the other socket is slower. lscpu shows which logical CPUs belong to each node:
lscpu | grep -i numa numactl --hardware
Databases and VMs run best when a process and its memory stay on one node. NUMA and dual-socket servers goes deeper and shows how to bind a workload with numactl --cpunodebind=0 --membind=0.
How do I check for AVX-512, AES and other flags?
lscpu | grep -o -w -E 'avx2|avx512f|aes|sha_ni|vmx|svm|amx_tile' | sort -u
vmx on Intel or svm on AMD means hardware virtualization is available, which KVM and Proxmox VE need. aes accelerates TLS and disk encryption. avx512f and amx_tile speed up some compression, media and math libraries on processors that support them. On Arm, look for asimd, aes and sve instead.
What clock speed is the CPU running at?
lscpu | grep -i mhz grep MHz /proc/cpuinfo | sort -t: -k2 -n | tail -3 cpupower frequency-info
lscpu shows the minimum and maximum the CPU reports, and on some kernels the current scaling percentage. Speeds vary all the time with load and power state. The base clock in our listings is the guaranteed sustained speed; turbo goes higher on a few busy cores. For heavy steady work, set the performance governor with sudo cpupower frequency-set -g performance.
Can I get lscpu output as JSON?
lscpu -J | python3 -m json.tool | head -30 lscpu --json --extended=CPU,CORE,SOCKET,NODE
JSON output is ideal for inventory scripts or monitoring agents that record hardware per host.
Is lscpu enough to judge performance?
No, it describes the hardware but does not measure it. For real numbers, run a benchmark that resembles your work: sysbench cpu for raw integer speed, a build of your own project, or a database load test. Then watch usage with Check CPU usage and load. Our Choosing a server CPU guide explains how to match cores, clocks and cache to a workload before you order.
How do I compare two machines quickly?
lscpu | grep -E 'Model name|Socket|Core|Thread|NUMA node\(|L3' > /tmp/$(hostname -s).cpu diff /tmp/web-phx-01.cpu /tmp/web-ams-01.cpu
Saving the key lines from each box and diffing them shows at a glance whether two servers have the same processor, cache and layout. That matters when you spread one app across several cities and expect equal performance. Every model in our range is the same hardware in all six locations, so the files should match line for line when you order the same model twice.
CPUs You Can Inspect With lscpu
| Server | Processor | Cores / threads | Memory | Storage | Network | Per month | Smallest order |
|---|---|---|---|---|---|---|---|
| S1 | Intel Xeon E-2276G | 6 / 12 | 64 GB DDR4 | 1x 1 TB NVMe | 2x 10 Gbps | $53.32 | $53.32 (1 month) |
| S14 | AMD EPYC 4565P | 16 / 32 | 192 GB DDR5 | 2x 4 TB NVMe | 2x 25 Gbps | $317.89 | $317.89 (1 month) |
| D2 | 2x Intel Xeon Gold 5317 | 24 / 48 | 128 GB DDR4 | 2x 1 TB NVMe | 2x 25 Gbps | $223.57 | $223.57 (1 month) |
| A1 | Ampere Altra Q80-30 | 80 / 80 | 256 GB DDR4 | 2x 2 TB NVMe | 2x 25 Gbps | $252.11 | $252.11 (1 month) |
Keep Reading
Choosing a server CPU
How Xeon E, Core i9, EPYC, Xeon Gold, Xeon 6 and Ampere chips differ, and which workloads each family serves best for the money.
OpenCPU threads vs cores
What a core is, what a hardware thread adds, how many of each our machines have and how to count them correctly on Linux.
OpenNUMA and dual-socket servers
Why two processors in one box share memory unevenly, and when a dual-socket machine beats a single big chip.
OpenSMT and threads
Simultaneous multithreading lets one core run two threads; here is what that means for the thread counts we list.
OpenFAQ
Quick Answers
Multiply Socket(s) by Core(s) per socket.
SMT gives each core two hardware threads, and Linux counts each thread as a CPU.
Look for vmx on Intel or svm on AMD in the Flags line.
Yes. It shows aarch64, the core count and Arm specific flags.
From /proc/cpuinfo, sysfs and the CPUID instruction.