Step‑by‑step guide to check CPU sockets, cores, threads, and multithreading (Hyper‑Threading/SMT)
✅ 1. BASIC UNDERSTANDING (IMPORTANT)
| Term | Meaning |
|---|---|
| Socket | Physical CPU installed on motherboard |
| Core | Physical processing unit inside CPU |
| Thread | Logical CPU (via Hyper‑Threading / SMT) |
| Multithreading Enabled? | If Threads > Cores |
π Example:
- 1 socket, 4 cores, 8 threads → Hyper‑Threading ENABLED
- 1 socket, 4 cores, 4 threads → Hyper‑Threading DISABLED
π§ 2. LINUX – STEP BY STEP
πΉ Step 1: Check CPU details
Run:
lscpu
Example output:
CPU(s): 8
Socket(s): 1
Core(s) per socket: 4
Thread(s) per core: 2
Interpret:
- Sockets = 1
- Cores = 4
- Threads = 8
- Thread per core = 2 → Multithreading ENABLED ✅
πΉ Step 2: Check using /proc
π Gives number of sockets
cat /proc/cpuinfo | grep "cpu cores" | uniq
π Shows cores per socket
cat /proc/cpuinfo | grep "processor" | wc -l
π Total logical CPUs (threads)
πΉ Step 3: Quick single command summary
π gives total threads
πΉ Step 4: Check Hyper‑Threading explicitly
If:
Thread(s) per core: 2
π ✅ Hyper‑Threading ON
If:
Thread(s) per core: 1
π ❌ OFF
πͺ 3. WINDOWS – STEP BY STEP
πΉ Step 1: Task Manager (GUI method)
- Press Ctrl + Shift + Esc
- Go to Performance tab → CPU
- Look at:
Sockets: X
Cores: Y
Logical processors: Z
π Example:
- Cores = 4
- Logical processors = 8
✅ Multithreading ENABLED
πΉ Step 2: Command Prompt
Run:
wmic cpu get NumberOfCores,NumberOfLogicalProcessors
Output:
NumberOfCores NumberOfLogicalProcessors
4 8
π Threads (LogicalProcessors) > Cores
✅ Hyper‑Threading ON
πΉ Step 3: PowerShell (recommended)
OR modern cmdlet:
Get-CimInstance Win32_Processor | Select NumberOfCores,NumberOfLogicalProcessors
πΉ Step 4: System Information
Run:
msinfo32
Check:
- Processor
- Logical processors
π 4. HOW TO TELL IF MULTITHREADING IS ENABLED
✅ Rule:
If Threads > Cores → ENABLED
If Threads = Cores → DISABLED
Example:
| Cores | Threads | Status |
|---|---|---|
| 4 | 8 | ✅ Enabled |
| 8 | 16 | ✅ Enabled |
| 4 | 4 | ❌ Disabled |
π§ 5. BIOS LEVEL CHECK (Important)
Even if OS shows cores/threads, final control is in BIOS.
Steps:
- Reboot system
- Enter BIOS (F2 / DEL / ESC)
- Look for:
- Intel Hyper‑Threading
- AMD SMT (Simultaneous Multithreading)
Settings:
- Enabled ✅ → uses threads
- Disabled ❌ → only physical cores
✅ 6. QUICK CHEAT SHEET
Linux
Windows
π FINAL SUMMARY
| Platform | Command | What to Check |
|---|---|---|
| Linux | lscpu | Threads per core |
| Linux | /proc/cpuinfo | cores, sockets |
| Windows | Task Manager | Logical processors |
| Windows | wmic | cores vs threads |
No comments:
Post a Comment