Re: Virtual memory usage by nslcd
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
Re: Virtual memory usage by nslcd
- From: Deepak Kodihalli <dkodihal [at] linux.vnet.ibm.com>
- To: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: Re: Virtual memory usage by nslcd
- Date: Wed, 7 Nov 2018 19:17:46 +0530
On 03/11/18 6:17 PM, Arthur de Jong wrote:
On Fri, 2018-11-02 at 16:20 +0530, Deepak Kodihalli wrote:
I have plans of using nslcd on a Baseboard management controller
with about 128MB RAM. If nslcd suitable for systems with such small
RAMs?
The memory use of nslcd should be pretty constant. The memory use
mostly consists of:
- communication buffers
- LDAP connection structures
- buffers for converting results and queries
I haven't looked into memory profiling of nslcd in a long time and I'm
unsure of the memory usage of dependent libraries (OpenLDAP and an SSL
library mostly).
I've noticed that the steady VSZ usage by nslcd is about 47-48 MB.
Does that sound right? Are there build-time/run-time config options
to cut down on this?
The runtime memory use can probably be decreased by reducing the number
of threads. By default 5 threads are started. Each thread has its own
LDAP connection, buffers for I/O and stack (the parsing buffers are
mostly located on the stack).
Thanks, reducing the number of threads did help.
Regards,
Deepak
--
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
https://lists.arthurdejong.org/nss-pam-ldapd-users/