[Vserver] Talking about limits...

2005-10-18 Thread Michel Belleau (malaiwah.com)

Hi.

I tried limiting a vserver memory this week-end but had no luck doing it..

I tried setting the AS and RSS files in the configuration directory, but 
it doesn't seem to work the way I wanted. It kills processes (like 
apache in my tests) which need more memory than what I allowed in the 
limits.


What I would like to do is limit the usage of RAM the vserver has. It 
seems that AS and RSS limits are the total ressources of a vserver.


I want to give a vserver 128 megabytes of RAM and 1 gig swap space. I 
don't want the OOM killer to restrict applications to ask for more than 
128 megs of RAM.


I know I can do it, since how does VPS using vservers work then?

--
Michel Belleau
SERVICES INFORMATIQUES MALAIWAH.COM
(418) 261-6412 -- http://www.malaiwah.com

begin:vcard
fn:Michel Belleau
n:Belleau;Michel
org:MALAIWAH.COM;Services Informatiques
adr;quoted-printable:;;6374, avenue Royale;L'Ange-Gardien;Qu=C3=A9bec;G0A 2K0;Canada
email;internet:[EMAIL PROTECTED]
tel;work:(418) 261-6412
tel;cell:(418) 261-6412
x-mozilla-html:TRUE
url:http://www.malaiwah.com/
version:2.1
end:vcard

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Talking about limits...

2005-10-21 Thread Sam Vilain
On Tue, 2005-10-18 at 15:46 -0400, Michel Belleau (malaiwah.com) wrote:
> I tried limiting a vserver memory this week-end but had no luck doing it..
> 
> I tried setting the AS and RSS files in the configuration directory, but 
> it doesn't seem to work the way I wanted. It kills processes (like 
> apache in my tests) which need more memory than what I allowed in the 
> limits.
> 
> What I would like to do is limit the usage of RAM the vserver has. It 
> seems that AS and RSS limits are the total ressources of a vserver.
> 
> I want to give a vserver 128 megabytes of RAM and 1 gig swap space. I 
> don't want the OOM killer to restrict applications to ask for more than 
> 128 megs of RAM.
> 
> I know I can do it, since how does VPS using vservers work then?

Did you try putting "virt_mem" in /etc/vservers/XXX/flags ?

Sam.

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Talking about limits...

2005-10-21 Thread Michel Belleau (malaiwah.com)




Hi Sam.

I didn't knew about this option before, I'll have a look at the wiki
right now!

Thanks a lot,
Michel Belleau
SERVICES INFORMATIQUES MALAIWAH.COM
(418) 261-6412 -- http://www.malaiwah.com


Sam Vilain a écrit :

  On Tue, 2005-10-18 at 15:46 -0400, Michel Belleau (malaiwah.com) wrote:
  
  
I tried limiting a vserver memory this week-end but had no luck doing it..

I tried setting the AS and RSS files in the configuration directory, but 
it doesn't seem to work the way I wanted. It kills processes (like 
apache in my tests) which need more memory than what I allowed in the 
limits.

What I would like to do is limit the usage of RAM the vserver has. It 
seems that AS and RSS limits are the total ressources of a vserver.

I want to give a vserver 128 megabytes of RAM and 1 gig swap space. I 
don't want the OOM killer to restrict applications to ask for more than 
128 megs of RAM.

I know I can do it, since how does VPS using vservers work then?

  
  
Did you try putting "virt_mem" in /etc/vservers/XXX/flags ?

Sam.

  



begin:vcard
fn:Michel Belleau
n:Belleau;Michel
org:MALAIWAH.COM;Services Informatiques
adr;quoted-printable:;;6374, avenue Royale;L'Ange-Gardien;Qu=C3=A9bec;G0A 2K0;Canada
email;internet:[EMAIL PROTECTED]
tel;work:(418) 261-6412
tel;cell:(418) 261-6412
x-mozilla-html:TRUE
url:http://www.malaiwah.com/
version:2.1
end:vcard

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Talking about limits...

2005-10-21 Thread Michel Belleau (malaiwah.com)




Hi again Sam.

I tried searching for the "virt_mem" flag and can't find anything...
Where is the best place to search for that flag ?

Thanks in advance,
Michel Belleau
SERVICES INFORMATIQUES MALAIWAH.COM
(418) 261-6412 -- http://www.malaiwah.com


Michel Belleau (malaiwah.com) a écrit :

  
Hi Sam.
  
I didn't knew about this option before, I'll have a look at the wiki
right now!
  
Thanks a lot,
  Michel Belleau
SERVICES INFORMATIQUES MALAIWAH.COM
(418) 261-6412 -- http://www.malaiwah.com
  
  
Sam Vilain a écrit :
  
On Tue, 2005-10-18 at 15:46 -0400, Michel Belleau (malaiwah.com) wrote:
  

  I tried limiting a vserver memory this week-end but had no luck doing it..

I tried setting the AS and RSS files in the configuration directory, but 
it doesn't seem to work the way I wanted. It kills processes (like 
apache in my tests) which need more memory than what I allowed in the 
limits.

What I would like to do is limit the usage of RAM the vserver has. It 
seems that AS and RSS limits are the total ressources of a vserver.

I want to give a vserver 128 megabytes of RAM and 1 gig swap space. I 
don't want the OOM killer to restrict applications to ask for more than 
128 megs of RAM.

I know I can do it, since how does VPS using vservers work then?



