The only agent that thinks for itself

Autonomous Monitoring with self-learning AI built-in, operating independently across your entire stack.

Unlimited Metrics & Logs
Machine learning & MCP
5% CPU, 150MB RAM
3GB disk, >1 year retention
800+ integrations, zero config
Dashboards, alerts out of the box
> Discover Netdata Agents

Centralized metrics streaming and storage

Aggregate metrics from multiple agents into centralized Parent nodes for unified monitoring across your infrastructure.

Stream from unlimited agents
Long-term data retention
High availability clustering
Data replication & backup
Scalable architecture
Enterprise-grade security
> Learn about Parents

Fully managed cloud platform

Access your monitoring data from anywhere with our SaaS platform. No infrastructure to manage, automatic updates, and global availability.

Zero infrastructure management
99.9% uptime SLA
Global data centers
Automatic updates & patches
Enterprise SSO & RBAC
SOC2 & ISO certified
> Explore Netdata Cloud

Deploy Netdata Cloud in your infrastructure

Run the full Netdata Cloud platform on-premises for complete data sovereignty and compliance with your security policies.

Complete data sovereignty
Air-gapped deployment
Custom compliance controls
Private network integration
Dedicated support team
Kubernetes & Docker support
> Learn about Cloud On-Premises

Powerful, intuitive monitoring interface

Modern, responsive UI built for real-time troubleshooting with customizable dashboards and advanced visualization capabilities.

Real-time chart updates
Customizable dashboards
Dark & light themes
Advanced filtering & search
Responsive on all devices
Collaboration features
> Explore Netdata UI

Monitor on the go

Native iOS and Android apps bring full monitoring capabilities to your mobile device with real-time alerts and notifications.

iOS & Android apps
Push notifications
Touch-optimized interface
Offline data access
Biometric authentication
Widget support
> Download apps

The future of infrastructure observability

See our strategic direction across AI-native observability, full-stack signals, operational intelligence, and enterprise platform maturity.

AI-native observability
Full-stack signal coverage
Operational intelligence
Enterprise platform maturity
Agent releases every 6 weeks
Cloud continuous delivery
> Explore Product Roadmap

Best energy efficiency

True real-time per-second

100% automated zero config

Centralized observability

Multi-year retention

High availability built-in

Zero maintenance

Always up-to-date

Enterprise security

Complete data control

Air-gap ready

Compliance certified

Millisecond responsiveness

Infinite zoom & pan

Works on any device

Native performance

Instant alerts

Monitor anywhere

AI-native observability

Continuous delivery

Open source foundation

80% Faster Incident Resolution

AI-powered troubleshooting from detection, to root cause and blast radius identification, to reporting.

True Real-Time and Simple, even at Scale

Linearly and infinitely scalable full-stack observability, that can be deployed even mid-crisis.

90% Cost Reduction, Full Fidelity

Instead of centralizing the data, Netdata distributes the code, eliminating pipelines and complexity.

See and Map Your Entire Network

Live topology, flow analytics, and SNMP device and trap monitoring — unified with your full-stack observability.

Control Without Surrender

SOC 2 Type 2 certified with every metric kept on your infrastructure.

Integrations

800+ collectors and notification channels, auto-discovered and ready out of the box.

800+ data collectors
Auto-discovery & zero config
Cloud, infra, app protocols
Notifications out of the box
> Explore integrations
Real Results
46% Cost Reduction

Reduced monitoring costs by 46% while cutting staff overhead by 67%.

— Leonardo Antunez, Codyas

Zero Pipeline

No data shipping. No central storage costs. Query at the edge.

From Our Users
"Out-of-the-Box"

So many out-of-the-box features! I mostly don't have to develop anything.

— Simon Beginn, LANCOM Systems

No Query Language

Point-and-click troubleshooting. No PromQL, no LogQL, no learning curve.

Enterprise Ready
67% Less Staff, 46% Cost Cut

Enterprise efficiency without enterprise complexity—real ROI from day one.

— Leonardo Antunez, Codyas

SOC 2 Type 2 Certified

Zero data egress. Only metadata reaches the cloud. Your metrics stay on your infrastructure.

Full Coverage
800+ Collectors

Auto-discovered and configured. No manual setup required.

Any Notification Channel

Slack, PagerDuty, Teams, email, webhooks—all built-in.

Built for the People Who Get Paged

Because 3am alerts deserve instant answers, not hour-long hunts.

Every Industry Has Rules. We Master Them.

See how healthcare, finance, and government teams cut monitoring costs 90% while staying audit-ready.

Monitor Any Technology. Configure Nothing.

