I have enabled accounting and have set a memory limit to a jail via,
This to prevent too much swapping and just kill the deadly jail processes.
But how do i query the accounting database to know the total current memory usage of that specifc jail(processes) ?
Otherwise if i can list all processes of that jail and use awk to sum is that possible from the host ?
Code:
/usr/bin/rctl -a jail:pj:memoryuse:deny=13958643712
But how do i query the accounting database to know the total current memory usage of that specifc jail(processes) ?
Otherwise if i can list all processes of that jail and use awk to sum is that possible from the host ?