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-pcie-link-speed-width-degraded ▌

Operations Guides

NVMe PCIe link degraded: current link speed and width below maximum

An NVMe drive negotiates its PCIe link at boot, at hot-plug, and after some error events. When negotiation lands below the device’s capability, nothing breaks. The drive keeps serving I/O, SMART stays clean, and the filesystem sees no errors. The only symptom is a lower bandwidth ceiling: a Gen4 x4 drive running at Gen3 x2 delivers roughly one quarter of its rated throughput, and every application on top of it just runs slower.

That is why this fault is easy to miss. Teams burn time on application-level explanations for a throughput plateau while the drive has been degraded for weeks. The check itself is four sysfs reads.

This article covers how to confirm the downgrade, how to tell a hardware problem from a platform limit, and how to fix it without guesswork.

What this means

Every PCIe endpoint advertises a maximum link capability: a generation (Gen3, Gen4, Gen5) and a lane width (x1, x2, x4 for typical NVMe). During link training, the endpoint and the upstream port agree on the best speed and width both sides can sustain. If signal integrity is marginal, training backs off: fewer lanes, a lower generation, or both. The link still works. It just works slower.

Linux exposes both sides of this negotiation per device:

  • max_link_speed and max_link_width: what the endpoint can do
  • current_link_speed and current_link_width: what the link actually trained to

When current is below max, the link has degraded. There is no NVMe-level error for this because it is not an NVMe event. It is a PCIe transport event, one layer below the protocol your monitoring usually watches. I/O completes successfully, latency at low queue depth can look normal, and the observable change is that throughput saturates at a lower ceiling under load.

flowchart TD
  A[Throughput capped below spec] --> B{current_link < max_link?}
  B -- No --> C[Look elsewhere: thermal, GC, queue depth]
  B -- Yes --> D{AER correctable errors accumulating?}
  D -- Yes --> E[Physical layer: reseat, inspect connector, check retimer]
  D -- No --> F{Deliberate platform limit?}
  F -- Bifurcation x16 to 4x x4 --> G[Expected, not a fault]
  F -- BIOS gen limit or root port cap --> H[Fix BIOS setting or accept platform max]
  F -- Neither --> I[Retrain: cold boot or rescan, then re-check]
  I -- Still degraded --> E
  I -- Recovered --> J[Monitor AER and link state going forward]

Common causes

CauseWhat it looks likeFirst thing to check
Connector or lane wear (M.2, U.2, U.3 seating)Link degrades after physical maintenance, vibration, or thermal cycling; AER correctable errors may precede itPower down, reseat the drive, force renegotiation with a cold boot
Retimer or redriver failure on the backplaneOne slot or one backplane position consistently trains low while others are fineMove the drive to a different slot and compare
BIOS/UEFI per-slot generation limitLink trains to the BIOS-configured generation on every boot, across different drivesCheck the slot’s PCIe speed setting in firmware setup
Hot-plug retrain to a lower speedLink was full speed before a hot-plug or surprise event, degraded afterCheck dmesg for link retrain messages around the event
Kernel link-training regressionDrive stuck at 2.5 GT/s after a failed retrain, started after a kernel upgradeCheck kernel version and changelog against the reported regression window
Deliberate bifurcation (x16 slot split to 4x x4)Every device on the carrier shows x4 width, which is the intended designConfirm the platform’s slot bifurcation configuration

Two of these are not faults. Bifurcation is intentional: an x16 slot split into four x4 links gives each drive its maximum of x4, and current equals max per device. A BIOS or root-port generation cap means the endpoint shows its own higher capability as max while the platform holds the link lower. The Dell-style case, where an endpoint advertises Gen4 but the root port only supports Gen3, falls here. Distinguish “the link is below the drive’s capability” from “the link is below the platform’s capability” before touching hardware.

Quick checks

All read-only. Run as root where noted. Cold boots, reseats, and BIOS changes come later and are disruptive; schedule them.

# 1. Read current and max link parameters for the device
cat /sys/class/nvme/nvme0/device/current_link_speed
cat /sys/class/nvme/nvme0/device/max_link_speed
cat /sys/class/nvme/nvme0/device/current_link_width
cat /sys/class/nvme/nvme0/device/max_link_width

# 2. Cross-check with lspci: LnkCap is capability, LnkSta is current state
dev_bdf=$(basename "$(readlink -f /sys/class/nvme/nvme0/device)")
lspci -vvs "$dev_bdf" | grep -Ei 'LnkCap|LnkSta'

# 3. Check AER correctable and uncorrectable counters (root required)
cat /sys/class/nvme/nvme0/device/aer_dev_correctable
cat /sys/class/nvme/nvme0/device/aer_dev_fatal
cat /sys/class/nvme/nvme0/device/aer_dev_nonfatal

# 4. Look for link retrain and AER messages in the kernel log
dmesg | grep -Ei 'aer|link.*train|pcie.*error'

# 5. Check controller state is otherwise healthy
cat /sys/class/nvme/nvme0/state

# 6. Confirm the drive reports clean at the NVMe layer
nvme smart-log /dev/nvme0 | grep -Ei 'critical_warning|media_errors'

If the aer_dev_* files do not exist, AER may be disabled or not exposed for that device; absence is not proof of a healthy link.

A note on lspci: when LnkSta is below LnkCap, it appends “(downgraded)” for endpoint devices. That label compares the endpoint’s current state to its own capability only. It does not account for upstream limits, so “(downgraded)” can appear on a link that is running at the maximum the platform supports. Treat the label as a prompt to investigate, not a verdict.

How to diagnose it

  1. Confirm the mismatch. Read the four sysfs attributes. If current_link_speed is below max_link_speed, or current_link_width is below max_link_width, the link is degraded. If they match, your throughput problem is elsewhere: thermal throttling, GC pressure, queue depth, or a workload change.

  2. Quantify the impact. Per-lane bandwidth roughly doubles per PCIe generation. Dropping one generation on the same width halves peak bandwidth; halving the width halves it again. Gen4 x4 to Gen3 x2 is approximately a 4x reduction. Compare this against the throughput ceiling you actually observe under load to confirm the link, not something downstream, is the binding constraint.

  3. Check AER counters. Read aer_dev_correctable (per-type fields plus TOTAL_ERR_COR), aer_dev_fatal, and aer_dev_nonfatal. On a healthy link these counters are zero. Accumulating correctable errors (RxErr, BadTLP, BadDLLP class events) mean the physical layer is marginal and retransmitting silently. Correctable errors that accumulate before or alongside a downgrade point hard at the physical path: connector, cable, riser, retimer. Correctable errors can also accumulate without a downgrade, so a zero counter does not fully exonerate the physical layer, but a rising counter is strong corroboration.

  4. Rule out platform limits before blaming hardware. Check whether the slot is bifurcated, whether BIOS pins the slot to a lower generation, and whether the upstream root port or bridge tops out below the drive’s capability. If the root port caps at Gen3, a Gen4 drive will always show current below max, and that is by design.

  5. Check for a kernel link-training regression. This is a real, documented regression: kernel v6.5’s automatic link-retrain workaround (PCI: Work around PCIe link training failures) could leave some devices stuck at 2.5 GT/s after a failed retrain. The core mainline fix landed in v6.12 (PCI: Revert to the original speed after PCIe failed link retraining, plus PCI: Clear the LBMS bit after a link retrain); v6.13’s pci/bwctrl merge added the LBMS-based retrain helpers and Intel platform quirks, which is what the v6.5-to-v6.13 window refers to. On Ubuntu 24.04, the GA kernel (6.8.x) was still affected in vendor field testing and the 6.14 HWE kernel carries the fix; RHEL 9.4 was also reported affected; its backport status should be confirmed against your distro’s errata before planning the upgrade.

  6. Force a retrain and re-check. A cold boot (full power cycle, not a warm reboot) forces link training from scratch. This is disruptive; fail over workloads and confirm redundancy first. If the link comes back at full speed and stays there, the downgrade was a transient training failure. If it degrades again under load or after thermal events, the physical path is marginal. Some controllers drop speed after sustained writes and recover after a cold boot, which indicates a thermal or signal-integrity problem rather than permanent damage.

  7. Isolate slot versus drive. If physically accessible, move the drive to a known-good slot during a maintenance window. Degradation follows the drive: suspect the drive’s connector or controller. Degradation stays with the slot: suspect the slot, riser, backplane, or retimer.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
current_link_speed vs max_link_speedDirect detection of a generation downgradeAny mismatch
current_link_width vs max_link_widthDirect detection of a lane downgradeAny mismatch
aer_dev_correctable (TOTAL_ERR_COR and per-type fields)Physical layer margin; correctable errors are silently retransmittedSustained rate above zero
aer_dev_fatal / aer_dev_nonfatalSevere transport errors; fatal errors can isolate the deviceAny increment
Throughput vs negotiated bandwidth ceilingConfirms the link is the bottleneck, not the driveSustained ceiling well below spec under load
Composite temperatureThermal stress degrades signal integrity and can trigger retrainsSustained high temperature correlated with degradation events

