October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk4 min

Perf SMI Cost: Measure System Management Interrupt Overhead with Linux perf

Linux perf’s --smi-cost estimates aggregate CPU cycles spent in System Management Interrupts. This guide covers commands, prerequisites, output interpretation, unsupported errors, and the limits of averages for latency analysis.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

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.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

This 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
Sale
GMKtec G3S Mini PC Intel N95 Processor (Up to 3.4GHz) 8GB RAM 256GB M.2 SSD | Mini Desktop Computer with VESA Mount for Office Home Business HTPC Proxmox, Dual 4K Display, WiFi 5, Gigabit Ethernet
  • 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.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

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
DELL Optiplex 7060 SFF Desktop Computer PC | Intel 8th Gen i7-8700 (6 Core) | 32GB DDR4 Ram 512GB NVMe M.2 SSD | Built-in WiFi & Bluetooth | Windows 11 Pro | Wireless Keyboard & Mouse(Renewed)
  • 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.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What the option requires

  • Perf must support the msr/aperf/ and msr/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.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

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:

  1. Confirm that the running kernel and the installed perf tool are from a compatible release.
  2. Verify that the platform exposes both msr/aperf/ and msr/smi/ events; a CPU family that lacks the relevant MSRs cannot provide this metric.
  3. Check that the kernel can use freeze-on-SMI for the CPU counters.
  4. 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.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For 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.

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-only when 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.