Install the agent. It already knows your stack.
From Our Users
"A Rare Unicorn"

Netdata gives more than you invest in it. A rare unicorn that obeys the Pareto rule.

— Eduard Porquet Mateu, TMB Barcelona

99% Downtime Reduction

Reduced website downtime by 99% and cloud bill by 30% using Netdata alerts.

— Falkland Islands Government

Real Savings
30% Cloud Cost Reduction

Optimized resource allocation based on Netdata alerts cut cloud spending by 30%.

— Falkland Islands Government

46% Cost Cut

Reduced monitoring staff by 67% while cutting operational costs by 46%.

— Codyas

Real Coverage
"Plugin for Everything"

Netdata has agent capacity or a plugin for everything, including Windows and Kubernetes.

— Eduard Porquet Mateu, TMB Barcelona

"Out-of-the-Box"

So many out-of-the-box features! I mostly don't have to develop anything.

— Simon Beginn, LANCOM Systems

Real Speed
Troubleshooting in 30 Seconds

From 2-3 minutes to 30 seconds—instant visibility into any node issue.

— Matthew Artist, Nodecraft

20% Downtime Reduction

20% less downtime and 40% budget optimization from out-of-the-box monitoring.

— Simon Beginn, LANCOM Systems

Pay per Node. Unlimited Everything Else.

One price per node. Unlimited metrics, logs, users, and retention. No per-GB surprises.

Free tier—forever
No metric limits or caps
Retention you control
Cancel anytime
> See pricing plans

What's Your Monitoring Really Costing You?

Most teams overpay by 40-60%. Let's find out why.

Expose hidden metric charges
Calculate tool consolidation
Customers report 30-67% savings
Results in under 60 seconds
> See what you're really paying

Your Infrastructure Is Unique. Let's Talk.

Because monitoring 10 nodes is different from monitoring 10,000.

On-prem & air-gapped deployment
Volume pricing & agreements
Architecture review for your scale
Compliance & security support
> Start a conversation

Monitoring That Sells Itself

Deploy in minutes. Impress clients in hours. Earn recurring revenue for years.

30-second live demos close deals
Zero config = zero support burden
Competitive margins & deal protection
Response in 48 hours
> Apply to partner

Per-Second Metrics at Homelab Prices

Same engine, same dashboards, same ML. Just priced for tinkerers.

Community: Free forever · 5 nodes · non-commercial
Homelab: $90/yr · unlimited nodes · fair usage
> Get the Homelab Plan

$1,000 Per Referral. Unlimited Referrals.

Your colleagues get 10% off. You get 10% commission. Everyone wins.

10% of subscriptions, up to $1,000 each
Track earnings inside Netdata Cloud
PayPal/Venmo payouts in 3-4 weeks
No caps, no complexity
> Get your referral link
Cost Proof
40% Budget Optimization

"Netdata's significant positive impact" — LANCOM Systems

Calculate Your Savings

Compare vs Datadog, Grafana, Dynatrace

Savings Proof
46% Cost Reduction

"Cut costs by 46%, staff by 67%" — Codyas

30% Cloud Bill Savings

"Reduced cloud bill by 30%" — Falkland Islands Gov

Enterprise Proof
"Better Than Combined Alternatives"

"Better observability with Netdata than combining other tools." — TMB Barcelona

Real Engineers, <24h Response

DPA, SLAs, on-prem, volume pricing

Why Partners Win
Demo Live Infrastructure

One command, 30 seconds, real data—no sandbox needed

Zero Tickets, High Margins

Auto-config + per-node pricing = predictable profit

Homelab Ready
Free Video Course

8-episode Netdata tutorial by LearnLinux.tv

76k+ GitHub Stars

3rd most starred monitoring project

Worth Recommending
Product That Delivers

Customers report 40-67% cost cuts, 99% downtime reduction

Zero Risk to Your Rep

Free tier lets them try before they buy

AI Support Assistant, Available 24/7

Nedi has access to all official documentation, source code, and resources. Ask any question about Netdata—responds in your language.

Deployment & configuration
Troubleshooting & sizing
Alerts & notifications
Evidence-based answers
> Ask Nedi now

Never Fight Fires Alone

Docs, community, and expert help—pick your path to resolution.

Learn.netdata.cloud docs
Discord, Forums, GitHub
Premium support available
> Get answers now

60 Seconds to First Dashboard

One command to install. Zero config. 850+ integrations documented.

Linux, Windows, K8s, Docker
Auto-discovers your stack
> Read our documentation

76,000+ Engineers Strong

615+ contributors. 1.5M daily downloads. One mission: simplify observability.

