[ATrpms-users] dl.atrpms.net down?
Axel Thimm
Axel.Thimm at ATrpms.net
Fri May 2 00:40:22 CEST 2008
On Thu, May 01, 2008 at 11:26:54PM +0100, John Robinson wrote:
> On 01/05/2008 22:57, Axel Thimm wrote:
> > On Thu, May 01, 2008 at 10:46:34PM +0100, John Robinson wrote:
> >> Apache isn't really all that much of a memory hog.
> [...]
> > top says ~500m VIRT
>
> Eh? 500m each? WT* are you doing with your Apache config?
>
> > and ~60m RES, I take it that each process eats
> > about 60m.
>
> Nope. Have a look at SHR, you can subtract all that too. Even then it's
> probably over; try some experiments with ps and adding up what it says:
>
> [john at hole ~]$ ps -e --no-headers -o vsz|(j=0; while read i ; do j=`expr
> $i + $j` ; done ; echo $j)
> 882096
> [john at hole ~]$ ps -e --no-headers -o rsz|(j=0; while read i ; do j=`expr
> $i + $j` ; done ; echo $j)
> 414288
> [john at hole ~]$ free
> total used free shared buffers cached
> Mem: 524432 518904 5528 0 14684 215960
> -/+ buffers/cache: 288260 236172
> Swap: 524280 560 523720
>
>
> or on another box:
>
> [john at out ~]$ ps -e --no-headers -o vsz|(j=0; while read i ; do j=`expr
> $i + $j` ; done ; echo $j)
> 4060412
> [john at out ~]$ ps -e --no-headers -o rsz|(j=0; while read i ; do j=`expr
> $i + $j` ; done ; echo $j)
> 1001584
> [john at out ~]$ free
> total used free shared buffers cached
> Mem: 970360 959028 11332 0 5020 349696
> -/+ buffers/cache: 604312 366048
> Swap: 983032 472 982560
>
>
> Doesn't make sense to me...
OK, I tried
# ps -e --no-headers -o vsz,cmd|grep httpd| wc -l
111
# ps -e --no-headers -o vsz,cmd|grep httpd|(j=0; while read i c ; do j=`expr $i + $j` ; done ; echo $j)
40752756
# ps -e --no-headers -o rsz,cmd|grep httpd|(j=0; while read i c ; do j=`expr $i + $j` ; done ; echo $j)
3569776
So it's about 32MB/360MB real/virtual just as you said in the beginning.
--
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.atrpms.net/pipermail/atrpms-users/attachments/20080502/dbfc3c6d/attachment.bin
More information about the atrpms-users
mailing list