STRUCT CEPH_SUBVOLUME_METRIC_ENTRY_WIRE(9)
πΈ 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
- 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