bash OOM order: the stale +1000/task (0) comments say 900 and 1000
This commit is contained in:
parent
dfe8f9eac0
commit
ca734f8ea0
3 changed files with 5 additions and 5 deletions
|
|
@ -504,7 +504,7 @@ impl State {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Start every subagent run through this binary's entry wrapper, whose
|
/// Start every subagent run through this binary's entry wrapper, whose
|
||||||
/// `main` calls `run_cgroup::exec_entry` first: at `oom_score_adj` +1000
|
/// `main` calls `run_cgroup::exec_entry` first: at `oom_score_adj` +900
|
||||||
/// always, and in its own cgroup under `cgroups` when there are any.
|
/// always, and in its own cgroup under `cgroups` when there are any.
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn entering_runs(mut self, cgroups: Option<RunCgroups>) -> Self {
|
pub fn entering_runs(mut self, cgroups: Option<RunCgroups>) -> Self {
|
||||||
|
|
|
||||||
|
|
@ -561,8 +561,8 @@ in
|
||||||
# A LOWER OOMScoreAdjust means LESS likely to be killed, so this
|
# A LOWER OOMScoreAdjust means LESS likely to be killed, so this
|
||||||
# negative value puts the harness — and the agent's own `claude`,
|
# negative value puts the harness — and the agent's own `claude`,
|
||||||
# which it spawns as a child and which therefore inherits the
|
# which it spawns as a child and which therefore inherits the
|
||||||
# value — last in line under memory pressure, behind each subagent
|
# value — last in line under memory pressure, behind each bash task
|
||||||
# run (+1000) and bash task (0) (see ./mcp.nix). Losing a
|
# (+1000) and subagent run (+900) (see ./mcp.nix). Losing a
|
||||||
# subagent costs one restartable task; losing this costs the
|
# subagent costs one restartable task; losing this costs the
|
||||||
# session that was supervising it. Not `-1000`, which would
|
# session that was supervising it. Not `-1000`, which would
|
||||||
# exempt the harness entirely and leave the kernel with nothing
|
# exempt the harness entirely and leave the kernel with nothing
|
||||||
|
|
|
||||||
|
|
@ -425,8 +425,8 @@ in
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = 3;
|
RestartSec = 3;
|
||||||
# The daemon runs each subagent run in its own `runs/<name>-<n>/`
|
# The daemon runs each subagent run in its own `runs/<name>-<n>/`
|
||||||
# cgroup with `memory.oom.group=1` and `oom_score_adj` +1000, so an
|
# cgroup with `memory.oom.group=1` and `oom_score_adj` +900, so an
|
||||||
# OOM kill takes one whole run, ahead of a bash task (0) and
|
# OOM kill takes one whole run, after a bash task (+1000) and ahead of
|
||||||
# `hive-agent` (-500). No `OOMScoreAdjust=` here: the daemon stays
|
# `hive-agent` (-500). No `OOMScoreAdjust=` here: the daemon stays
|
||||||
# at 0, and a unit value would also be the floor no run could go
|
# at 0, and a unit value would also be the floor no run could go
|
||||||
# below. The subgroup name is `DAEMON_SUBGROUP` in hive-agent-sock's
|
# below. The subgroup name is `DAEMON_SUBGROUP` in hive-agent-sock's
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue