[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#4903) dynlist issues with memory allocation
--On Monday, April 02, 2007 12:42 PM -0700 Quanah Gibson-Mount
<quanah@stanford.edu> wrote:
> Ah, I see... So its not just global/db.
>
> So all overlay bits should be listed last? And I assume this only
> happens when you have more than one overlay in use? Because it only
> happens once both valsort and dynlist are enabled.
That doesn't seem to be it either. For example, on my master, I have:
database hdb
suffix "dc=stanford,dc=edu"
rootdn "cn=manager,dc=stanford,dc=edu"
# Syncrepl Provider
overlay syncprov
syncprov-checkpoint 1000 60
# Dynamic Group Overlay
overlay dyngroup
# Uniqueness Overlay
overlay unique
unique_base cn=people,dc=stanford,dc=edu
unique_attributes suunivid suproxycardnumber sucardnumber suuniqueidentifier
# Valsort Overlay
overlay valsort
valsort-attr suOrgContactStanford cn=orgs,dc=stanford,dc=edu weighted
valsort-attr suOrgContactWorld cn=orgs,dc=stanford,dc=edu weighted
#valsort-attr ou cn=people,dc=stanford,dc=edu weighted
#valsort-attr suAffiliation cn=people,dc=stanford,dc=edu weighted
#valsort-attr suDisplayAffiliation cn=people,dc=stanford,dc=edu weighted
overlay accesslog
logdb cn=accesslog
logops writes
logsuccess TRUE
logpurge 07+00:00 01+00:00
# Let ldapadmin have limitless searches
limits group="cn=ldapadmin,cn=applications,dc=stanford,dc=edu"
time.soft=unlimited time.hard=unlimited size.soft=unlimited
size.hard=unlimited
limits group="cn=ldapreplica,cn=applications,dc=stanford,dc=edu"
time.soft=unlimited time.hard=unlimited size.soft=unlimited
size.hard=unlimited
# Save the time that the entry gets modified
lastmod on
# Set the location of where the database storage files go.
directory /var/lib/ldap
dbconfig set_cachesize 3 536870912 1
dbconfig set_lg_regionmax 262144
dbconfig set_lg_bsize 2097152
dbconfig set_lg_dir /var/log/bdb
dbconfig set_lk_max_locks 3000
#
# Automatically remove log files that are no longer needed.
dbconfig set_flags DB_LOG_AUTOREMOVE
#
# Setting set_tas_spins reduces resource contention from multiple clients
on systems with multiple CPU's.
dbconfig set_tas_spins 1
# Checkpoint the database to prevent transaction loss in unclean shutdowns,
and speed up slapd shutdowns.
checkpoint 1024 5
# Indices to maintain
index default eq
index cn
index dc
index entryCSN
index entryUUID
index objectClass
index krb5PrincipalName
index suCardNumber
index suGeneralID
index suProxyCardNumber
index suRegID
index suUniqueIdentifier
index suUnivID
index uid
#######################################################################
# back-monitor database definitions
#######################################################################
database monitor
As you can see, *multiple* overlay statements and directives, prior to the
"limits" command. It does not exhibit the problems I see on my replica.
The issue only arises once dynlist is enabled.
--Quanah
--
Quanah Gibson-Mount
Senior Systems Software Developer
ITS/Shared Application Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html