add more swap to jail within a jail

Nicolas de Bari Embriz Garcia Rojas nbari at inbox.im
Tue Mar 26 11:55:10 UTC 2013


Hi, how can I add more swap space within a jail ?

I have a jail  with limited resources via rctl with somethiing like:

jail:myjail:maxproc:deny=50
jail:myjail:memoryuse:deny=512M
jail:myjail:swapuse:deny=512M

But I want to know it it is  possible to add jail disk space to
increment the swap ?

I am  trying to compile gearmand/boots-libs but I can't since eats to
much memory.

An initial solution is to add the swap on the host, but is there a way
to do it within the jail so that the (root user/admin) doesn't have to
bother the host admin.

any ideas?

regards.

 


More information about the freebsd-jail mailing list