[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
optimal mdb flags
- To: <openldap-technical@openldap.org>
- Subject: optimal mdb flags
- From: "Paul B. Henson" <henson@acm.org>
- Date: Tue, 7 Jan 2014 19:15:07 -0800
- Content-language: en-us
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding:thread-index:content-language; bh=Yk1U1JFvc+Wo7CfZz3XH2BwM3BWiKVsPGfPBP6ULhJU=; b=lCxLisyzSM3gbAvrLf8zExrwI2yMyBIT0HE9NRlkDEtAHHP9j62Ftu7dNfLWgtpYaE O9De6nt6gIJYnx9PlbJdvIm/XGNRi9xHYlJ/Tzj35EF+xmlos+gw1b3EE0QVsNsgVB34 OiO6PWejVigb2YlIVl34rlam1+kpAHAy/cnxwXEpvjLIJ3OFm2QHXz93tlzTaTCy4EcU TktaikDUAEpSJyms9cesh3FbNnD9d9W88mU+thx6vPgmzKH//SitSKMrVdtT4pzRyHH/ MD6X+6olGA+u7/H/2edhMFf2xlval2z1o67qvU430HhCV6gHUcuYjSh3QcrQBxxfQB96 XSKQ==
- Thread-index: Ac8MF093YQ9D/gu2SKqxP3+6hcXq4Q==
So if it's not obvious, we're working on migrating our openldap deployment
to mdb from hdb :), I apologize for the flurry of questions, this will be
the last, at least for today ;).
I'm trying to evaluate the optimal configuration for mdb; it seems like for
the most part you can just set maxsize and move on if you don't have
performance issues, but one flag I've seen frequently mentioned for
improving performance is writemap. This seems like a win all around, unless
there is some bug that results in erroneous writes into the mapped region,
in which case it could potentially cause major database corruption. For
those that have been running mdb in the field for a while, are you using
writemap? Have you ever run into any corruption because of it?
The other flag that seems to be popular is nometasync. As opposed to nosync,
which might cause loss of some number of transactions in case of a crash,
nometasync only risks one? And the benefit is that it is "slightly faster"?
Again, any recommendations from field experience on this? Also, if you do
enable it, do you need a checkpoint directive, or is that only necessary for
nosync?
Thanks.