Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 11228 invoked from network); 24 Jun 2009 22:50:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jun 2009 22:50:39 -0000 Received: (qmail 53407 invoked by uid 500); 24 Jun 2009 22:34:31 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 53385 invoked by uid 500); 24 Jun 2009 22:34:31 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 53364 invoked by uid 99); 24 Jun 2009 22:34:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2009 22:34:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2009 22:34:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6F344234C053 for ; Wed, 24 Jun 2009 15:34:07 -0700 (PDT) Message-ID: <1710841284.1245882847454.JavaMail.jira@brutus> Date: Wed, 24 Jun 2009 15:34:07 -0700 (PDT) From: "Jonathan Gray (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Commented: (HBASE-1460) Concurrent LRU Block Cache In-Reply-To: <228517078.1243729807357.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-1460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723778#action_12723778 ] Jonathan Gray commented on HBASE-1460: -------------------------------------- Came across this interesting project: http://code.google.com/p/concurrentlinkedhashmap/ Their "old algorithm" is much like this one. The new algoirthm looks very cool but is not production ready yet. > Concurrent LRU Block Cache > -------------------------- > > Key: HBASE-1460 > URL: https://issues.apache.org/jira/browse/HBASE-1460 > Project: Hadoop HBase > Issue Type: Improvement > Components: io > Reporter: Jonathan Gray > Assignee: Jonathan Gray > Fix For: 0.20.0 > > Attachments: HBASE-1460-v1.patch, HBASE-1460-v2.patch, HBASE-1460-v3.patch > > > The LRU-based block cache that will be committed in HBASE-1192 is thread-safe but contains a big lock on the hash map. Under high load, the block cache will be hit very heavily from a number of threads, so it needs to be built to handle massive concurrency. > This issue aims to implement a new block cache with LRU eviction, but backed by a ConcurrentHashMap and a separate eviction thread. Influence will be drawn from Solr's ConcurrentLRUCache, however there are major differences because solr treats all cached elements as equal size whereas we are dependent on our HeapSize interface with realistic (though approximate) heap usage. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.