BSDStore
management and repository for FreeBSD jails

jails limit control


Attention! I apologize, but it is automatic machine translation of the text. You can improve it if will send to me more correct version of the text or fix html pages via GITHUB repository.

Commands:

% cbsd jrctl
% cbsd jrctl-tui
Description:

To view the statistics, set and unset limits on the jail, use the command cbsd jrctl.
This command with the keys:

% cbsd jrctl mode=apply  ...

% cbsd jrctl mode=unset  ...
automatically called for the install or removal of limits when working jstart or jstop respectively. By command

% cbsd jrctl mode=show
you can see current statistics on the jail resources consumed, which can be used to generate reports and graphs for loading jail, as well as the cbsd daemon used to generate recommendations on the need to add new resources and for overload warnings. By jrctl you can set the following limits jail: a) All you can do a framework FreeBSD rctl(8):

cputime            CPU time, in seconds
datasize           data size, in bytes
stacksize          stack size, in bytes
coredumpsize       core dump size, in bytes
memoryuse          resident set size, in bytes
memorylocked       locked memory, in bytes
maxproc            number of processes
openfiles          file descriptor table size
vmemoryuse         address space limit, in bytes
pseudoterminals    number of PTYs
swapuse            swap usage, in bytes
nthr               number of threads
msgqqueued         number of queued SysV messages
msgqsize           SysV message queue size, in bytes
nmsgq              number of SysV message queues
nsem               number of SysV semaphores
nsemop             number of SysV semaphores modified in a single semop(2) call
nshm               number of SysV shared memory segments
shmsize            SysV shared memory size, in bytes
wallclock          wallclock time, in seconds

b) Set the priority level of one over the other jail renice(8), for example, you may want to give for jail with distcc lowest priority, while the jail with HTTP server - the middle priority, and the jail with the database - is high priority.

c) In the case of file system ZFS, set a quota on the use of the file system.
// WIP

Example:


%