Per-Second. 90% Cheaper. Data Stays Home.

Side-by-side comparisons: costs, real-time granularity, and data sovereignty for every major tool.

See why teams switch from Datadog, Prometheus, Grafana, and more.

> Browse all comparisons
Edge-Native Observability, Born Open Source
Per-second visibility, ML on every metric, and data that never leaves your infrastructure.
Founded in 2016
615+ contributors worldwide
Remote-first, engineering-driven
Open source first
> Read our story
Promises We Publish—and Prove
12 principles backed by open code, independent validation, and measurable outcomes.
Open source, peer-reviewed
Zero config, instant value
Data sovereignty by design
Aligned pricing, no surprises
> See all 12 principles
Edge-Native, AI-Ready, 100% Open
76k+ stars. Full ML, AI, and automation—GPLv3+, not premium add-ons.
76,000+ GitHub stars
GPLv3+ licensed forever
ML on every metric, included
Zero vendor lock-in
> Explore our open source
Build Real-Time Observability for the World
Remote-first team shipping per-second monitoring with ML on every metric.
Remote-first, fully distributed
Open source (76k+ stars)
Challenging technical problems
Your code on millions of systems
> See open roles
Meet the Team Behind Netdata
Conferences, meetups, and tradeshows where you can see Netdata in action and talk to the engineers who build it.
Live demos and deep dives
Book 1-on-1 meetings
Talks and panel sessions
Event recaps and photos
> See all events
Talk to a Netdata Human in <24 Hours
Sales, partnerships, press, or professional services—real engineers, fast answers.
Discuss your observability needs
Pricing and volume discounts
Partnership opportunities
Media and press inquiries
> Book a conversation
Your Data. Your Rules.
On-prem data, cloud control plane, transparent terms.
Trust & Scale
76,000+ GitHub Stars

One of the most popular open-source monitoring projects

SOC 2 Type 2 Certified

Enterprise-grade security and compliance

Data Sovereignty

Your metrics stay on your infrastructure

Validated
University of Amsterdam

"Most energy-efficient monitoring solution" — ICSOC 2023, peer-reviewed

ADASTEC (Autonomous Driving)

"Doesn't miss alerts—mission-critical trust for safety software"

Community Stats
615+ Contributors

Global community improving monitoring for everyone

1.5M+ Downloads/Day

Trusted by teams worldwide

GPLv3+ Licensed

Free forever, fully open source agent

Why Join?
Remote-First

Work from anywhere, async-friendly culture

Impact at Scale

Your work helps millions of systems

$ guides / nvme / nvme-aspm-latency-spikes ▌

Operations Guides

NVMe ASPM latency spikes: PCIe power states adding first-request latency

You are chasing tail latency on an NVMe-backed service. The p99 graph shows sporadic spikes: tens of microseconds added to reads that should complete in well under 100us. The spikes do not correlate with load, temperature, media errors, queue depth, or garbage collection. SMART is clean. The block layer looks clean. The one pattern you can find: the slow I/Os tend to be the first request after the device sat idle.

That pattern is the signature of PCIe Active State Power Management (ASPM). When the NVMe link has no traffic, ASPM lets it drop into a low-power state. The next I/O has to wake the link before it can be serviced, and the wake-up time lands directly on that first request’s latency. There are no errors, no log lines, nothing in SMART: just tail latency that looks random until you line it up against idle gaps.

This article covers how to recognize ASPM-induced latency, how to confirm it on a live system, how it differs from NVMe APST (a separate power mechanism with similar symptoms), and how to turn it off without breaking power management for the rest of the machine.

What this means

ASPM lets an idle PCIe link save power by transitioning out of the fully-active L0 state. The states that matter for NVMe latency:

  • L0s: shallow idle, fast entry and exit.
  • L1: deeper idle, the link is effectively off until something needs it.
  • L1.1 / L1.2: L1 substates with progressively lower power and longer exit latency. L1.2 powers down high-speed circuits; exit involves the device’s advertised T_CommonMode and T_PowerOn delays, which can run to tens of microseconds on some endpoints.

When the host submits a command after an idle period, the link must return to L0 before the transaction moves. That exit latency is added to the first request and nothing else. Under steady load the link never idles, so the symptom disappears under load and reappears exactly when traffic is bursty or low-rate. That is why it reads as random tail latency rather than a consistent slowdown.

A second, independent mechanism produces almost identical symptoms: NVMe APST (Autonomous Power State Transition), where the NVMe controller itself drops into a low-power operational state. Disabling one does not disable the other, and confusing the two is the most common way operators “fix” the problem and change nothing. More on that below.

