[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: memory leak, or 'normal' behaviour?





--On Monday, March 15, 2004 12:38 PM -0500 "Kirk A. Turner-Rustin" <ktrustin@owu.edu> wrote:

Sorry if this is a dumb question, but how did you calculate these
thresholds? As a percentage of total system memory? From Btree pages
and/or hash buckets etc.?

We have a few different ways. For DB memory, we do:

$statout = `/usr/local/bin/db_stat -m`;

$statout =~ /\n(\d+)\s+Current total page count/;
$memtotal = $pagesize * $1 / 1024 / 1024;


For slapd process size, we do:

@results=`/usr/bin/ps -lyp $PID -orss -ovsz`;
($res, $virtual) = split / /, $results[1], 2;
chomp($virtual);

$res/=1024;
$virtual/=1024;


--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/TSS/Computing Systems
ITSS/TSS/Infrastructure Operations
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html