STRUCT CEPH_SUBVOL_METRIC_RB_ENTRY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct ceph_subvol_metric_rb_entry(9) πŸ’…

okay so bestie, we're in the Kernel API Manual today and this page is literally about struct ceph_subvol_metric_rb_entry β€” say that five times fast, i dare you β€” the per-subvolume I/O metrics node. yes. it's giving "one little node in a red-black tree but she's tracking EVERYTHING." πŸŽ€


✨ NAME ✨

struct ceph_subvol_metric_rb_entry β€” the per-subvolume I/O metrics node. that's her. that's the whole vibe. πŸ¦‹


✨ SYNOPSIS ✨

like, here's exactly what she looks like, no notes:

struct ceph_subvol_metric_rb_entry {
    struct rb_node node;
    u64 subvolume_id;
    u64 read_ops;
    u64 write_ops;
    u64 read_bytes;
    u64 write_bytes;
    u64 read_latency_us;
    u64 write_latency_us;
 };

(yeah there's a lil extra space before that closing brace, leave it alone, it's part of the outfit πŸ’…)


✨ Members ✨

time for the roll call, everyone say hi πŸ‘‘

  • node β€” the red-black tree linkage, pointing at tracker->tree. she's literally the reason this struct can hang out in the tree at all. main character energy, fr fr. 🌳
  • subvolume_id β€” the subvolume identifier, and also the key for rb-tree lookup. iykyk β€” this is the one you search by. πŸ”‘
  • read_ops β€” accumulated read operation count since the last snapshot. she's been counting. respectfully. πŸ‘€
  • write_ops β€” accumulated write operation count since the last snapshot. same energy, different direction. ✍️
  • read_bytes β€” accumulated bytes read since the last snapshot. big number vibes. πŸ“–
  • write_bytes β€” accumulated bytes written since the last snapshot. the other half of the byte story. πŸ“
  • read_latency_us β€” the sum of read latencies in microseconds. not an average, bestie β€” a sum. do not come for me. ⏱️
  • write_latency_us β€” the sum of write latencies in microseconds. again: sum. microseconds. periodt. ⏱️
πŸ’€ gentle reminder that the snapshot thing keeps showing up β€” read_ops, write_ops, read_bytes, and write_bytes are all counted since last snapshot, so don't be weird about it.

🌈 SEE ALSO 🌈

  • Kernel file ./fs/ceph/subvolume_metrics.c β€” go read the source, she ate. πŸ”₯

and that's the page!! 🫢 this came to you courtesy of ./fs/ceph, dated October 2026, in the iconic struct ceph_...ric_rb_entry(9) format (yes the title gets truncated in the header, that's just how the kernel rolls, we don't make the rules πŸ’œ). mwah, go track some metrics responsibly ✨🌸

πŸ“¦ where this page comes from