resctrl_l3_m...esource_init(9)
π resctrl_l3_mon_resource_init β bestie's guide to boot-time monitor setup β¨
okay so real talk, this one's from the Kernel API Manual (yes, the manpage name got truncated to resctrl_l3_m...esource_init(9) and honestly? it's giving "username cut off at 16 characters" energy π but we move).
πΈ NAME πΈ
resctrl_l3_mon_resource_init β literally the function that initialises the global monitoring structures. that's it, that's the vibe check π
π SYNOPSIS π
int resctrl_l3_mon_resource_init (void );
π¦ ARGUMENTS π¦
voidβ no arguments. nothing. zero. not a single crumb of input needed, she's self-sufficient π
β DESCRIPTION β
okay so picture this: it's boot time, everything's coming online, and someone has to set up the global monitor resources that don't belong to any specific domain. that someone is her. π«Ά
specifically she allocates and initialises those global monitor resources β i.e. the closid_num_dirty_rmid[] that's used to find the CLOSID with the cleanest set of RMIDs. like a little β¨cleanliness rankingβ¨ for your control groups.
she's called exactly once during boot, after the struct rdt_resource's have been configured but before the filesystem is mounted. noted. main character energy but with a very specific schedule. π€
β οΈ also important: Resctrl's cpuhp callbacks may be called before this point to bring a domain online. so like... she's not necessarily first to the party, she's just the one who brings the snacks π₯
π RETURN π
0β success, slay, she ate π β¨-ENOMEMβ no memory. not enough RAM for her. tragic. π
π SEE ALSO π
- Kernel file
./fs/resctrl/monitor.c struct rmid_entry(9)resctrl_find_cleanest_closid(9)cqm_setup_limbo_handler(9)mbm_setup_overflow_handler(9)struct mbm_transaction(9)
the whole squad, fr fr π§π
mwah π that's the page. sourced from ./fs/resctrl, dated October 2026, function resctrl_l3_mon_resource_init(9) β go forth and initialise your global monitor resources, bestie, iykyk πΈβ
π¦ 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