Hello,
I have a number of jails which I'd like to run with NICE < 0 to ensure they a prioritised under high load.
The host also runs a couple of bhyve VMs, I can configure these with priority="-1" in vm configure.
I can't find any option to do this for jails. I believe th usual way to go about this is for a service is letting rc.subr handle it with the ${name}_nice global.
I've tried setting this inside the jail for the relevant service, but get a setpriority() permission denied.
This makes sense and I guess I need to configure this outside the jail on the host.
Is there an idiomatic way to handle this? I'd imagine it is a common use case.
Thanks in advance.
Best regards,
Martin
I have a number of jails which I'd like to run with NICE < 0 to ensure they a prioritised under high load.
The host also runs a couple of bhyve VMs, I can configure these with priority="-1" in vm configure.
I can't find any option to do this for jails. I believe th usual way to go about this is for a service is letting rc.subr handle it with the ${name}_nice global.
I've tried setting this inside the jail for the relevant service, but get a setpriority() permission denied.
This makes sense and I guess I need to configure this outside the jail on the host.
Is there an idiomatic way to handle this? I'd imagine it is a common use case.
Thanks in advance.
Best regards,
Martin