Page MenuHomeFreeBSD

rc.subr: Remove misguided cpuset usage
ClosedPublic

Authored by markj on Nov 13 2025, 9:36 PM.
Tags
None
Referenced Files
F175929866: D53746.id166389.diff
Wed, Oct 14, 2:27 PM
Unknown Object (File)
Wed, Sep 30, 12:36 AM
Unknown Object (File)
Wed, Sep 16, 12:40 PM
Unknown Object (File)
Sep 10 2026, 9:47 PM
Unknown Object (File)
Sep 8 2026, 5:55 PM
Unknown Object (File)
Sep 5 2026, 12:08 PM
Unknown Object (File)
Sep 4 2026, 9:54 AM
Unknown Object (File)
Sep 4 2026, 8:12 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 68620
Build 65503: arc lint + arc unit