perf stat --smi-cost estimates what percentage of CPU cycle time was spent handling System Management Interrupts (SMIs) during a measurement interval. It is useful for finding aggregate SMI overhead, but it is not a worst-case latency test: many short SMIs can hide a rare, much longer interruption.
What perf stat --smi-cost measures
SMIs are handled in system-management mode and temporarily take control away from the operating system. The perf SMI-cost metric estimates the share of cycles attributed to that handling over the interval you measure.
As an Amazon Associate I earn from qualifying purchases.
The documented calculation is:
(APERF - unhalted core cycles) / APERF
Perf presents the result as a percentage by default. During collection it enables the CPU’s freeze-on-SMI behavior through /sys/device/cpu/freeze_on_smi. Core counters therefore stop advancing while an SMI is active, whereas APERF remains unaffected; the difference is used to estimate SMI-affected cycles.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteThis is an interval average. It tells you how much total cycle capacity was attributed to SMIs, not how long each individual SMI lasted or when the longest one occurred.
#1 Best Overall
- 12th Intel Alder Lake N95 Processor – The GMKtec G3 S Mini PC is powered by the 12th Gen Intel N95 processor with 4 cores, 4 threads, 6MB cache and a burst frequency up to 3.4GHz. Compared with N100/N5105/N5100/N5095, the N95 delivers up to 36% overall performance improvement. Perfect for routine tasks, office work, and home entertainment, this compact mini desktop is more convenient than traditional bulky PCs.
- 8GB RAM & 256GB SSD Storage – Pre-installed with 8GB DDR4 memory and a fast 256GB M.2 2242 SSD, the G3 S mini desktop offers quicker startup, smoother multitasking, and faster file transfers. Enjoy seamless performance whether you’re working on multiple applications, browsing, or streaming content.
- Rich Interfaces & Connectivity – The G3 S mini computer comes equipped with USB 3.2 (up to 10Gbps), dual HDMI 2.0 (4K@60Hz), and a 3.5mm audio jack. With support for WiFi 5, Bluetooth 5.0, and Gigabit Ethernet (RJ45 1000MbE), it connects easily with monitors, projectors, printers, office equipment, and other peripherals, making it versatile for both home and business use.
- Dual 4K Display Support – Featuring upgraded Intel UHD Graphics (up to 1000MHz), the G3 S supports 4K video playback and AV1 decoding for a smooth viewing experience. With dual HDMI outputs, you can connect two 4K@60Hz displays simultaneously, enabling efficient multitasking for work and entertainment.
- GMKTEC WARRANTY - GMKtec offers a 3-year limited warranty (1 year replacement + 2 years parts replacement) for each mini PC, starting from the date of the purchase effective on all sales starting Oct. 2026. All defects due to design and workmanship are covered. With a professional after sales team always ready to attend to your needs, you can simply relax and enjoy your mini PC
Run the measurement
Show the percentage metric
perf stat --smi-cost
This is the concise, metric-only view. Without a command, perf measures the relevant interval until you stop it, normally with Ctrl-C.
Expose the underlying counters
perf stat --smi-cost --no-metric-only
--no-metric-only asks perf to print the underlying values as well as (or instead of only) the derived metric. Those values let you relate estimated SMI cycles to the reported SMI count and estimate an average cycles-per-SMI figure for the interval.
Measure a specific workload
perf stat --smi-cost --no-metric-only <command>
Replace <command> with the program or benchmark you want to observe. Keep the workload, duration, CPU placement, and background activity consistent when comparing systems or software versions.
Reading the output
The percentage
A result such as a small fraction of a percent means that, in aggregate, only that share of measured cycles was attributed to SMI handling. It does not mean every SMI was short, nor does it establish that no latency-sensitive interruption occurred.
The raw values and average duration
The non-metric view includes values from which you can estimate average SMI cost by relating estimated SMI cycles to the SMI count. An average is only a summary: a population of many short events plus one long event can produce the same average as a population of uniformly moderate events.
Idle intervals
If the machine is mostly idle and no SMIs occur, counter relationships can look inconsistent with the metric’s documentation. Treat an idle capture as a special case rather than as proof that the platform has no SMI problem. Repeat the measurement during the workload that matters.
Rank #2
- Powerful 8th Generation Processor - The Dell OptiPlex 7060 desktop computer is powered by an Intel 6-core 8th Generation i7-8700 processor, which can reach up to 4.60 Ghz, enabling efficient multitasking.
- Microsoft Windows 11 Pro – This Dell small form factor desktop computer comes pre-installed with the Windows 11 Professional operating system. Microsoft has reimagined how the PC should work for you and alongside you, and this Windows 11-powered desktop is redefining productivity.
- Smooth Multitasking – The Dell OptiPlex is equipped with a blazing-fast new 512GB M.2 NVMe solid-state drive (SSD), which stores important files and applications while supporting faster boot speeds and higher data transfer rates.
- High-Performance Office Desktop – This business desktop computer serves as a reliable workstation, suitable for both home and business computing. The spacious desktop tower case allows for future expansion, making it an excellent fit for use as an office PC.
- Rich Ports – This Dell OptiPlex computer is equipped with 5 USB 3.0 ports, 2 USB 2.0 ports, and 2 DisplayPort ports, supporting dual-monitor connections. Additionally, a wireless keyboard and mouse are included.
What the option requires
- Perf must support the
msr/aperf/andmsr/smi/events on the target machine. - The CPU, firmware, kernel, and perf build must expose the required model-specific registers (MSRs).
- The measurement needs the kernel’s freeze-on-SMI support used by this metric.
The feature is documented as available from Linux kernel 4.13 and on Intel x86 processors dating from roughly 2008 onward when the necessary MSRs exist. Those are historical compatibility guidelines, not a guarantee for a particular system. Check the actual CPU, running kernel, perf version, and event availability before basing a diagnosis on the result.
Why perf may report that SMI cost is unsupported
An unsupported message generally means that one or more required events or controls are unavailable, rather than that the command syntax is wrong. Check the following:
- Confirm that the running kernel and the installed perf tool are from a compatible release.
- Verify that the platform exposes both
msr/aperf/andmsr/smi/events; a CPU family that lacks the relevant MSRs cannot provide this metric. - Check that the kernel can use freeze-on-SMI for the CPU counters.
- Retry on the actual target kernel and hardware, not only in a virtual machine or on a different host; virtualized environments may not expose these MSRs.
If any prerequisite is missing, do not substitute a percentage from another counter and label it SMI cost. Use a platform that exposes the required events or treat SMI overhead as unmeasured.
Using the result in a latency investigation
For aggregate performance impact
Run the percentage view over a representative workload. A consistently non-zero share indicates that SMIs consumed measurable cycle time during that interval. Compare captures only when hardware, kernel and perf versions, workload, and measurement duration are held as constant as practical.
For average SMI cost
Use --no-metric-only and relate the estimated SMI cycles to the SMI count. The resulting average can indicate that handling is taking longer than expected for that workload, but the sources do not establish a universal acceptable percentage or duration. A real-time or tightly latency-bound system may require investigation at values that are harmless for a batch workload.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemsFor worst-case latency
Do not treat a low SMI percentage or low average as a latency guarantee. Rare long SMIs are diluted by numerous short ones. If deadline misses or jitter matter, preserve the raw counts, repeat captures under the triggering workload, and investigate outliers with a method capable of showing event-duration distribution; --smi-cost alone supplies an aggregate estimate, not that distribution.
Quick Recap
Practical measurement checklist
- Record CPU model, firmware configuration, kernel release, and perf version.
- Confirm support for
msr/aperf/,msr/smi/, and freeze-on-SMI before interpreting numbers. - Choose a representative, finite workload and state the measurement interval.
- Use the default command for a quick percentage; add
--no-metric-onlywhen you need counts and estimated average cost. - Repeat runs and compare like with like; do not compare an idle capture with a loaded capture.
- Report the percentage as aggregate cycle share and label any average as an average, never as a worst-case bound.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




