[Date Prev][Date Next]
Configuring shared memory / memory mapped files
- To: firstname.lastname@example.org
- Subject: Configuring shared memory / memory mapped files
- From: Meike Stone <email@example.com>
- Date: Tue, 1 Nov 2011 18:03:37 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=EvazdJJCCDyPS8M5sGmJLUvio1veQK/iKiddEF3apsA=; b=K2sn7Qct9UuO46pb1HeOUJfgtPfrNHzcxYlT7MrbPDC7L87SVw0soOmhfrnzkyrxV+ zWZByrGttJRhPtaCmdHdiRer82/X1YHK2rKgYTBmbTWQ1Nhkxuvr0uVzh6+Tj3tdYMnP pLmbSmJTvDDZqiHyAcK2wijJ+EZlqiqw7Yspw=
time ago, we installed a Linux Guest with OpenLDAP (db size appox.
650MByte / ) server in a ESXi environment.
Maybe because of a read/write ratio 100:1, the hard discs where heavy
used by writing bdb backends memory mapped files.
The CPU in that Linux system had iowait (top) between 80% and 100% and
the other VMs on the ESXi went slow down.
After changing to shared memory (shm_key), all problems with disc IO where gone.
I read in the mailing list and on "OpenLDAP performance tuning" guide,
that it does not matter if using memory mapped files or shared memory
until the database is over 8GB. But why we had such problems?
Please note, the OpenLDAP was operating very fast with the memory
mapped files, because of using indexes and proper caching.
Now, I want install more than one OpenLDAP server on one Linux system
(now real Hardware).
Every OpenLDAP server will be bind on a separate IP and DNS host name.
So in this scenario it is hard to calculate the shared memory and
assign each LDAP server to the right shared memory region (key).
Therefore I want go back to memory mapped files. Are there any
recommendation for sizing the Linux system like:
- type of file system (ext3, ext4, xfs, ..)
- parameters of file system (syncing -> commit=nrsec, data=*, ... )
- swap using (swappiness, dirty_background_ratio)
Thanks for any help.