Did you try putting "virt_mem" in /etc/vservers/XXX/flags ?

Sam.

  
  
  ___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
  



begin:vcard
fn:Michel Belleau
n:Belleau;Michel
org:MALAIWAH.COM;Services Informatiques
adr;quoted-printable:;;6374, avenue Royale;L'Ange-Gardien;Qu=C3=A9bec;G0A 2K0;Canada
email;internet:[EMAIL PROTECTED]
tel;work:(418) 261-6412
tel;cell:(418) 261-6412
x-mozilla-html:TRUE
url:http://www.malaiwah.com/
version:2.1
end:vcard

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


RE: [Vserver] Talking about limits...

2005-10-21 Thread smagnuson



Have a look at:
http://linux-vserver.org/Caps+and+Flags
http://www.nongnu.org/util-vserver/doc/conf/configuration.html
 
 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Michel 
  Belleau (malaiwah.com)Sent: Friday, October 21, 2005 10:26 
  AMTo: vserver@list.linux-vserver.orgSubject: Re: 
  [Vserver] Talking about limits...Hi again Sam.I 
  tried searching for the "virt_mem" flag and can't find anything... Where is 
  the best place to search for that flag ?Thanks in advance,Michel Belleau
SERVICES INFORMATIQUES MALAIWAH.COM
(418) 261-6412 -- http://www.malaiwah.comMichel 
  Belleau (malaiwah.com) a écrit : 
  Hi 
Sam.I didn't knew about this option before, I'll have a look at the 
wiki right now!Thanks a lot,Michel Belleau
SERVICES INFORMATIQUES MALAIWAH.COM
(418) 261-6412 -- http://www.malaiwah.comSam 
Vilain a écrit : 
On Tue, 2005-10-18 at 15:46 -0400, Michel Belleau (malaiwah.com) wrote:
  
  I tried limiting a vserver memory this week-end but had no luck doing it..

I tried setting the AS and RSS files in the configuration directory, but 
it doesn't seem to work the way I wanted. It kills processes (like 
apache in my tests) which need more memory than what I allowed in the 
limits.

What I would like to do is limit the usage of RAM the vserver has. It 
seems that AS and RSS limits are the total ressources of a vserver.

I want to give a vserver 128 megabytes of RAM and 1 gig swap space. I 
don't want the OOM killer to restrict applications to ask for more than 
128 megs of RAM.

I know I can do it, since how does VPS using vservers work then?

Did you try putting "virt_mem" in /etc/vservers/XXX/flags ?

Sam.

  ___
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


Re: [Vserver] Talking about limits...

2005-10-21 Thread Herbert Poetzl
On Fri, Oct 21, 2005 at 12:25:35PM -0400, Michel Belleau (malaiwah.com) wrote:
> Hi again Sam.
> 
> I tried searching for the "virt_mem" flag and can't find anything...
> Where is the best place to search for that flag ?

http://linux-vserver.org/Caps+and+Flags
http://www.nongnu.org/util-vserver/doc/conf/configuration.html
(see caps and flags)

best,
Herbert

> Thanks in advance,
> 
> Michel Belleau
> SERVICES INFORMATIQUES MALAIWAH.COM
> (418) 261-6412 -- http://www.malaiwah.com
> 
> Michel Belleau (malaiwah.com) a écrit :
> 
> > Hi Sam.
> >
> > I didn't knew about this option before, I'll have a look at the wiki
> > right now!
> >
> > Thanks a lot,
> >
> >Michel Belleau
> >SERVICES INFORMATIQUES MALAIWAH.COM
> >(418) 261-6412 -- http://www.malaiwah.com
> >
> >
> >
> > Sam Vilain a écrit :
> >
> >>On Tue, 2005-10-18 at 15:46 -0400, Michel Belleau (malaiwah.com) wrote:
> >>  
> >>
> >>>I tried limiting a vserver memory this week-end but had no luck doing it..
> >>>
> >>>I tried setting the AS and RSS files in the configuration directory, but 
> >>>it doesn't seem to work the way I wanted. It kills processes (like 
> >>>apache in my tests) which need more memory than what I allowed in the 
> >>>limits.
> >>>
> >>>What I would like to do is limit the usage of RAM the vserver has. It 
> >>>seems that AS and RSS limits are the total ressources of a vserver.
> >>>
> >>>I want to give a vserver 128 megabytes of RAM and 1 gig swap space. I 
> >>>don't want the OOM killer to restrict applications to ask for more than 
> >>>128 megs of RAM.
> >>>
> >>>I know I can do it, since how does VPS using vservers work then?
> >>>
> >>>
> >>
> >>Did you try putting "virt_mem" in /etc/vservers/XXX/flags ?
> >>
> >>Sam.
> >>
> >>  
> >>
> >___
> >Vserver mailing list
> >Vserver@list.linux-vserver.org
> >http://list.linux-vserver.org/mailman/listinfo/vserver
> >  
> >

> begin:vcard
> fn:Michel Belleau
> n:Belleau;Michel
> org:MALAIWAH.COM;Services Informatiques
> adr;quoted-printable:;;6374, avenue Royale;L'Ange-Gardien;Qu=C3=A9bec;G0A 
> 2K0;Canada
> email;internet:[EMAIL PROTECTED]
> tel;work:(418) 261-6412
> tel;cell:(418) 261-6412
> x-mozilla-html:TRUE
> url:http://www.malaiwah.com/
> version:2.1
> end:vcard
> 

> ___
> 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