STRUCT CEPH_SUBVOLUME_METRIC_ENTRY_WIRE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, welcome to the Kernel API Manual entry for struct ceph_subvolume_metric_entry_wire β€” it’s literally the on-wire format sent to MDS. lowkey important, highkey a struct that has to behave. πŸ’…

✨ SYNOPSIS ✨

struct ceph_subvolume_metric_entry_wire {
    __le64 subvolume_id;
    __le32 read_ops;
    __le32 write_ops;
    __le64 read_bytes;
    __le64 write_bytes;
    __le64 read_latency_us;
    __le64 write_latency_us;
    __le64 time_stamp;
};

πŸŽ€ Members πŸŽ€

  • subvolume_id β€” the subvolume identifier. it’s literally the name tag for the subvolume, and we stan. πŸ’–
  • read_ops β€” read operation count. it’s a 32-bit value, clamped from the 64-bit internal count. so yes, it gets squished down, no cap. 🫢
  • write_ops β€” write operation count, also 32-bit and clamped from the 64-bit internal count. same squish, different ops. πŸ’…
  • read_bytes β€” total bytes read. all the read bytes, accounted for. πŸ“š
  • write_bytes β€” total bytes written. all the write bytes, periodt. ✍️
  • read_latency_us β€” cumulative read latency in microseconds. it’s giving β€œhow long did reads take overall” energy. ⏱️
  • write_latency_us β€” cumulative write latency in microseconds. same latency vibe, but for writes. πŸ•°οΈ
  • time_stamp β€” collection timestamp. important caveat: it’s currently unused, set to 0. so don’t expect it to be doing main character stuff rn. πŸ™ˆ

πŸ¦‹ Description πŸ¦‹

The wire format must match C++ AggregatedIOMetrics struct in MDS. that’s the rule, bestie β€” this struct and that C++ struct have to line up. no cap, it’s literally the whole point. πŸ‘‘

🌈 SEE ALSO 🌈

  • Kernel file ./fs/ceph/metric.h

mwah πŸ’‹ this cutie came from source/version ./fs/ceph, dated October 2026, and it’s filed under struct ceph...c_entry_wire(9). slay. ✨

πŸ“¦ where this page comes from