set jail cpu-list in jail.conf

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

set jail cpu-list in jail.conf

Steve Wills-5
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.

Thanks,
Steve
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: set jail cpu-list in jail.conf

Miroslav Lachman
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
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: set jail cpu-list in jail.conf

Valeri Galtsev
In reply to this post by Steve Wills-5

On Wed, October 25, 2017 8:58 am, Steve Wills wrote:
> 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.

Thanks Steve! Not long ago I started feeling that that would be great if
some clever person did that - as sysadmin I will definitely need and use
that.

Valeri

>
> Thanks,
> Steve
> _______________________________________________
> [hidden email] mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-jail
> To unsubscribe, send any mail to "[hidden email]"
>


++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "[hidden email]"