dump_tasks(9)
π dump_tasks
okay so welcome to the Kernel API Manual, bestie β this is the page for dump_tasks(9), and it's lowkey iconic. π«Ά
πΈ NAME πΈ
dump_tasks β dump current memory state of all system tasks. Periodt. π
π¦ SYNOPSIS π¦
void dump_tasks (struct oom_control *oc );
It's void, bestie β no return value to catch. β¨
π ARGUMENTS π
ocβ pointer tostruct oom_control. That's the one and only arg, and yes, it's a pointer. π
β¨ DESCRIPTION β¨
Okay so dump_tasks dumps the current memory state of all eligible tasks. Like, it's giving full memory-state recap energy. π
The vibe check has rules, though: tasks not in the same memcg, not in the same cpuset, or bound to a disjoint set of mempolicy nodes are not shown. No cap. π«Ά
The state info it includes is: the task's pid, uid, tgid, vm size, rss, pgtables_bytes, swapents, oom_score_adj value, and name. Literally all of those deets. π
π SEE ALSO π
Kernel file ./mm/oom_kill.c β and the whole related lineup:
oom_cpuset_eligible(9)oom_badness(9)mark_oom_victim(9)exit_oom_victim(9)oom_killer_enable(9)oom_killer_disable(9)out_of_memory(9)
xoxo, sourced from ./mm, dated October 2026, and it's dump_tasks(9) β mwah πβ¨
π¦ 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