STRUCT ADVISOR_CTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct advisor_ctx(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’… this one's all about struct advisor_ctx, which is literally just the metadata for the KSM advisor. lowkey iconic, no cap πŸŽ€


πŸ’– NAME πŸ’–

struct advisor_ctx β€” the metadata for the KSM advisor, periodt ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct advisor_ctx {
    ktime_t start_scan;
    unsigned long scan_time;
    unsigned long change;
    unsigned long long cpu_time;
 };

look at her. she's giving organized. she's giving "I know what all my fields are for." main character struct energy fr fr πŸ‘‘


🌸 MEMBERS 🌸

  • start_scan β€” the start time of the current scan πŸ• like when this scan woke up and chose chaos.
  • scan_time β€” the scan time of the previous scan, bestie. yes, previous. she's nostalgic like that πŸ™ˆ
  • change β€” the change in percent to the pages_to_scan parameter πŸ“ˆ lowkey the glow-up metric.
  • cpu_time β€” the cpu time consumed by the ksmd thread in the previous scan πŸ”₯ she's been working hard, ngl.

🌈 SEE ALSO 🌈

like, go read all of these if you wanna be in the know. iykyk 🫢


aaaand that's the whole vibe check! πŸ’œ this lil page lives in ./mm and it's dated October 2026, so jot that down in your calendar bestie πŸ“…βœ¨ struct advisor_ctx(9) forever, slay πŸŽ€πŸ’–

πŸ“¦ where this page comes from