Return-Path: X-Original-To: apmail-directmemory-dev-archive@www.apache.org Delivered-To: apmail-directmemory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 545C3D318 for ; Sat, 10 Nov 2012 17:08:51 +0000 (UTC) Received: (qmail 5738 invoked by uid 500); 10 Nov 2012 17:08:51 -0000 Delivered-To: apmail-directmemory-dev-archive@directmemory.apache.org Received: (qmail 5677 invoked by uid 500); 10 Nov 2012 17:08:51 -0000 Mailing-List: contact dev-help@directmemory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directmemory.apache.org Delivered-To: mailing list dev@directmemory.apache.org Received: (qmail 5665 invoked by uid 99); 10 Nov 2012 17:08:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Nov 2012 17:08:51 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kjan80@gmail.com designates 209.85.215.178 as permitted sender) Received: from [209.85.215.178] (HELO mail-ea0-f178.google.com) (209.85.215.178) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Nov 2012 17:08:42 +0000 Received: by mail-ea0-f178.google.com with SMTP id d13so2330962eaa.37 for ; Sat, 10 Nov 2012 09:08:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=f4p2BXZ9rVblBRFUUs77g0MoZa6empC68Jp4uluSr5Y=; b=C6nswWMT1OgDHylvaAMr1XONPj6C2+B+Anm0WYn7qw/ebcD8YdBFkShHoBGWK6KtT6 lN+1Ld0jVNISvrkIRYvSjyFP8BkPG73wy6I94A7Qa1sh7fnGwztxWzX3b2KR5aSHnGl8 HjQCik7QObg5o8LYd00w3pvKqiVd+PGr3p97SPOeNEb/5ebLMfIbQEiCk8ouMI/RTRr5 tetPnJirERZvSe6Yv+A+qcTWl90Z8xmulQ2shn59p9E3oYlM2hvrhwhuAGmRgdbbHEHb jULa/kOqsWXKwgp4E/QY9j63b/9PCuywrIA8izgzIHE6wz8hwB5A9b6nz1oZjYT87DGV Bgqw== Received: by 10.14.184.1 with SMTP id r1mr47607642eem.4.1352567302318; Sat, 10 Nov 2012 09:08:22 -0800 (PST) Received: from [192.168.43.237] (92.251.255.5.threembb.ie. [92.251.255.5]) by mx.google.com with ESMTPS id 42sm4569653eee.0.2012.11.10.09.08.11 (version=SSLv3 cipher=OTHER); Sat, 10 Nov 2012 09:08:21 -0800 (PST) Message-ID: <509E89EB.6000303@gmail.com> Date: Sat, 10 Nov 2012 17:07:55 +0000 From: Jan Kotek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121028 Thunderbird/16.0.2 MIME-Version: 1.0 To: dev@directmemory.apache.org Subject: Re: MapDB References: <5099AE92.5060808@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, you are right. Performance difference between inMemory and onDisk store is only 50% if data fits into memory. MapDB does not use page buffer like most databases. It leaves page caching on OS. instead MapDB has instance cache for already deserialized objects. Jan On 10/11/12 15:36, Julien Vermillard wrote: > Hi, just a small comment. > As mapDB use memory mapped files (mmap) using it for offloading memory to > disk is probably not a performing idea since the O/S will already cache the > file in memory the file for you : > https://www.varnish-cache.org/trac/wiki/ArchitectNotes > > You will basicly have two memoery cache and the O/S will beat the > directmemory one. > > My 2 cents, > > Julien > > On Wed, Nov 7, 2012 at 8:54 AM, Raffaele P. Guidi < > raffaele.p.guidi@gmail.com> wrote: > >> Hi and thanks for your interest and offer! I know and appreciate your >> project and made plans to integrate it as disk store since the early days. >> We sure need good serialization libraries, in fact, in addition to provide >> support for many different ones (kryo, msgpack, protostuff, etc) we >> recently welcomed lightning (an unsafe based serializer by Christophe >> Engelbert) as a subproject to complement our codebase with a fast (and >> in-house) choice. >> >> I think we have more than one reason to integrate and share code: >> >> >> 1. DirectMemory could make good use of mapdb to serialize least >> frequently used items to disk and free memory >> 2. DirectMemory could implement a MapDB disk based store in addition to >> the bytebuffer and unsafe ones >> 3. MapDB could take advantage of DM's componentization approach to >> support multiple serializers (we believe each one has its advantages in >> different scenarios) >> 4. MapDB could use DM to write items to an off-heap before writing to >> disk (asynchronously) to improve speed >> 5. We could merge our serialization efforts (I believe lightning is very >> fast and worth to be considered) and provide an even better solution or >> two >> alternative implementations >> >> In both cases we would be open to contribution in different forms - just >> contributing patches or with you to join us and the ASF as module or >> subproject (the latter options have to undergo a formal vote by all project >> members, of course) as I strongly believe that merging efforts would bring >> to a better and more complete product. >> >> What do you think about it? >> >> Regards, >> Raffaele >>