Hi,
I have searched on this forum and on internet without success so here is my question.
I love jails and his flexibility but for a "hosting" service with clients on jails like vps I would like to limit the max number of cpu cores each jail can utilize on the server. I know about cpuset and I think it's the way to go for now (I did not find the way to do it with rctl). With cpuset It's possible to assign certain specific cores to jails, so the problem can be solved but it have to be done manually. Do you know if exist some daemon or service that "rebalance" the cpu cores of each jail automatically ? This daemon would set the cpu cores for each jail (max limited) in a periodic interval to prevent multiple jails utilize the same cores and try to balance the best usage of whole cpus available on host.
I know that proxmox do something similar with his pvestatd service for lxc containers and modify the assigned cores in cgroups cpusets in a periodic interval.
Thanks.
I have searched on this forum and on internet without success so here is my question.
I love jails and his flexibility but for a "hosting" service with clients on jails like vps I would like to limit the max number of cpu cores each jail can utilize on the server. I know about cpuset and I think it's the way to go for now (I did not find the way to do it with rctl). With cpuset It's possible to assign certain specific cores to jails, so the problem can be solved but it have to be done manually. Do you know if exist some daemon or service that "rebalance" the cpu cores of each jail automatically ? This daemon would set the cpu cores for each jail (max limited) in a periodic interval to prevent multiple jails utilize the same cores and try to balance the best usage of whole cpus available on host.
I know that proxmox do something similar with his pvestatd service for lxc containers and modify the assigned cores in cgroups cpusets in a periodic interval.
Code:
cpuset
-----------------------
jail1: 2 7
jail2: 1 3 4 5
jail3: 0 1 4 6
-----------------------
-----------------------
jail1: 0 1
jail2: 0 4 5 6
jail3: 2 3 6 7
-----------------------
Thanks.