Re: [Users] usage of swap on host server

2008-03-13 Thread Benoit Branciard

Markus Hardiyanto a écrit :

the problem is i'm starting to get error: fork: cannot allocate memory, and 
when it happens apache will show 500 internal server error and wont fix if i'm 
not stopping and starting it manually. any way to prevent this? I want the RAM 
allocation for the VE remains the same.
 


Just to be sure, don't you have some resource limits hit for your VZ 
(have a look to /proc/user_beancounters)? If so, raising the faulty 
limit should help.


--
Ce message a ete verifie par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a ete trouve.

___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


[Users] usage of swap on host server

2008-03-12 Thread Markus Hardiyanto
does openvz can use the swap partition on the host server for the VE inside it? 
because i have 2GB RAM and 2GB swap on the host server, then setup 2 VE with 
1GB guaranteed RAM and 1.5GB burstable RAM for each VE.

it seems that if the 2 VE burst the RAM usage more than 2GB in total, the host 
didn't use its swap partition to accommodate the burst need as I check the swap 
partition is always show 0

is it true that i can't use the host swap as RAM for VE? in other word 2GB RAM 
+ 2GB swap != 4GB memory can be allocated for VEs?
 
Best Regards,
Markus



Send instant messages to your online friends http://uk.messenger.yahoo.com ___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] usage of swap on host server

2008-03-12 Thread MailingListe

Zitat von Markus Hardiyanto [EMAIL PROTECTED]:

does openvz can use the swap partition on the host server for the VE  
 inside it? because i have 2GB RAM and 2GB swap on the host server,   
then setup 2 VE with 1GB guaranteed RAM and 1.5GB burstable RAM for   
each VE.


it seems that if the 2 VE burst the RAM usage more than 2GB in   
total, the host didn't use its swap partition to accommodate the   
burst need as I check the swap partition is always show 0


is it true that i can't use the host swap as RAM for VE? in other   
word 2GB RAM + 2GB swap != 4GB memory can be allocated for VEs?


Best Regards,
Markus


The VE can use the memory supplied by the hardware node. It does not  
matter if the HW node uses RAM or SWAP beside performance. If the HW  
node does not use SWAP you simply have not *used* but maybe only  
reserved more then 2GB in sum (HW-node + VE). You can check  
/proc/meminfo on the HW-node to see how much of your RAM is used.


Regards

Andreas




--
All your trash belong to us ;-)  www.spamschlucker.org
To: [EMAIL PROTECTED]



___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] usage of swap on host server

2008-03-12 Thread Kir Kolyshkin

Markus Hardiyanto wrote:
does openvz can use the swap partition on the host server for the VE 
inside it? because i have 2GB RAM and 2GB swap on the host server, 
then setup 2 VE with 1GB guaranteed RAM and 1.5GB burstable RAM for 
each VE.


it seems that if the 2 VE burst the RAM usage more than 2GB in total, 
the host didn't use its swap partition to accommodate the burst need 
as I check the swap partition is always show 0


is it true that i can't use the host swap as RAM for VE? in other word 
2GB RAM + 2GB swap != 4GB memory can be allocated for VEs?

Host system swap is definitely used then needed.

PS in OpenVZ we do not understand terms such as burstable RAM. Where 
have you got it from?

___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] usage of swap on host server

2008-03-12 Thread Danny Terweij

From: Kir Kolyshkin [EMAIL PROTECTED]
PS in OpenVZ we do not understand terms such as burstable RAM. Where 
have you got it from?


As far as i know OpenVZ have garanteed and burstable RAM. (Xen does not have 
burstable RAM).

And we use it fine.
It also should use the HN's SWAP as additional memory for the VE's

Danny.


___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] usage of swap on host server

2008-03-12 Thread Markus Hardiyanto
the problem is i'm starting to get error: fork: cannot allocate memory, and 
when it happens apache will show 500 internal server error and wont fix if i'm 
not stopping and starting it manually. any way to prevent this? I want the RAM 
allocation for the VE remains the same.
 
Best Regards,
Markus

- Original Message 
From: Danny Terweij [EMAIL PROTECTED]
To: users@openvz.org
Sent: Wednesday, March 12, 2008 23:16:24
Subject: Re: [Users] usage of swap on host server

It  also  should  use  the  HN's  SWAP  as  additional  memory  for  the  VE's





Send instant messages to your online friends http://uk.messenger.yahoo.com 

___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] usage of swap on host server

2008-03-12 Thread Markus Hardiyanto
Hello Jerry,

thanks for your suggestion, but other process also having the same problem, 
such as firewall and email server. 
 
Best Regards,
Markus

- Original Message 
From: Jerry Del Rio [EMAIL PROTECTED]
To: users@openvz.org; Markus Hardiyanto [EMAIL PROTECTED]
Sent: Thursday, March 13, 2008 10:16:26
Subject: Re: [Users] usage of swap on host server



Markus,  if  you  plan  to  have  just  a  few  users  you  may  want  to
reduce  the  number  of  processes  apache  will  fork  by  deault.
Take  a  look  at  the  StartServers  parameter  in
the  IfModule  prefork.c  section  of  the  httpd.conf  file.

Good  luck

-Jerry





Quoting  Markus  Hardiyanto  [EMAIL PROTECTED]:

  the  problem  is  i'm  starting  to  get  error:  fork:  cannot  allocate
  memory,  and  when  it  happens  apache  will  show  500  internal  server   
  
  error  and  wont  fix  if  i'm  not  stopping  and  starting  it  manually.  
 any  
   way  to  prevent  this?  I  want  the  RAM  allocation  for  the  VE  
 remains
  the  same.

  Best  Regards,
  Markus

  -  Original  Message  
  From:  Danny  Terweij  [EMAIL PROTECTED]
  To:  users@openvz.org
  Sent:  Wednesday,  March  12,  2008  23:16:24
  Subject:  Re:  [Users]  usage  of  swap  on  host  server

  It   also   should   use   the   HN's   SWAP   as   additional   memory   
 for
   the   VE's





  Send  instant  messages  to  your  online  friends  
 http://uk.messenger.yahoo.com

  ___
  Users  mailing  list
  Users@openvz.org
  https://openvz.org/mailman/listinfo/users

  --
  This  message  has  been  scanned  for  viruses  and
  dangerous  content  by  MailScanner,  and  is
  believed  to  be  clean.







-- 
This  message  has  been  scanned  for  viruses  and
dangerous  content  by  MailScanner,  and  is
believed  to  be  clean.






Send instant messages to your online friends http://uk.messenger.yahoo.com 

___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users