-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jason Parsons writes:
> Howdy.
> 
> Following up on this thread...  My spamd children don't seem to be 
> sharing much memory with their parents:
> 
>    PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU 
> COMMAND
> 14692 alias     17   0 40620  34M  2092 S     8.3  0.7  24:24   1 spamd
> 
>   (this is an example spamd child)
> 
> In reviewing 
> <http://aspn.activestate.com/ASPN/Mail/Message/perl5-porters/2197769>, 
> it seems like others are reporting 60% of spamd children's memory as 
> shared.  I'm getting <10%.  Am I missing something?

yep -- various versions of the Linux kernel do not measure "shared"
memory in the same way.

    vanilla 2.4.18/19: reports "shared" correctly
    2.4.x with Red Hat patches: incorrect
    2.6.x: incorrect

You can't trust the results from the kernels marked "incorrect" above.
the only memory they count as shared is the size of shared library
pages loaded.   That's definitely the case in your top output above.

- --j.

> I'm running spamd with:
> 
> /usr/bin/perl -T -w /usr/bin/spamd -u alias -s mail -i 127.0.0.1 -A 
> 127.0.0.1 -x -m 50 --max-conn-per-child=5000 --syslog=stderr -H 
> /etc/mail/spamassassin/home
> 
> On:
> 
> Linux 2.4.21-20.ELsmp #1 SMP Wed Aug 18 20:46:40 EDT 2004 i686 i686 
> i386 GNU/Linux
> 
> [EMAIL PROTECTED] 19529]# perl -V
> Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
>    Platform:
>      osname=linux, osvers=2.4.21-14.elsmp, 
> archname=i386-linux-thread-multi
>      uname='linux twe'
>      config_args='-des -Doptimize=-O2 -g -pipe -march=i386 -mcpu=i686 
> -Dmyhostname=localhost [EMAIL PROTECTED] -Dcc=gcc -Dcf_by=Red 
> Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux 
> -Dvendorprefix=/usr -Dsiteprefix=/usr 
> -Dotherlibdirs=/usr/lib/perl5/5.8.0 -Duseshrplib -Dusethreads 
> -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db 
> -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio 
> -Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less 
> -isr'
>      hint=recommended, useposix=true, d_sigaction=define
>      usethreads=define use5005threads=undef'
>   useithreads=define usemultiplicity=
>      useperlio= d_sfio=undef uselargefiles=define usesocks=undef
>      use64bitint=undef use64bitall=un uselongdouble=
>      usemymalloc=, bincompat5005=undef
>    Compiler:
>      cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS 
> -DDEBUGGING -fno-strict-aliasing -I/usr/local/include 
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
>      optimize='',
>      cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS 
> -DDEBUGGING -fno-strict-aliasing -I/usr/local/include 
> -I/usr/include/gdbm'
>      ccversion='', gccversion='3.2.3 20030502 (Red Hat Linux 3.2.3-37)', 
> gccosandvers=''
> gccversion='3.2.3 200305'
>      intsize=o, longsize=s, ptrsize=l, doublesize=8, byteorder=1234
>      d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
>      ivtype='long'
> k', ivsize=4'
> ivtype='long'
> known_extensi, nvtype='double', nvsize=, Off_t='', lseeksize=8
>      alignbytes=4, prototype=define
>    Linker and Libraries:
>      ld='gcc'
> l', ldflags =''
>      libpth=/usr/local/lib /lib /usr/lib
>      libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil
>      perllibs=
>      libc=/lib/libc-2.3.2.so, so=so, useshrplib=true, libperl=libper
>      gnulibc_version='2.3.2'
>    Dynamic Linking:
>      dlsrc=dl_dlopen.xs, dlext=so', d_dlsymun=undef, 
> ccdlflags='-rdynamic 
> -Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE'
>      cccdlflags='-fPIC'
> ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5', lddlflags='s 
> Unicode/Normalize XS/A'
> 
> Characteristics of this binary (from libperl):
>    Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS 
> USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
>    Locally applied patches:
>          MAINT18379
>    Built under linux
>    Compiled at Jun 28 2004 14:32:58
>    @INC:
>      /usr/lib/perl5/5.8.0/i386-linux-thread-multi
>      /usr/lib/perl5/5.8.0
>      /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
>      /usr/lib/perl5/site_perl/5.8.0
>      /usr/lib/perl5/site_perl
>      /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
>      /usr/lib/perl5/vendor_perl/5.8.0
>      /usr/lib/perl5/vendor_perl
>      /usr/lib/perl5/5.8.0/i386-linux-thread-multi
>      /usr/lib/perl5/5.8.0
>      .
> 
> Thanks in advance for any insight.
> 
>   - Jason Parsons
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Exmh CVS

iD8DBQFBdqVZMJF5cimLx9ARAlyWAJ92rc7Ga0EfMxWNaBoy/JVdj2GvCgCfX+kA
MAge64ZZmGOR/cnXM/uHPlk=
=fbvR
-----END PGP SIGNATURE-----

Reply via email to