Page MenuHomeFreeBSD

rc.subr: Remove misguided cpuset usage
ClosedPublic

Authored by markj on Nov 13 2025, 9:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 19, 5:33 AM
Unknown Object (File)
Fri, Jun 12, 5:03 AM
Unknown Object (File)
Sat, Jun 6, 5:34 PM
Unknown Object (File)
May 23 2026, 3:19 AM
Unknown Object (File)
May 23 2026, 1:19 AM
Unknown Object (File)
May 21 2026, 2:05 PM
Unknown Object (File)
May 2 2026, 10:56 PM
Unknown Object (File)
Apr 30 2026, 2:29 PM
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