---
title: "Comment by Mike Dabydeen on \"Half a PCIe link, and no  network error counter names it\" | Hashnode"
description: "I'd split the degraded gauge into width and speed, because they usually fail for different reasons. A link that trained at x8 instead of x16 is almost always ph"
url: "https://hashnode.com/posts/half-a-pcie-link-and-no-network-error-counter-names-it/6b0f61684ef923d9f3d21337/comment/6b100bf159553f03f90471dd"
---

[Discussion](https://hashnode.com/posts/half-a-pcie-link-and-no-network-error-counter-names-it/6b0f61684ef923d9f3d21337)

Comment [Half a PCIe link, and no network error counter names it](https://hashnode.com/posts/half-a-pcie-link-and-no-network-error-counter-names-it/6b0f61684ef923d9f3d21337)

[Mike Dabydeen](https://hashnode.com/@firelinks)

[2d ago](https://hashnode.com/posts/half-a-pcie-link-and-no-network-error-counter-names-it/6b0f61684ef923d9f3d21337/comment/6b100bf159553f03f90471dd)

I'd split the degraded gauge into width and speed, because they usually fail for different reasons. A link that trained at x8 instead of x16 is almost always physical, the badly seated card or damaged riser you describe. A lower speed is often deliberate, for the reasons your note already gives (power management, the kernel's bandwidth controller). If both feed one boolean, a few harmless speed drops teach people to silence the metric, and the lane loss you built it for gets silenced with them.

So agentxdp\_pcie\_link\_width\_degraded could alert on its own, and the speed flag only when it holds under load for a few minutes, for example joined with the throughput counters from part 20. One caveat for newer cards: PCIe 6.0 adds the L0p state, which can narrow a link on purpose to save power, so the width rule will need the same treatment there. A fake /sys case with low speed and full width would pin that the two flags stay independent.

[Nathanael FETUE](https://hashnode.com/@nathanael-fetue)

[2d ago](https://hashnode.com/posts/half-a-pcie-link-and-no-network-error-counter-names-it/6b0f61684ef923d9f3d21337/comment/6b100bf159553f03f90471dd#reply-6b1083e978273057da6f5c39)

Good point, thanks. I hadn't thought about the two failing for different reasons, but it makes sense: a missing lane is almost always physical, a lower speed often isn't. So I'm splitting it into pcie\_link\_width\_degraded and pcie\_link\_speed\_degraded, with a test at low speed and full width to make sure they stay separate. Width can alert on its own; speed only if it stays low under load.

Didn't know about L0p in PCIe 6.0, I'll keep that in mind for the width rule
