entry cache size on DS5.2 P2 and DS5.2 P4

Hi,

We have few DS5.2P2 servers in cascaded replication topology for a single suffix with single database (userRoot). There are around 115300 entries in this suffix. I migrated two servers from 5.2p2 to 5.2p4. I noticed that the entry cache need for both these versions are very much different for the same suffix. Here after the findings:

On DS5.2P2 when I load all entries using (objectclass=*) filter, the memory it consumes is 621 MB ( as reported in Entry cache usage report in status tab and Max entry cache size is set to 850 MB).

On DS5.2P4 when I load all entries using (objectclass=*) filter, the memory it consumes is 827 MB ( as reported in Entry cache usage report in status tab and Max entry cache size is set to 850 MB).

Both servers are on Sun sparc, same OS 8.0, both are consumer replica. I tested the loading of entries immediately after restart of ns-slapd service on both the server.

Why such a huge increase (200 MB) in DS5.2P4 for the entry cache for same database content (same number of entries). ?

Thanks

Randip Malakar

[1094 byte] By [Randip_Malakara] at [2007-11-26 20:44:51]
# 1

Hi Randip,

Check out the 5.2_Patch_4 release notes:

http://docs.sun.com/source/819-2405/index.html

There is a change in how it allocates memory for the entry cache. But if you want, you can revert to the old method by defining an environment variable in the slapd startup script.

gtholberta at 2007-7-10 2:06:00 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2

There are some changes in the way Directory Server manages its memory and more specifically allocate memory pools.

I believe that there is an issue with 5.2patch4 where too many memory pools are pre-allocated. This issue is being resolved in 5.2patch5 due by the end of the month.

Regards,

Ludovic.

ludovicpa at 2007-7-10 2:06:00 > top of Java-index,Web & Directory Servers,Directory Servers...
# 3

> Hi Randip,

> Check out the 5.2_Patch_4 release notes:

> http://docs.sun.com/source/819-2405/index.html

> There is a change in how it allocates memory for the

> entry cache. But if you want, you can revert to the

> old method by defining an environment variable in the

> slapd startup script.

I tested this but it didn't help. The memory usage is same as without setting the variable SUN_SUPPORT_SLAPD_DEFPOOL=true.

Regards

Randip

Randip_Malakara at 2007-7-10 2:06:00 > top of Java-index,Web & Directory Servers,Directory Servers...