set jail cpu-list in jail.conf

Miroslav Lachman 000.fbsd at quip.cz
Wed Oct 25 14:21:24 UTC 2017


Steve Wills wrote on 2017/10/25 15:58:
> Hi,
>
> I created a patch which adds support for setting the cpu-list of a jails
> cpuset in jail.conf, here:
>
> https://reviews.freebsd.org/D12789
>
> If anyone finds this useful or has comments, please let me know.

It looks much better than my workaround:

alpha {
         host.hostname = "alpha.example.com";
         ip4.addr      = 10.10.10.2;
         exec.poststart += "cpuset -c -l 1,2,5 -j `jls -j alpha jid`";
}

Thank you!

Missing update of man pages for jail(8).

Miroslav Lachman


More information about the freebsd-jail mailing list