Re: [Vserver] Re: how do i place a limit on cpu usage and ram usage by the vserver.

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Thu 05 Jan 2006 - 16:17:59 GMT
Message-ID: <20060105161759.GA5450@MAIL.13thfloor.at>

On Wed, Jan 04, 2006 at 10:42:04PM +0500, Mustafa wrote:
> Mustafa wrote:
> >
> >
> >>>i created the file. this is the file and there content.
> >>>
> >>>cat /usr/local/etc/vservers/sid2/flags
> >>>sched_hard
> >>>
> >>>cat /usr/local/etc/vservers/sid2/schedule.back
> >>
> >>well, it's called 'schedule' not schedule.back
> >>but the contents looks fine ...
> >i tried it using the name schedule but then backed it up.
> >
> >>
> >>>7
> >>>24
> >>>500
> >>>200
> >>>1000
> >>>dummy
> >>
> >>which kernel version/patches do you use, and
> >>what utils?
> >
> >i use kernel 2.6.14.14.
> >and util version 0.30.209
> >
> >
> >>>are these files in there correct location. also is the content ok. the
> >>>flags file was not present either so i made it. but it still does not
> >>>work
> >>
> >>after guest startup, what does cat /proc/virtual/<xid>/sched
> >>show?
> >>
> >
> >there is no such files.
> >the closest are
>
> sorry it seems i forgot to start the vserver.
> here it is.
> m@ubuntu:~$ sudo cat /proc/virtual/49152/sched
> Password:
> Token: 201
> FillRate: 7
> Interval: 24
> TokensMin: 200
> TokensMax: 1000
> PrioBias: 0
> VaVaVoom: 0
> cpu 0: 32593 1677 63991
>
> also i restarted the computer and now the spu limits atleast works.
> now a hint on how to limit ram usage (the vserver be allowed to use as
> much swap as it wants just a limitewd amount of ram) left. any idea?
> any hint?

memory limits come in different flavours and
types (currently only hard limits are implemented)

virtual memory: VM, VML
physical pages: RSS, ANON

see http://linux-vserver.org/Resource+Limits for
details and names ...

HTH,
Herbert

> >cat /proc/virtual/status
> >cat /proc/virtual/info
> >
> >>best,
> >>Herbert
> >>
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Thu Jan 5 16:18:32 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 05 Jan 2006 - 16:18:44 GMT by hypermail 2.1.8