[Orca-users] Memory leak?

Borja Marcos borjamar at sarenet.es
Mon Jul 21 07:38:38 PDT 2008


Hi,

I'm using Orca snapshot r535 on FreeBSD 7/amd64 (the 64 bit version).

This machine uses Orca for some Solaris systems, FreeBSD (using  
devilator) and some Linuces using procallator.

And I've found that Orca is getting an outrageous amount of memory

   PID USERNAME  THR PRI NICE   SIZE    RES STATE  C   TIME   WCPU  
COMMAND
  8724 orca        1 112    0  2341M 41488K CPU0   0 108:37 78.66%  
perl5.8.8
99050 orca        1 -16    0  1283M 66688K vnread 3  28:59 69.78%  
perl5.8.8
13939 orca        1 -16    0  1054M  1017M vnread 2  18:37 69.58%  
perl5.8.8
40933 orca        1 110    0  1216M 27236K CPU2   2  31:37 67.48%  
perl5.8.8
99049 orca        1 104    0   426M 23168K CPU1   1   6:31 40.09%  
perl5.8.8
48367 orca        1   8    0  1487M 32236K nanslp 2  36:01 17.87%  
perl5.8.8
36011 orca        1   8    0  1422M 59616K nanslp 0  58:18  2.29%  
perl5.8.8
84739 orca        1   8    0  1507M 20224K nanslp 3  40:36  0.00%  
perl5.8.8
91146 orca        1   8    0  1333M     0K nanslp 3  38:21  0.00%  
<perl5.8.8>
41164 orca        1   8    0  1468M     0K nanslp 2  34:30  0.00%  
<perl5.8.8>
99856 orca        1   8    0  1128M     0K nanslp 1  25:16  0.00%  
<perl5.8.8>
69971 orca        1   8    0   981M     0K nanslp 0  17:08  0.00%  
<perl5.8.8>
77419 orca        1   8    0   499M     0K nanslp 2  10:32  0.00%  
<perl5.8.8>

The reason for so many processes is that we have them divided into  
platforms, operating systems, etc.

The system is FreeBSD 7,
FreeBSD orca.sare.net 7.0-STABLE FreeBSD 7.0-STABLE #0: Tue Jun 24  
15:37:35 CEST 2008     root at orca.sare.net:/usr/obj/usr/src/sys/ORCA   
amd64
%

The Perl version is Perl 5.8.8 built from the FreeBSD ports system,

Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
   Platform:
     osname=freebsd, osvers=7.0-stable, archname=amd64-freebsd-thread- 
multi
     uname='freebsd orca.sare.net 7.0-stable freebsd 7.0-stable #0:  
tue jun 24 15:37:35 cest 2008 root at orca.sare.net:usrobjusrsrcsysorca  
amd64 '
     config_args='-sde -Dprefix=/usr/local -Darchlib=/usr/local/lib/ 
perl5/5.8.8/mach -Dprivlib=/usr/local/lib/perl5/5.8.8 -Dman3dir=/usr/ 
local/lib/perl5/5.8.8/perl/man/man3 -Dman1dir=/usr/local/man/man1 - 
Dsitearch=/usr/local/lib/perl5/site_perl/5.8.8/mach -Dsitelib=/usr/ 
local/lib/perl5/site_perl/5.8.8 -Dscriptdir=/usr/local/bin - 
Dsiteman3dir=/usr/local/lib/perl5/5.8.8/man/man3 -Dsiteman1dir=/usr/ 
local/man/man1 -Ui_malloc -Ui_iconv -Uinstallusrbinperl -Dcc=cc - 
Duseshrplib -Dccflags=-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/ 
BSDPAN" -Doptimize=-O2 -fno-strict-aliasing -pipe  -Ud_dosuid -Ui_gdbm  
-Dusethreads=y -Dusemymalloc=n -Duse64bitint'
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=define use5005threads=undef useithreads=define  
usemultiplicity=define
     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
     use64bitint=define use64bitall=define uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
   Compiler:
     cc='cc', ccflags ='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/ 
BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing - 
pipe -Wdeclaration-after-statement -I/usr/local/include',
     optimize='-O2 -fno-strict-aliasing -pipe ',
     cppflags='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" - 
DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe - 
Wdeclaration-after-statement -I/usr/local/include'
     ccversion='', gccversion='4.2.1 20070719  [FreeBSD]',  
gccosandvers=''
     intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
     ivtype='long', ivsize=8, nvtype='double', nvsize=8,  
Off_t='off_t', lseeksize=8
     alignbytes=8, prototype=define
   Linker and Libraries:
     ld='cc', ldflags ='-pthread -Wl,-E -L/usr/local/lib'
     libpth=/usr/lib /usr/local/lib
     libs=-lm -lcrypt -lutil
     perllibs=-lm -lcrypt -lutil
     libc=, so=so, useshrplib=true, libperl=libperl.so
     gnulibc_version=''
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='  -Wl,- 
R/usr/local/lib/perl5/5.8.8/mach/CORE'
     cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib'


Characteristics of this binary (from libperl):
   Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
                         PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT
                         USE_ITHREADS USE_LARGE_FILES USE_PERLIO
                         USE_REENTRANT_API
   Locally applied patches:
	defined-or
   Built under freebsd
   Compiled at Jun 24 2008 16:25:02
   @INC:
     /usr/local/lib/perl5/5.8.8/BSDPAN
     /usr/local/lib/perl5/site_perl/5.8.8/mach
     /usr/local/lib/perl5/site_perl/5.8.8
     /usr/local/lib/perl5/site_perl
     /usr/local/lib/perl5/5.8.8/mach
     /usr/local/lib/perl5/5.8.8
     .
%


RRDtool is version 1.3.0, and the rest of the Perl packages:

p5-Data-Dumper-2.121 Stringified perl data structures, suitable for  
both printin
p5-Math-Interpolate-1.05 Perl routines for data sets interpolation and  
interval sear
p5-Storable-2.18    Persistency for perl data structures


Other than these, I've used the packages provided with the Orca  
snapshot.

Any clue? Anything to check in order to locate the leak?



Thanks,






Borja.








More information about the Orca-users mailing list