ENUM RDTGRP_MODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ enum rdtgrp_mode(9) πŸ¦‹

okay bestie, so this is from the Kernel API Manual and honestly it's giving lowkey iconic resource-group energy πŸ’… we're talking about an enum β€” yes, a whole enum β€” that describes the mode of an RDT resource group. Don't worry, I gotchu, we're gonna walk through it together ✨


✨ NAME ✨

enum rdtgrp_mode β€” literally just the Mode of a RDT resource group πŸŽ€


🌸 SYNOPSIS 🌸

enum rdtgrp_mode {
    RDT_MODE_SHAREABLE ,
    RDT_MODE_EXCLUSIVE ,
    RDT_MODE_PSEUDO_LOCKSETUP ,
    RDT_MODE_PSEUDO_LOCKED ,
    RDT_NUM_MODES

};

πŸ‘‘ CONSTANTS πŸ‘‘

πŸ’– RDT_MODE_SHAREABLE

This resource group is in its sharing era β€” it allows sharing of its allocations 🫢

πŸ”₯ RDT_MODE_EXCLUSIVE

The opposite vibe, fr fr β€” no sharing of this resource group's allocations allowed. Not even a little. πŸ™ˆ

πŸŽ€ RDT_MODE_PSEUDO_LOCKSETUP

This resource group is gonna be used for Pseudo-Locking ✨ (it's preparing, it's in its setup arc)

πŸ’œ RDT_MODE_PSEUDO_LOCKED

No sharing of this resource group's allocations allowed AND the allocations are Cache Pseudo-Locked. Double whammy, no cap 😭

⭐ RDT_NUM_MODES

The total number of modes β€” just the headcount, the roster count, the "how many of us are there" number 🧚


πŸ’« DESCRIPTION πŸ’«

So the mode of a resource group is what lets you control the allowed overlap between allocations associated with different resource groups (aka classes of service). You, the user, can modify the mode of a resource group by writing to the "mode" resctrl file associated with the resource group. That's the whole move πŸ’…

The "shareable", "exclusive", and "pseudo-locksetup" modes are set by writing the appropriate text to the "mode" file. Periodt.

And a resource group enters "pseudo-locked" mode after the schemata is written while the resource group is in "pseudo-locksetup" mode. It's giving glow-up pipeline, honestly 🌈


πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./fs/resctrl/internal.h
  • cpumask_any_housekeeping(9)
  • struct mon_evt(9)
  • struct mon_data(9)
  • struct rmid_read(9)
  • struct mongroup(9)
  • struct rdtgroup(9)
  • struct rftype(9)
  • struct mbm_state(9)

and that's the whole page bestie 🫢 this gem comes to you from ./fs/resctrl, dated October 2026, under the title enum rdtgrp_mode(9) β€” go forth and mode responsibly πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from