Date: Fri 08 Feb 2002 - 11:01:39 GMT
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
# 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.