STRUCT CEPH_SUBVOL_METRIC_RB_ENTRY(9)
π 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 attracker->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, andwrite_bytesare 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
- 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