[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: LMDB vs FastDB
- To: Howard Chu <hyc@symas.com>
- Subject: Re: LMDB vs FastDB
- From: Tobias Oberstein <tobias.oberstein@gmail.com>
- Date: Sat, 30 Mar 2013 16:38:40 +0100
- Cc: openldap-technical@openldap.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=ItoTnFK3khDLbyprhptFF9WW9aGTxQp5ah0g4uH8KFM=; b=OCuMvZItmKO9WbVzrJ/ieY+DAojpsg+jKmfngCPs/i45B77MAIgre+PYfbccToS/EZ mtxjtBqqsgAJ3KZ9rOsN6opLSTNmDCsSFUXvIkMo554Z+TxdSLKufXQdxB97MgnxVIJx Sn6X3QAgKM1sdbpf5FI8mH7xlyEfZmDIQ9PcvtCXMkBUJ+n2Abkt2WLTtiSTSW4bz9mR 4KzwkT7hw+McvQrhxdRIH9bVaE2RrjNHTI29vnRVYtenTXUhfYqZFA3o6FYLC1K51+Aa rPMP/s7kg9zcOjA2zOFLuvvsu9shibAgLdp4x/9WluppExb14desTZDaf3UZ/NQTJH3s 4KTQ==
- In-reply-to: <514B748D.9030101@symas.com>
- References: <5149B9B8.3090305@gmail.com> <514B748D.9030101@symas.com>
- User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4
FastDB also appears to use locking, while LMDB is MVCC and readers
Yeah, MVCC is the right thing ..
require no locks, so even with all of the other disadvantages out of the
way, LMDB will scale better across multiple CPUs.
So _one_ LMDB can be concurrently used from multiple threads and
multiple processes, with multiple readers and writers?
Writers wont block readers, but writers require exclusive lock?
When used from different process, the single-layer design making use of
the filesystem buffer cache will mean there is no "buffer cache" per
process, and memory-consumption won't skyrocket?
Tobias