Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 22960 invoked from network); 21 Mar 2009 17:26:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Mar 2009 17:26:12 -0000 Received: (qmail 36272 invoked by uid 500); 21 Mar 2009 17:26:11 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 36258 invoked by uid 500); 21 Mar 2009 17:26:11 -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 36247 invoked by uid 99); 21 Mar 2009 17:26:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Mar 2009 10:26:11 -0700 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; Sat, 21 Mar 2009 17:26:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AF546234C003 for ; Sat, 21 Mar 2009 10:25:50 -0700 (PDT) Message-ID: <1378061682.1237656350701.JavaMail.jira@brutus> Date: Sat, 21 Mar 2009 10:25:50 -0700 (PDT) From: "Andrew Purtell (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Commented: (HBASE-1186) Memory-aware Maps with LRU eviction for Cell Cache In-Reply-To: <1419416203.1233856679675.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-1186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688063#action_12688063 ] Andrew Purtell commented on HBASE-1186: --------------------------------------- I've reviewed this and except for a minor collision with the patch now it looks good. I'm just waiting for HBASE-1274 to be resolved first so I can claim that all local tests pass before committing this. > Memory-aware Maps with LRU eviction for Cell Cache > -------------------------------------------------- > > Key: HBASE-1186 > URL: https://issues.apache.org/jira/browse/HBASE-1186 > Project: Hadoop HBase > Issue Type: New Feature > Reporter: Jonathan Gray > Assignee: Jonathan Gray > Priority: Critical > Fix For: 0.20.0 > > Attachments: hbase-1186-v2.patch, hbase-1186-v3.patch, hbase-1186-v4.patch, HeapSize.java, LruHashMap.java > > > Caching is key for 0.20. We need a set of memory-aware data structures to manage our caches. > I propose two initial classes: LruHashMap and LruBlockMap > *LruHashMap* is currently being used over in HBASE-80 for the Cell cache. Erik Holstad has done extensive testing and benchmarking and will post results over in this issue. > - Memory-aware > - Fixed size > - LRU eviction > *LruBlockMap* can be used for the block caching of the new file format in HBASE-61. It should try to use all available memory, but must contend with Memcaches so is resizable to deal with heap pressure. Adding high priority blocks (evicted last) gives us in-memory functionality as described in bigtable paper. > - Memory-aware > - Fully resizable > - LRU eviction (with some additions) > - High priority blocks > - _Optional: Scan resistant algorithm_ > Part of this issue is also solving how we will determine the size of cached objects. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.