[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: LDAP consumes memory
Perhaps 20meg.. however if you add all the 1.9% up it comes out to
around 67% !!!
At any rate I will play with the thread size and see what happens.. yes
I am running Linux.
On Thu, 2003-04-03 at 15:33, Andrew Findlay wrote:
> On Thu, Apr 03, 2003 at 02:01:07PM -0500, Matt wrote:
>
> > Am I missing something in my config?
> > Slapd seems to be consuming a hord of Memory... CPU is not a problem...
>
> > Mem: 1030560K av, 987304K used, 43256K free, 0K shrd, 147448K
> > buff
> > Swap: 2040244K av, 25768K used, 2014476K free 530016K
> > cached
> >
> > PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
> > 4438 nobody 15 0 70480 68M 2312 S 0.0 6.8 0:30 httpd
> > 16559 root 17 0 20224 19M 13548 S 0.0 1.9 0:00 slapd
> > 16560 root 15 0 20224 19M 13548 S 0.0 1.9 0:23 slapd
> > 16561 root 15 0 20224 19M 13548 S 0.0 1.9 49:14 slapd
> > 16565 root 15 0 20224 19M 13548 S 0.0 1.9 7:16 slapd
> > 16638 root 15 0 20224 19M 13548 S 0.0 1.9 7:32 slapd
> > 16749 root 15 0 20224 19M 13548 S 0.0 1.9 7:16 slapd
> > 17122 root 15 0 20224 19M 13548 S 0.0 1.9 7:08 slapd
> > 17541 root 16 0 20224 19M 13548 S 0.0 1.9 7:10 slapd
> > 17844 root 15 0 20224 19M 13548 S 0.0 1.9 7:33 slapd
> .......
>
> Notice that they all show *exactly* the same size? My guess is that
> you are running on Linux, and that those are all threads in a single
> process. It is probably using a total of 20MB, which is a very small
> proportion of the 1GB you have installed! The rest of the 'used'
> memory is probably file blocks in the buffer cache, as was mentioned
> in another message earlier today.
>
> Having said that, you do seem to have rather a lot of threads running
> and you may actually get better performance with less. You don't say
> what version of slapd you are running so I don't know what the
> default is for certain, but it is likely to be 32. A discussion on Feb
> 16th suggested that 9 threads was good for a dual P200, and someone
> else suggested 20 on an UltraSPARC. It all depends on the balance
> between your CPU and disk system so you may need to experiment: see
> slapd.conf(5) for the threads directive, and make sure you are running
> 2.1.16 as well...
>
> Andrew
--
Matt <openldap@chilitech.com>