A smaller contributor in the same family: deep CPU C-states add roughly 100-500ns when the core handling the completion has to wake up. That is an order of magnitude below ASPM L1.2 exit, but on very latency-sensitive paths it stacks.

flowchart TD
  A[Workload goes idle] --> B[PCIe link enters L1/L1.2 via ASPM]
  B --> C[Next I/O submitted]
  C --> D[Link exit latency added to first request]
  D --> E[Tail latency spike with no errors]
  A2[Workload goes idle] --> B2[NVMe controller enters low power state via APST]
  B2 --> C
  A3[Core goes idle] --> B3[Deep CPU C-state]
  B3 --> C

Common causes

CauseWhat it looks likeFirst thing to check
ASPM L1/L1.2 enabled on the NVMe linkLatency spikes only on first I/O after idle; clean under sustained loadlspci -vv output for the device: LnkCtl: ASPM L1 Enabled
NVMe APST transitioning the controller to a deep power stateSame idle-correlated spikes; sometimes accompanied by kernel “faulty power saving mode” hintsnvme get-feature /dev/nvme0 -f 0x0c and the nvme_core.default_ps_max_latency_us module parameter
Deep CPU C-states on completion-handling coresVery small (~100-500ns) added latency, uniform rather than spikyCPU idle governor settings; only matters at the extreme low end
D3cold behavior on newer kernels“Unable to change power state from D3cold to D0, device inaccessible” errors; device stalls after idledmesg for D3cold messages; distinct from pure latency spikes

Quick checks

All of these are read-only.

# Check whether ASPM is enabled on the NVMe device's link
# Look for "LnkCtl: ASPM L1 Enabled" (or L0s) in the capabilities section
lspci -vv -s $(basename $(readlink -f /sys/class/nvme/nvme0/device))

# Check the current ASPM policy
cat /sys/module/pcie_aspm/parameters/policy

# Check the NVMe controller's autonomous power state setting
nvme get-feature /dev/nvme0 -f 0x0c

# Check the APST latency tolerance the kernel applies (0 disables APST)
cat /sys/module/nvme_core/parameters/default_ps_max_latency_us

# Look for the kernel's power-management hint in the logs
journalctl -k --no-pager | grep -i "power saving mode\|default_ps_max_latency"

For confirmation, correlate block-layer latency against idle time. /sys/block/nvme0n1/stat only gives you averages, which hide this entirely: a ten-microsecond spike on one request per minute does not move an average. You need per-I/O visibility, for example biolatency or a bpftrace one-liner on block_rq_complete, sampled during a low-traffic window. If the outlier I/Os line up with idle gaps of a few hundred milliseconds or more, power-state exit is the likely cause. The exact idle dwell time that triggers L1 entry is hardware and policy dependent.

How to diagnose it

  1. Establish that the symptom is first-request-after-idle latency. Capture per-I/O latency during a quiet period (eBPF/biolatency, or application-side latency logging with timestamps). Plot latency against time-since-previous-I/O. ASPM shows a clear step: requests after a gap are slow, requests in a stream are fast. GC stalls and thermal throttling do not produce this idle-gap correlation; they correlate with write pressure and temperature instead.

  2. Check the link state configuration. Run the lspci -vv check above. If LnkCtl shows ASPM Disabled, ASPM is not your cause; look at APST or elsewhere. Note that LnkCap shows what the link supports and LnkCtl shows what is currently enabled. You want the latter.

  3. Check APST independently. nvme get-feature /dev/nvme0 -f 0x0c shows whether the controller is allowed to autonomously transition power states. A controller can sit in a deep non-operational power state even with ASPM fully off, because APST is controller-internal and does not depend on the PCIe link state.

  4. Rule out the lookalikes. Idle-correlated first-request latency has a few neighbors worth excluding before you change anything: post-idle GC backlog (the first write after a long idle triggers deferred garbage collection), thermal behavior after idle (rare), and C-state effects (too small to explain multi-microsecond spikes). The distinguishing test: disable ASPM on one node, keep it on another, and compare p99 after-idle latency.

  5. If you see actual failures, not just latency, check the kernel log for the driver’s own hint. On kernels since 5.19, when an NVMe controller stops responding (CSTS reads as 0xffffffff) the driver prints “Does your device have a faulty power saving mode enabled?” and suggests nvme_core.default_ps_max_latency_us=0 pcie_aspm=off. Treat that message as a heuristic, not a diagnosis; the same symptom comes from firmware bugs, power delivery problems, and PCIe signal integrity issues.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Per-I/O latency distribution (p99/p99.9 via eBPF)Averages hide first-request spikes entirelyOutliers clustered on post-idle requests
