[Users] problems with vzctl init logging patch

2008-03-12 Thread Dietmar Maurer
hi all,

my init logging patch works so far, but unfortunately it breaks
checkpointing:
---
vzctl chkpnt 101
Setting up checkpoint...
suspend...
dump...
Can not dump container: Invalid argument
Error: d_path err=-22
Checkpointing failed
---

Maybe some of the developers can give me a hint whats wrong?

lsof shows (16531 id the logging process)

lt-vzctl  16531   root  cwd   DIR   0,22 4096
1226401 /var/lib/vz/root/101
lt-vzctl  16531   root  rtd   DIR   0,22 4096
1226401 /var/lib/vz/root/101
lt-vzctl  16531   root  txt   REG8,198155
2047179 /home/dietmar/pve/vzctl/vzctl-3.0.22/src/.libs/lt-vzctl
lt-vzctl  16531   root  mem   REG0,0
0 [heap] (stat: No such file or directory)
lt-vzctl  16531   root  mem   REG8,197928
1896840 /lib/ld-2.3.6.so
lt-vzctl  16531   root  mem   REG8,1   488939
2031943
/home/dietmar/pve/vzctl/vzctl-3.0.22/src/lib/.libs/libvzctl-0.0.2.so
lt-vzctl  16531   root  mem   REG8,110392
1896846 /lib/libdl-2.3.6.so
lt-vzctl  16531   root  mem   REG8,110520
1896843 /lib/libutil-2.3.6.so
lt-vzctl  16531   root  mem   REG8,1  1282008
1896845 /lib/libc-2.3.6.so
lt-vzctl  16531   root0u  CHR1,3
1423308 /var/lib/vz/root/101/dev/null
lt-vzctl  16531   root1w  REG   0,22 1941
1232142 /var/lib/vz/root/101/var/log/init.log
lt-vzctl  16531   root2r FIFO   0,22
1232141 /var/lib/vz/root/101/var/log/init.fifo




env.c.diff
Description: env.c.diff
___
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


AW: [Users] problems with vzctl init logging patch

2008-03-12 Thread Dietmar Maurer
Just a guess: its the logging proxess itself, because that process still runs 
on the host - I need to do a exec instead?

- Dietmar 

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Im Auftrag von Dietmar Maurer
 Gesendet: Mittwoch, 12. März 2008 10:37
 An: users@openvz.org
 Betreff: [Users] problems with vzctl init logging patch
 
 hi all,
 
 my init logging patch works so far, but unfortunately it breaks
 checkpointing:
 ---
 vzctl chkpnt 101
 Setting up checkpoint...
 suspend...
 dump...
 Can not dump container: Invalid argument
 Error: d_path err=-22
 Checkpointing failed
 ---
 
 Maybe some of the developers can give me a hint whats wrong?
 
 lsof shows (16531 id the logging process)
 
 lt-vzctl  16531   root  cwd   DIR   0,22 4096
 1226401 /var/lib/vz/root/101
 lt-vzctl  16531   root  rtd   DIR   0,22 4096
 1226401 /var/lib/vz/root/101
 lt-vzctl  16531   root  txt   REG8,198155
 2047179 /home/dietmar/pve/vzctl/vzctl-3.0.22/src/.libs/lt-vzctl
 lt-vzctl  16531   root  mem   REG0,0
 0 [heap] (stat: No such file or directory)
 lt-vzctl  16531   root  mem   REG8,197928
 1896840 /lib/ld-2.3.6.so
 lt-vzctl  16531   root  mem   REG8,1   488939
 2031943
 /home/dietmar/pve/vzctl/vzctl-3.0.22/src/lib/.libs/libvzctl-0.0.2.so
 lt-vzctl  16531   root  mem   REG8,110392
 1896846 /lib/libdl-2.3.6.so
 lt-vzctl  16531   root  mem   REG8,110520
 1896843 /lib/libutil-2.3.6.so
 lt-vzctl  16531   root  mem   REG8,1  1282008
 1896845 /lib/libc-2.3.6.so
 lt-vzctl  16531   root0u  CHR1,3
 1423308 /var/lib/vz/root/101/dev/null
 lt-vzctl  16531   root1w  REG   0,22 1941
 1232142 /var/lib/vz/root/101/var/log/init.log
 lt-vzctl  16531   root2r FIFO   0,22
 1232141 /var/lib/vz/root/101/var/log/init.fifo
 
 
 


___
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: AW: [Users] problems with vzctl init logging patch

2008-03-12 Thread Kir Kolyshkin

This looks good. Can you
(1) make it optional, i.e. retain the old behavior by default and 
provide a way to turn init logging on (command-line switch, or VE config 
parameter)
(2) make init-logger so it would not depend on perl being available 
inside the container; i guess it can be rewritten in shell as /bin/sh 
should be there
(3) add the comment to init-logger saying that this file was copied from 
the host system to this container and so any changes made to it inside a 
container will be lost during the next container start

(4) document it all
(5) add init-logger to the vzctl.spec file

Dietmar Maurer wrote:

Ok, exec solves the problem. Attached is the new patch.
  


___
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: AW: AW: [Users] problems with vzctl init logging patch

2008-03-12 Thread Kir Kolyshkin

Dietmar Maurer wrote:

This looks good. Can you
(1) make it optional, i.e. retain the old behavior by default 
and provide a way to turn init logging on (command-line 
switch, or VE config

parameter)



Ok

  
(2) make init-logger so it would not depend on perl being 
available inside the container; i guess it can be rewritten 
in shell as /bin/sh should be there



Will try. But cant we depend on perl? Perl should be available on most
platforms. I can even add a test if perl is available, and do not start
the logger if there is no perl?
  


Adding a check makes sense. But first -- why do you need perl at all? Is 
there something that can't be done in shell?
  
(3) add the comment to init-logger saying that this file was 
copied from the host system to this container and so any 
changes made to it inside a container will be lost during the 
next container start

(4) document it all
(5) add init-logger to the vzctl.spec file



Ok, will send a new patch when ready.

- Dietmar


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


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


AW: AW: AW: [Users] problems with vzctl init logging patch

2008-03-12 Thread Dietmar Maurer
 Adding a check makes sense. But first -- why do you need perl 
 at all? Is there something that can't be done in shell?

I guess you are right - will rewrite it.

- Dietmar


___
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


[Users] Mainstream progress?

2008-03-12 Thread Carl-Daniel Hailfinger
Hi,

the ongoing merge of OpenVZ-based lightweight virtualization into
mainline Linux seems to be progressing nicely and I have a few questions
about it:
- How usable will net namespaces be in 2.6.25? I'm especially interested
in assigning a real hardware ethernet device to a VE.
- Will there be an OpenVZ patch or against 2.6.25?
- Do you expect net namespace/virtualization work to be completely
merged in 2.6.26?
- Which OpenVZ features will not make it to mainline in the 2.6.26
timeframe?

Some of the questions above probably can't be answered without guessing,
but a good guess is better than no information and I'd appreciate any
status update newer than the OpenVZ blog entry from 2008-01-26.

Thanks,
Carl-Daniel
___
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