Adjust CPU usage cap/priority of jails?

paradoxiom

Patron
Joined
Jun 16, 2015
Messages
239

^ Basically this problem. When qbitorrent is unzipping things, plex stops streaming for a bit, starts, stops, sometimes stops completely until I restart what I'm watching. I can see "priority - 99" in the jail settings, is that something to do with it?
Edit:
priorityintegerThe numeric start priority for the jail at boot time. Smaller values mean a higher priority. At system shutdown, the priority is reversed. Example: 99
nope

thanks in advance.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Priority defines the boot order. What you are looking for are resource limits.

You can limit a jail to e.g. 2 CPU cores with iocage set "pcpu=deny=200" <jailname>, which means any usage above 200% of one core (i.e. 2 cores) will be denied. Similar for memory: iocage set "memoryuse=deny=4G" <jailname>.

HTH,
Patrick
 
Last edited:
Top