---
title: "Discussion on \"What a NIC counter costs to read, and why a zero proves nothing\" | Hashnode"
description: "Discussion on \"What a NIC counter costs to read, and why a zero proves nothing\". hw_counters or counters/, firmware queries, one signal under three driver names, and four ways an RDMA counter lies."
url: "https://hashnode.com/posts/what-a-nic-counter-costs-to-read-and-why-a-zero-proves-nothing/6b0b0c9056d12223367f5f70"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What a NIC counter costs to read, and why a zero proves nothing](https://pegasus-nathanael-tech.hashnode.dev/what-a-nic-counter-costs-to-read-and-why-a-zero-proves-nothing?utm_source=hashnode&utm_medium=feed)

hw\_counters or counters/, firmware queries, one signal under three driver names, and four ways an RDMA counter lies.

3d ago · 5 min read · pegasus-nathanael-tech.hashnode.dev  
Read the article

-   [#rdma](https://hashnode.com/tag/rdma)
-   [#linux](https://hashnode.com/tag/linux)
-   [#networking](https://hashnode.com/tag/networking)
-   [#observability](https://hashnode.com/tag/observability)
-   [#buildinpublic](https://hashnode.com/tag/buildinpublic)

## Written by

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

@nathanael-fetue · Toulouse

  
[View profile](https://hashnode.com/@nathanael-fetue)

Systems engineer: performance, networks and AI infrastructure | ENSEEIHT graduate

Hi, I'm Nathanael, an ENSEEIHT MSc graduate working on systems and low-level performance. At INRIA, I designed hardware isolation for UPMEM's processing-in-memory processor (at most 5.54% overhead vs 26–120% in software). I now build AgentXDP, an open-source C++/eBPF agent for AI cluster networks. Looking for my first role in systems, performance or AI infrastructure. Contact: nathanaelfetuefoko@gmail.com | linkedin.com/in/nathanael-fetue-foko

## Responses 2

Markdown supported · ⌘↵ to post

[c-wind](https://hashnode.com/@c-wind)

[2d ago](https://hashnode.com/posts/what-a-nic-counter-costs-to-read-and-why-a-zero-proves-nothing/6b0b0c9056d12223367f5f70/comment/6b0c247efe40bf45065e7461)

The Broadcom `counters/` files that stay zero because the driver never fills them is the scariest case — a dashboard that treats 0 as "healthy" will stay green forever. Same shape as raising `lifespan` above the scrape interval: you get a flat line, then a jump, and both look like a quiet NIC until they aren't.

Glad you didn't merge rxe `completer_retry_err` with ConnectX `local_ack_timeout_err`. The names sound related, but one includes NAK retries and the other is timeouts only; folding them into one retransmission signal would have made the two drivers incomparable.

One operational note on republishing the last good `counters/` value for 10 intervals: that's the right bandwidth tradeoff, but it also means an alert on "rate == 0 for N seconds" can fire in the middle of a perfectly healthy republish window. Might be worth tagging those points as stale, or only computing rates across two actual firmware reads.

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

[1d ago](https://hashnode.com/posts/what-a-nic-counter-costs-to-read-and-why-a-zero-proves-nothing/6b0b0c9056d12223367f5f70/comment/6b0c247efe40bf45065e7461#reply-6b0d7deb7f7611369f19282d)

Thanks, all three points are right, and the last one was a real gap. A rate over less than two firmware reads sees a flat line, so a "rate == 0 for N s" rule can fire in a healthy window. The agent now exports a per-port count of real counters/ reads, so a rule can require at least two fresh reads in its range and a dashboard can grey out republished points.

Explicit sample timestamps were the other option, but Prometheus advises exporters not to set them. And yes, keeping completer\_retry\_err and local\_ack\_timeout\_err apart was deliberate: one common name would have made the two drivers incomparable.
