[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
proxycache memory allocation
Hi,
I'm testing 2.3.24 back-ldap with proxycache on Linux-2.6.11-x86_64
installed in VMware-Server-1.0, with 512MB Ram, 1GB swap and 10GB disk
space. The host is a x86_64, 2GB RAM, same kernel version.
I just wonder how much memory pcache is allocating, as the kernel runs
out of memory and kills slapd. While running slapd with back-ldap and
rewrite engine only, all is fine. Any hints?
Log messages, slapd.conf, output of df and free are attached.
-Dieter
,----[ log messages ]
| 16:36:39 linux slapd[5563]: @(#) $OpenLDAP: slapd 2.3.24 (Jun 9 2006 16:20:03) $ dieter@linux:/tmp/openldap-2.3.24/servers/slapd
| 16:37:28 linux kernel: oom-killer: gfp_mask=0x1d2
| 16:37:28 linux kernel: DMA per-cpu:
| 16:37:28 linux kernel: cpu 0 hot: low 2, high 6, batch 1
| 16:37:28 linux kernel: cpu 0 cold: low 0, high 2, batch 1
| 16:37:28 linux kernel: Normal per-cpu:
| 16:37:28 linux kernel: cpu 0 hot: low 32, high 96, batch 16
| 16:37:28 linux kernel: cpu 0 cold: low 0, high 32, batch 16
| 16:37:28 linux kernel: HighMem per-cpu: empty
| 16:37:28 linux kernel:
| 16:37:28 linux kernel: Free pages: 4984kB (0kB HighMem)
| 16:37:28 linux kernel: Active:60298 inactive:60115 dirty:0 writeback:0 unstable:0 free:1246 slab:2761 mapped:119907 pagetables:932
| 16:37:28 linux kernel: DMA free:2072kB min:88kB low:108kB
| high:132kB active:5296kB inactive:4512kB present:16384kB pa
| 16:37:28 linux kernel: lowmem_reserve[]: 0 0 0
| 16:37:28 linux kernel: DMA: 0*4kB 1*8kB 1*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 2072kB
| 16:37:28 linux kernel: Normal: 24*4kB 4*8kB 0*16kB 1*32kB 1*64kB 1*128kB 0*256kB 1*512kB 0*1024kB 1*2048kB 0*4096kB = 2912kB
| 16:37:28 linux kernel: HighMem: empty
| 16:37:28 linux kernel: Swap cache: add 1686173, delete 1686173, find 1685/2508, race 0+0
| 16:37:28 linux kernel: Free swap = 0kB
| 16:37:28 linux kernel: Total swap = 1012052kB
| 10 16:37:28 linux kernel: Out of Memory: Killed process 5563 (slapd).
`----
,----[ slapd.conf ]
| include /etc/openldap/schema/core.schema
| include /etc/openldap/schema/cosine.schema
| include /etc/openldap/schema/inetorgperson.schema
| include /etc/openldap/schema/combiCalendar.schema
| include /etc/openldap/schema/MailingListen.schema
| pidfile /var/run/slapd.pid
| argsfile /var/run/slapd.args
| loglevel 160
| # loglevel 0
| modulepath /usr/lib/openldap/openldap
| moduleload back_ldap.la
| moduleload rwm.la
| moduleload pcache.la
| access to dn.base="" by * read
| access to dn.base="cn=Subschema" by * read
| access to * by * read
| database ldap
| suffix "dc=dkluenter,dc=de"
| rootdn "cn=admin,dc=dkluenter,dc=de"
| rootpw xxxx
| directory /var/openldap-data
| index objectClass eq
| uri "ldap://192.168.100.94"
| overlay rwm
| overlay pcache
| wm-suffixmassage "dc=dkluenter,dc=de" "o=avci,c=de"
| proxycache-directory /var/lib/ldap/cache
| proxycache bdb 5000 1 100 90
| proxycachequeries 10000
| proxyattrset 0 mail telephonenumber
| proxytemplate (|(sn=)(cn=)) 0 3600 3600
| response-callback tail
| proxycache-index objectclass eq
| proxycache-index queryid eq
| proxycache-index sn,cn eq,sub
|
| database monitor
`----
,----[ available memory ]
| dieter@linux:~> free
| total used free shared buffers cached
| Mem: 509044 63132 445912 0 4308 20436
| -/+ buffers/cache: 38388 470656
| Swap: 1012052 20544 991508
`----
,----[ disk space ]
| dieter@linux:~> df
| Dateisystem 1K-Blöcke Benutzt Verfügbar Ben% Eingehängt auf
| /dev/sda2 9469976 2738156 6731820 29% /
| tmpfs 254520 0 254520 0% /dev/shm
`----
--
Dieter Klünter | Systemberatung
http://www.dkluenter.de
GPG Key ID:8EF7B6C6