Block-layer average latency (/sys/block/nvme0n1/stat deltas)Baseline sanity; confirms no broad degradationRising average alongside idle-correlated outliers suggests a second problem
PCIe AER correctable counters (/sys/class/nvme/nvme0/device/aer_dev_correctable)Some chipsets log correctable errors around ASPM transitionsCorrectable error rate correlating with idle/active transitions
Link speed/width (current_link_speed, current_link_width)Link renegotiation around power transitions can transiently downgrade the linkCurrent below max after power-state churn
Kernel log for resets and power hintsASPM-adjacent firmware bugs escalate from latency to controller hangs"timeout, reset controller" / "resetting controller" lines after idle periods

Fixes

Disable ASPM for latency-sensitive devices

The cleanest runtime control is the kernel policy:

# Set ASPM policy to performance (disables ASPM link power management)
# Note: this is system-wide, affecting every PCIe device, not just NVMe
echo performance > /sys/module/pcie_aspm/parameters/policy

Persist it across reboots with the kernel parameter pcie_aspm.policy=performance. Two caveats that bite people:

  • Do not use pcie_aspm=force. It enables ASPM even on devices that do not claim support and can lock up systems. It is the opposite of what you want here.
  • Changing the policy can fail with “Operation not permitted” if the firmware owns ASPM configuration and has it disabled or locked. In that case the BIOS/UEFI setting is the only control.

The pcie_aspm=off trap

pcie_aspm=off does not reliably mean “disable ASPM.” The documented semantics are that it tells the kernel to leave ASPM configuration untouched, which means firmware-enabled ASPM stays on (kernel docs updated in 6.9; before that they claimed off disables ASPM). If you added pcie_aspm=off to your cmdline years ago and assumed the link was in L0 permanently, verify with lspci -vv rather than trusting the parameter. To actually force the link active, use pcie_aspm.policy=performance and, where available, disable ASPM in the platform firmware.

Disable NVMe APST separately

If the controller itself is the latency source, cap its autonomous power state latency at the module level:

# Runtime: allow only power states with 0us exit latency (effectively disables APST)
echo 0 > /sys/module/nvme_core/parameters/default_ps_max_latency_us

Persist as nvme_core.default_ps_max_latency_us=0 on the kernel cmdline. This is also the first half of the workaround the kernel itself suggests when it suspects power-state-related controller hangs, and it has resolved recurring I/O errors on drives with buggy power-state implementations. Community reports are heavily weighted toward consumer hardware; enterprise drives with mature firmware are less affected.

Tradeoffs

Disabling ASPM and APST raises idle power draw. On a single drive in a server this is typically a watt or two per device; on a dense NVMe box or a laptop it is measurable. That is the actual trade: idle power versus first-request tail latency. For latency-sensitive databases and queues, tail latency wins. For capacity tier storage and batch workers, leave power management on. A per-device approach (performance policy on latency-critical nodes only) is usually the right fleet posture.

Prevention

  • Baseline the setting at provisioning. Record ASPM policy and APST configuration alongside firmware version and PLP capability in your drive inventory. This class of latency is invisible until someone graphs tail latency against idle gaps, which usually happens during an incident.
  • Set the policy by role, not by default. Latency-sensitive hosts get pcie_aspm.policy=performance and nvme_core.default_ps_max_latency_us=0 baked into their image; everything else keeps platform defaults.
  • Graph tail latency, not averages. Block-layer stats provide only averages, and averages cannot see this failure. Per-I/O latency histograms belong in the NVMe monitoring baseline on any host where tail latency matters.
  • Re-verify after kernel or firmware changes. ASPM behavior has shifted across kernel releases (including D3cold handling changes and the pcie_aspm parameter semantics clarification), and firmware updates can re-enable link power states. Include the lspci LnkCtl check in post-upgrade validation.

How Netdata helps

  • Netdata’s NVMe collector surfaces the health and transport signals that sit next to this symptom: AER-adjacent PCIe errors, controller resets, and SMART health, so you can quickly exclude the loud failure modes (throttling, media errors, resets) and isolate the quiet one.
  • Per-second block-level I/O latency and throughput charts show the bursty-traffic pattern ASPM punishes: latency outliers appearing exactly when IOPS dips.
  • Correlating NVMe latency against CPU idle behavior on the same dashboard helps separate link power-state exit from C-state wake-up effects.
  • Alerting on controller state transitions and kernel-log reset patterns catches the escalation case, where a buggy power-state implementation progresses from latency spikes to controller hangs.