Make use of RACCT and rctl

看板FB_stable作者時間12年前 (2013/04/27 13:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/4 (看更多)
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. _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
文章代碼(AID): #1HUsCJgT (FB_stable)
文章代碼(AID): #1HUsCJgT (FB_stable)