Subject: [vserver] About RSS Memory
From: Sergio Daniel Troiano <sergio.troiano@elserver.com>
Date: Mon, 09 Nov 2009 17:51:30 -0200

["multipart/related" not shown] Mon, 09 Nov 2009 17:51:30 -0200

Subject: [vserver] About RSS Memory
From: Sergio Daniel Troiano <sergio.troiano@elserver.com>
Date: Mon, 09 Nov 2009 17:51:30 -0200
Mon, 09 Nov 2009 17:51:30 -0200
Hi, 

I have got linux-vserver running on Slackware, it works fine but i can
not set rss memory, i mean, i have written rss file config and set the
flag "virt_mem"  
but when i run apache server into virtual-machine it sums each shared
memory:
I have searched about this topic through the  web but i have not found
anything.

I use Slackware13 with kernel-2.6.31.5 
Patch: vs2.3.0.36.23-grsec2.1.14-20091109

httpd     8020  0.0  4.5  53432 48204 ?        S    17:36
0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8021  0.0  4.6  53600 48352 ?        S    17:36
0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8022  0.0  4.6  53600 48352 ?        S    17:36
0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8023  0.0  4.6  53600 48352 ?        S    17:36
0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8024  0.0  4.6  53600 48352 ?        S    17:36
0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8025  0.0  4.6  53600 48352 ?        S    17:36
0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8026  0.0  4.6  53600 48352 ?        S    17:36
0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8027  0.0  4.6  53600 48352 ?        S    17:36
0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8028  0.0  4.6  53600 48352 ?        S    17:36
0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8029  0.0  4.6  53600 48352 ?        S    17:36
0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8030  0.0  4.6  53600 48352 ?        S    17:36
0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8031  0.0  4.6  53600 48352 ?        S    17:36
0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8032  0.0  4.6  53600 48352 ?        S    17:36
0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8033  0.0  4.6  53600 48352 ?        S    17:36
0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8034  0.0  4.6  53600 48352 ?        S    17:36
0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8035  0.0  4.6  53600 48352 ?        S    17:36
0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID


tail /usr/local/apache2/logs/error_log
[Mon Nov 09 17:36:21 2009] [error] (12)Cannot allocate memory: fork:
Unable to fork new process

Sergio D. Troiano
Development Team.


Av. de los Incas 3085
(C1426ELA) Capital Federal 


On Mon, 2009-11-09 at 21:18 +0100, Thomas Weber wrote:

> Am Samstag, den 07.11.2009, 18:39 +0100 schrieb Herbert Poetzl:
> > > Though the problem still exists: upstart won't work out of the box with
> > > linux-vserver. With style=plain it really should.
> > 
> > the problem here is that upstart has some 'requirements'
> > and makes some 'assumptions' which no other init did
> > before, but nothing really critical ...
> > 
> > please check here for details (and maybe put the results
> > on a wiki page afterwards?)
> > 
> > http://irc.13thfloor.at/LOG/2009-10/LOG_2009-10-16.txt
> 
> believe it or not, i digged around in the logs back to 2009-10-17....
> 
> This is exactly the info I was looking for - and way more helpfull than
> 'you need to do special magic' ;-)
> thanks.
> 
> I've just added a wiki page for this issue.
> 
>   Tom
> 
> 
> 
> 


Hi,

I have got linux-vserver running on Slackware, it works fine but i can not set rss memory, i mean, i have written rss file config and set the flag "virt_mem" 
but when i run apache server into virtual-machine it sums each shared memory:
I have searched about this topic through the  web but i have not found anything.

I use Slackware13 with kernel-2.6.31.5
Patch: vs2.3.0.36.23-grsec2.1.14-20091109

httpd     8020  0.0  4.5  53432 48204 ?        S    17:36   0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8021  0.0  4.6  53600 48352 ?        S    17:36   0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8022  0.0  4.6  53600 48352 ?        S    17:36   0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8023  0.0  4.6  53600 48352 ?        S    17:36   0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8024  0.0  4.6  53600 48352 ?        S    17:36   0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8025  0.0  4.6  53600 48352 ?        S    17:36   0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8026  0.0  4.6  53600 48352 ?        S    17:36   0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8027  0.0  4.6  53600 48352 ?        S    17:36   0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8028  0.0  4.6  53600 48352 ?        S    17:36   0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8029  0.0  4.6  53600 48352 ?        S    17:36   0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8030  0.0  4.6  53600 48352 ?        S    17:36   0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8031  0.0  4.6  53600 48352 ?        S    17:36   0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8032  0.0  4.6  53600 48352 ?        S    17:36   0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8033  0.0  4.6  53600 48352 ?        S    17:36   0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8034  0.0  4.6  53600 48352 ?        S    17:36   0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID
httpd     8035  0.0  4.6  53600 48352 ?        S    17:36   0:00 /usr/local/apache2/bin/httpd -DFOREGROUND -DPHPFCGID


tail /usr/local/apache2/logs/error_log
[Mon Nov 09 17:36:21 2009] [error] (12)Cannot allocate memory: fork: Unable to fork new process

Sergio D. Troiano
Development Team.


Av. de los Incas 3085
(C1426ELA) Capital Federal 


On Mon, 2009-11-09 at 21:18 +0100, Thomas Weber wrote:
Am Samstag, den 07.11.2009, 18:39 +0100 schrieb Herbert Poetzl:
> > Though the problem still exists: upstart won't work out of the box with
> > linux-vserver. With style=plain it really should.
> 
> the problem here is that upstart has some 'requirements'
> and makes some 'assumptions' which no other init did
> before, but nothing really critical ...
> 
> please check here for details (and maybe put the results
> on a wiki page afterwards?)
> 
> http://irc.13thfloor.at/LOG/2009-10/LOG_2009-10-16.txt

believe it or not, i digged around in the logs back to 2009-10-17....

This is exactly the info I was looking for - and way more helpfull than
'you need to do special magic' ;-)
thanks.

I've just added a wiki page for this issue.

  Tom





["image/gif" not shown]