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

Sizing Question: RAM size vs dbcachesize + cachesize



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

What is the rule of thumb / simple formula for setting cachesize &
dbcachesize, given amount of RAM and number of entries in OpenLDAP?

So far I understand that:-
cachesize = Amount of RAM available / (Number of entries x size per entry)
dbcachesize = (Amount of RAM available / Number of index files)

Questions:-

1. How do I balance memory allocation between cachesize & dbcachesize,
down to simple steps, e.g.:-
- - For dbcachesize, assign it the size of the largest index file?
- - For cachesize, find out how many entries are most frequently searched,
  and assign it to cachesize?
- - Run it and use db_stat utility to see if it's effective?

2. How best to calculate memory size per LDAP entry?
eg: each entry has on average 20 attributes and values average of 20
characters long.

Thanks.

- --sazli
cd /open/source; make world
** PGP/GnuPG Public key:- **
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x06D4113E
Key fingerprint = 0776 CC02 2C3F C0FF 7312  0C3E 0593 AF64 06D4 113E

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9m9vJkSESUspztQkRAurwAJwOyWoguKUkYjvykYswsbAFBFN8GQCgzHQ3
e1zgsUdUbqoi6Uo3fLWFgKs=
=zF3h
-----END PGP SIGNATURE-----