Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Mar 2013 16:21:24 +0100
From:      =?iso-8859-1?Q?Peter_Ankerst=E5l?= <peter@pean.org>
To:        stable@freebsd.org
Subject:   Make use of RACCT and rctl
Message-ID:  <8A4085D7-A3BF-42C8-A0D4-4B3AAE26D288@pean.org>

index | next in thread | raw e-mail

Hi!

Im trying to limit memory usage for jails with the rctl API. But I don't really get it.

I have compiled the kernel with the right options and rctl show me stuff like:
jail:jail22:memoryuse:deny=268435456
jail:jail22:swapuse:deny=268435456
jail:jail20:memoryuse:deny=268435456
jail:jail20:swapuse:deny=268435456
jail:jail16:memoryuse:deny=268435456
jail:jail16:swapuse:deny=268435456

but when I try to allocate memory it doesn't seem to hit the limit. Also when I run 
# rctl -u jail:jail20
cputime=0
datasize=0
stacksize=0
coredumpsize=0
memoryuse=0
memorylocked=0
maxproc=0
openfiles=0
vmemoryuse=0
pseudoterminals=0
swapuse=0
nthr=0
msgqqueued=0
msgqsize=0
nmsgq=0
nsem=0
nsemop=0
nshm=0
shmsize=0
wallclock=0

it seems that no accounting is done. What's missing? Cant find anything in the manuals.

# uname -srm
FreeBSD 9.1-RELEASE-p1 amd64


/Peter.




home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8A4085D7-A3BF-42C8-A0D4-4B3AAE26D288>