wq_update_node_max_active(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– wq_update_node_max_active(9) πŸ’–

okay so this is the Kernel API Manual page for wq_update_node_max_active, and it's literally the function that keeps per-node max_actives in check. no cap, bestie, we're getting into it. ✨


✨ NAME ✨

wq_update_node_max_active β€” update per-node max_actives to use. πŸŽ€

🌸 SYNOPSIS 🌸

void wq_update_node_max_active (struct workqueue_struct *wq , int
off_cpu );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • wq β€” the workqueue to update. main character energy, honestly. πŸ‘‘
  • off_cpu β€” the CPU that's going down; it's -1 if a CPU is not going down. 🫢

πŸ’… DESCRIPTION πŸ’…

okay so this function updates wq->node_nr_active[]->max. that's the whole vibe. πŸ’–

🚨 real talk: wq must be unbound. not optional, bestie.

max_active is distributed among nodes according to the proportions of numbers of online cpus. the way it does math? iconic. and the result is always between wq->min_active and max_active. periodt. ✨

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./kernel/workqueue.c is the source spot. the whole linked crew is here, no skips:

mwah πŸ’‹ β€” this page is from ./kernel, dated October 2026, and it's all about wq_update_node_max_active(9). byeee 🫢✨

πŸ“¦ where this page comes from