STRUCT MBM_STATE(9)
π NAME π
struct mbm_state β literally the status for each MBM counter in each domain, bestie π«Ά
Okay so quick vibe check: this manual page lives in the Kernel API Manual, and it's all about one lil struct that keeps track of how each memory-bandwidth-monitoring counter is doing in each domain. That's the whole assignment. Iconic, honestly β¨
πΈ SYNOPSIS πΈ
struct mbm_state {
u64 prev_bw_bytes;
u32 prev_bw;
};
Yep, that's the entire struct. Two whole members. She's lowkey minimalist and I respect it π
π§© Members π§©
prev_bw_bytesβ the previous bytes value that got read, which is what the bandwidth calculation uses. Basically the "before" picture so we can figure out the "after" πprev_bwβ the most recent bandwidth in MBps. Fresh, current, main-character number π
π¦ SEE ALSO π¦
Go snoop the Kernel file ./fs/resctrl/internal.h, plus all these besties:
cpumask_any_housekeeping(9)struct mon_evt(9)struct mon_data(9)struct rmid_read(9)enum rdtgrp_mode(9)struct mongroup(9)struct rdtgroup(9)struct rftype(9)
All the resctrl lore is right there, iykyk π
ngl this page is short but she ate. Two fields, no cap, no notes π
That's a wrap, bestie! This one came from ./fs/resctrl, dated October 2026 β so like, future energy πβ Thanks for reading, mwah π
π¦ 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