Page MenuHomeFreeBSD

rc.subr: Remove misguided cpuset usage
ClosedPublic

Authored by markj on Nov 13 2025, 9:36 PM.
Tags
None
Referenced Files
F169648189: D53746.id.diff
Wed, Sep 2, 4:17 AM
F169631493: D53746.id166688.diff
Wed, Sep 2, 3:12 AM
F169603893: D53746.id166688.diff
Wed, Sep 2, 1:14 AM
F169571390: D53746.diff
Tue, Sep 1, 11:08 PM
F169544761: D53746.diff
Tue, Sep 1, 9:19 PM
Unknown Object (File)
Mon, Aug 31, 2:48 AM
Unknown Object (File)
Sun, Aug 30, 11:15 PM
Unknown Object (File)
Sun, Aug 30, 11:54 AM
Subscribers

Details

Summary

When running an rc command, if the target rc script defines
<command>_cmd, e.g., start_cmd=..., then the run_rc_command() executes
that instead of $command. In general it's a shell function, and
"cpuset -l <n> <shell function>" doesn't work.

Moreover, it doesn't really make sense to run cpuset for anything other
than start_cmd.

Other optional isolation mechanisms (e.g., <name>_fib,
<name>_chroot) are only used when invoking $command directly as part of
the "start" command. Make <name>_cpuset consistent with everything else
by removing these extraneous cpuset invocations.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable