These last couple of weeks have taught me A LOT about #FreeBSD jails. I've learn...

@lattera@bsd.network

These last couple of weeks have taught me A LOT about #FreeBSD jails. I've learned how to apply resource controls, like maximum number of processes and threads.

I've also learned what happens when those resource constraints are hit: debugging things from within the jail is prohibitively difficult on a sufficiently chatty system (chatty in the way of resource constraint usage).

For example, if the maximum number of threads for the entire jail is 100, and your multi-threaded daemon is receiving more than 100 HTTP requests per minute, it's going to have a hard time.

You can't login to the jail. You can't even destroy the jail (jail -r). You must first remove all resource constraints for the jail, then proceed to either destroy it or login.