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

From: Mustafa <lordverminard_at_gmail.com>
Date: Wed 04 Jan 2006 - 16:54:07 GMT
Message-ID: <dpgujg$er8$1@sea.gmane.org>

Herbert Poetzl wrote:
> On Wed, Jan 04, 2006 at 09:23:13PM +0500, Mustafa wrote:
>> Herbert Poetzl wrote:
>>> On Wed, Jan 04, 2006 at 08:27:03PM +0500, Mustafa wrote:
>>>> i want to prevent cpu and ram intensive task in a vserver from taking up
>>>> all the resources of my computer. is there any way to limit the amount
>>>> of ram usage and cpu usage.
>>> hmm, have a look at http://linux-vserver.org/Scheduler+Parameters
>>>
>>>> i have read this page http://linux-vserver.org/Resource+Limits
>>>> but can not figure out how to use it.
>>> well, you see the 'Examples' section?
>>> (it should give you a good idea how to do it)
>>>
>>> a general overview of all config settings can be
>>> found here: http://www.nongnu.org/util-vserver/doc/conf/configuration.html
>>>
>>> HTH,
>>> Herbert
>>>
>>>> _______________________________________________
>>>> Vserver mailing list
>>>> Vserver@list.linux-vserver.org
>>>> http://list.linux-vserver.org/mailman/listinfo/vserver
>>> _______________________________________________
>>> Vserver mailing list
>>> Vserver@list.linux-vserver.org
>>> http://list.linux-vserver.org/mailman/listinfo/vserver
>>>
>> there is no such file as
>> /etc/vservers/<server name>/schedule
>> or
>> /usr/local/etc/vservers/<server name>/schedule (when i compiled
>> --prefix=/usr/local)
>
> starting from your guest config tree
>
> /path/to/your/guest/config (usually /etc/vservers/<name>)
> the file called schedule and if it doesn't exist, then
> just create it (after stopping your guest)
>
>> any idea what file replaces this one. or do i have to make it. cuz the
>> guide states it is already there.
>
> replace 'should contain' with 'is supposed to contain'
>
> best,
> Herbert
>
>> _______________________________________________
>> Vserver mailing list
>> Vserver@list.linux-vserver.org
>> http://list.linux-vserver.org/mailman/listinfo/vserver
> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
>
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
7
24
500
200
1000
dummy

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

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Wed Jan 4 16:55:28 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 04 Jan 2006 - 16:55:30 GMT by hypermail 2.1.8