nfsd_stats_io_read_add(9)
β¨ nfsd_stats_io_read_add(9) β¨
okay so bestie, you're reading a page straight out of the Kernel API Manual π and it's about nfsd_stats_io_read_add β yes the whole name, we're not abbreviating, she's iconic and she knows it π
π NAME π
nfsd_stats_io_read_add β literally just counts the number of bytes for an NFS READ π
π¦ SYNOPSIS π¦
void nfsd_stats_io_read_add (struct nfsd_net *nn , struct svc_export
*exp , s64 amount );
that's the whole signature, no notes, she ate β¨
πΈ ARGUMENTS πΈ
nnβ the target network namespace π«Ά like, which netns are we doing this forexpβ the target export, the one getting read from πamountβ the byte count, the actual number of bytes we're adding up, no cap
π₯ DESCRIPTION π₯
so these counters get updated on every single READ request β every one, bestie, no skipping π
the readers use percpu_counter_sum_positive, and that is the main character detail here: because of it, local batching does not affect read accuracy π so you can batch on the local side all you want and the numbers still come out right. slay.
π SEE ALSO π
go look at the kernel file ./fs/nfsd/stats.h π and also these besties right here:
nfsd_stats_rc_hits_inc(9)nfsd_stats_rc_misses_inc(9)nfsd_stats_rc_nocache_inc(9)nfsd_stats_io_write_add(9)nfsd_stats_drc_mem_usage_add(9)nfsd_stats_drc_mem_usage_sub(9)
ngl this one's short but she's still doing important work π
that's the whole page, mwah π β sourced from ./fs/nfsd, dated October 2026, and remember: nfsd_stats_io_read_add(9) is the moment, iykyk π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms