Re: [vserver] memory

About this list Date view Thread view Subject view Author view Attachment view

From: edward_at_paradigm4.com.au
Date: Fri Feb 08 2002 - 06:01:39 EST


On Friday, 8 February 2002 at 10:20, Jonas Björklund wrote:

> I have a question, is it possbile to limit the memory for each vserver?

Not directly atm ( work in progress )
but you can limit the number of processes in each vserver ( NPROC parameter )
and you can limit the memory that a single vserver process can have

e.g.

# limit RSS, DSS of a single process to 8MB and VM size of a process to 16MB
ulimit -m 8192 -d 8192 -v 16384
# you can also limit the stack size
ulimit -s 8192
# and the max. amount of "locked" memory ( not allowed to be swapped out )
ulimit -l 8192
# start your vserver
vserver start ...

adjust the values as you see fit.

Ed


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.4 : Mon Aug 19 2002 - 12:01:00 EDT