STRUCT ADVISOR_CTX(9)
β¨ 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 thepages_to_scanparameter π lowkey the glow-up metric.cpu_timeβ the cpu time consumed by theksmdthread in the previous scan π₯ she's been working hard, ngl.
π SEE ALSO π
- Kernel file
./mm/ksm.cOverview(9) struct ksm_mm_slot(9)struct ksm_scan(9)struct ksm_stable_node(9)struct ksm_rmap_item(9)replace_page(9)ksm_do_scan(9)ksm_vma_flags(9)ksm_enable_merge_any(9)ksm_disable_merge_any(9)
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
- 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