Severity guidance from the playbook: a mismatch between current and max link parameters is TICKET-level. Escalate when the reduced bandwidth is insufficient for the workload, or when AER uncorrectable errors appear.

One extreme worth calling out: a drive that should run Gen3 or Gen4 x4 and negotiates to 2.5 GT/s x1 (roughly 250 MB/s) is often a failing controller hitting training errors and backing off to the minimum survivable link. Treat that as a drive-failure signal, not a cabling nuisance, and correlate with the error log and SMART data.

Fixes

Reseat and force renegotiation

Power down, remove and reseat the drive (M.2 screw and connector, U.2/U.3 carrier, EDSFF sled), then cold boot. Insufficient insertion force and contaminated contacts are common, especially after chassis work. Tradeoff: requires downtime on that node; do it only after failover or in a maintenance window.

Fix BIOS/UEFI slot configuration

If a per-slot generation setting is forcing the link low, set it to the generation both the slot and drive support, or to Auto if Auto trains correctly. If bifurcation is the cause, decide whether the lane split is still what you want; it is a design choice, not a defect. BIOS changes require a reboot and should be treated like firmware work, not a quick toggle.

Replace the physical path

If AER counters keep rising after reseating, swap components in order of suspicion: cable or riser, then slot (move the drive), then backplane or retimer assembly. Retimers on server NVMe backplanes are a known failure point and are invisible to everything except link behavior and AER counters.

Update the kernel if you are in the regression window

If your kernel is in the v6.5 to v6.13 range and retrains leave devices stuck low, move to a kernel carrying the fix (v6.12 or later upstream, or a distro kernel with the backport; v6.13+ adds the platform quirks). On Ubuntu 24.04, the 6.14 HWE kernel is described as resolving it; confirm against your release notes before planning the upgrade.

Accept and document platform limits

When the root port or platform genuinely caps the link, no fix exists short of hardware change. Record the expected negotiated values for that slot so future comparisons have a correct baseline.

Do not mask the problem

Increasing queue depth or switching I/O schedulers will not recover lost link bandwidth. ASPM (Active State Power Management) transitions can cause transient retrains and spurious correctable errors on some platforms; disabling ASPM is common for production NVMe, but treat that as a stability measure, not a fix for a marginal connector.

Prevention

  • Baseline at provisioning. Record current_link_speed, current_link_width, and the max values for every drive at deployment. Degradation is only detectable against a known-good baseline.
  • Check link state after any chassis work. Reseating, cable routing, riser swaps, and backplane maintenance are the top triggers. Add a link-state check to the post-maintenance checklist.
  • Alert on the comparison, not the values. The check is current < max for either speed or width. A one-line script in cron or a collector plugin is enough; the data is four file reads.
  • Track AER counters continuously. Correctable errors accumulating over days are the earliest warning of a link that will eventually retrain down. In healthy systems these counters stay at zero.
  • Manage thermals. Sustained high temperatures degrade connector and trace signal integrity over time. Keep composite temperature comfortably below WCTEMP under sustained load.
  • Beware hot-plug churn. Repeated hot-plug events increase the chance of a bad retrain, especially on kernels in the suspected regression window.

How Netdata helps

Netdata does not collect the PCIe link speed and width attributes or the AER sysfs counters by default, so the link check itself stays a manual or scripted step. Where Netdata shortens this investigation is the surrounding context:

  • Throughput and IOPS per device: the visible symptom of a degraded link is a lowered bandwidth ceiling, which shows up directly in block device throughput charts under load.
  • Composite temperature and thermal management transitions: helps confirm or rule out thermal contribution to signal degradation and retrains.
  • Critical warning bits and media error rates: a fast way to confirm the NVMe layer is clean, which is what makes a link downgrade so deceptive.
  • Unsafe shutdown and power cycle counters: hot-plug and power events are when retrains happen; correlating link degradation timing with these counters narrows the cause.
  • Latency trends: latency that stays flat at low load but degrades sharply as throughput approaches the new, lower ceiling is the classic signature of a transport cap rather than a controller problem.

The practical workflow: notice the throughput ceiling in Netdata, confirm the NVMe layer is clean from SMART charts, then run the four sysfs reads to confirm the link downgrade and start the physical-layer investigation.