resctrl_find...anest_closid(9)
π resctrl_find_cleanest_closid(9) π
okay bestie, welcome to the Kernel API Manual (section 9, we're fancy here) β this is the whole page about resctrl_find_cleanest_closid, and it's honestly kinda iconic β¨
πΈ NAME πΈ
resctrl_find_cleanest_closid β find a CLOSID where all the associated RMID are clean, or the CLOSID that has the most clean RMID π
π SYNOPSIS π
int resctrl_find_cleanest_closid (void );
π¦ ARGUMENTS π¦
voidβ no arguments, literally none, it takes nothing, periodt π«Ά
β¨ DESCRIPTION β¨
so here's the tea π β MPAM's equivalent of RMID is per-CLOSID, which means a freshly allocated CLOSID might not be able to allocate clean RMID. not me getting stressed about it π To avoid that whole situation, the allocator will choose the CLOSID with the most clean RMID. main character allocation energy, no cap π
When the CLOSID and RMID are independent numbers, the first free CLOSID will be returned. slay π
π₯ RETURN π₯
- Free CLOSID on success π
< 0on failure π
π SEE ALSO π
- Kernel file
./fs/resctrl/monitor.cstruct rmid_entry(9),cqm_setup_limbo_handler(9),mbm_setup_overflow_handler(9),struct mbm_transaction(9),resctrl_l3_mon_resource_init(9)β go read those too, iykyk π
and that's the whole vibe, bestie π this lil page lives in ./fs/resctrl, dated October 2026, and it's literally called resctrl_find...anest_closid(9) in the header/footer because the name got cutely truncated β iconic behavior fr fr πβ¨
π¦ 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