Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-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 AF60FC3AD for ; Mon, 9 Sep 2013 07:16:23 +0000 (UTC) Received: (qmail 5456 invoked by uid 500); 9 Sep 2013 07:16:23 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 5266 invoked by uid 500); 9 Sep 2013 07:16:22 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 5258 invoked by uid 99); 9 Sep 2013 07:16:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Sep 2013 07:16:19 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of elecharny@gmail.com designates 74.125.82.41 as permitted sender) Received: from [74.125.82.41] (HELO mail-wg0-f41.google.com) (74.125.82.41) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Sep 2013 07:16:13 +0000 Received: by mail-wg0-f41.google.com with SMTP id a12so2749326wgh.2 for ; Mon, 09 Sep 2013 00:15:52 -0700 (PDT) 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=IfIgfh5Vw55Qkpyk+5xYXs7zE61Gu5gMS5bRaVvG3qA=; b=mfXHyEpZgV54AUUg6LjstzujPgjSaWAPXXgfueBUCvHYYNXD3a2+qSPUseTAwvSK07 EyS4XkT5os89cn5fwgDHpm1W25Te89gidlpa5ERlU6IiDvSK/iWC592VcGgPiL1v6CY7 OwRpb1JXRgzQXSYeXPCFqa9/4HX2UwAz36xDQpIYeIeF52Zbs/d1pn1iugKZd2lYEuE2 ZXIlsW2HnptHW8b7hVL5rP8xGW4sOvhvkE3QwC+Fz7YNMhTafylgzgqf3k84HH4kd4bF WGe2lDvxSWasz3oDPdru32KvNRd5Lubpiw+JMIUNrawlwVGryUyBctT0yAjKXvoTnEWK ynAg== X-Received: by 10.180.24.198 with SMTP id w6mr7354454wif.1.1378710952576; Mon, 09 Sep 2013 00:15:52 -0700 (PDT) Received: from Emmanuels-MacBook-Pro.local ([212.195.127.200]) by mx.google.com with ESMTPSA id b13sm15364828wic.9.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 09 Sep 2013 00:15:52 -0700 (PDT) Message-ID: <522D75A7.7070505@gmail.com> Date: Mon, 09 Sep 2013 09:15:51 +0200 From: =?UTF-8?B?RW1tYW51ZWwgTMOpY2hhcm55?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: Cache and partitions... References: <522C3078.8030505@gmail.com> <522D5FFD.7040902@gmail.com> <522D621B.6090903@gmail.com> <522D6938.9060706@stefan-seelmann.de> In-Reply-To: <522D6938.9060706@stefan-seelmann.de> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Le 9/9/13 8:22 AM, Stefan Seelmann a écrit : > On 09/09/2013 07:52 AM, Emmanuel Lécharny wrote: >> Le 9/9/13 7:43 AM, Emmanuel Lécharny a écrit : >>> Le 9/9/13 4:46 AM, Kiran Ayyagari a écrit : >>> >>> I suggest we focus on decoupling the cacheService we have from it's >>> EhCache implementation atm, so that the API is not to be odified after >>> the next release, and that's it. I also suggest to make this >>> CacheService available in the Partitions, even if it's not used. >>> >>> again, IMO plugging in this kind of mechanism may not be of great help, >>>> just more work >>>> on a feature that may never be used, I believe Ehcache is the best >>>> available cache with >>>> the compatible license and unless we try to write our own we don't need >>>> this new feature > I agree that we should have a interface to be able to change the cache > implementation. I think ehcache is the default choice today, but it's > not just a simple in-memory cache but a huge product with tons of features. > >> FTR : >> >> http://commons.apache.org/proper/commons-jcs/JCSvsEHCache.html >> >> *"JCS proved to be nearly twice as fast as EHCache * in multiple trials >> for both puts and gets" >> >> And it's an Apache project ;-) >> > Just a small note regarding performance of ehcache: it keeps lot of > statistics (hit rate, miss rate, etc.), and before version 2.1 they were > enabled by default which costs significant performance. probably... We are currently using 2.4.4, we could switch to 2.7.4. OTOH, I checked the JCS code, and it's also heavily synchronized. I think we should compare the performances of the google concurrentLinkedMap against the two other implementations. Also note that JCS still uses 1.4 code base, and depends on Doug Lea code (the code that was injected in 1.5). There is a on going effort to port JCS to 1.5, but it's far from being done. Thanks ! -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com