Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 42317 invoked from network); 9 Dec 2010 20:35:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Dec 2010 20:35:35 -0000 Received: (qmail 67854 invoked by uid 500); 9 Dec 2010 20:35:35 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 67767 invoked by uid 500); 9 Dec 2010 20:35:35 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 67759 invoked by uid 99); 9 Dec 2010 20:35:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 20:35:35 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 20:35:33 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB9KZAZ7024079 for ; Thu, 9 Dec 2010 20:35:11 GMT Message-ID: <24295370.45531291926910962.JavaMail.jira@thor> Date: Thu, 9 Dec 2010 15:35:10 -0500 (EST) From: "ryan rawson (JIRA)" To: issues@hbase.apache.org Subject: [jira] Commented: (HBASE-3327) For increment workloads, retain memstores in memory after flushing them In-Reply-To: <21493110.42741291921803654.JavaMail.jira@thor> 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-3327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969932#action_12969932 ] ryan rawson commented on HBASE-3327: ------------------------------------ What about the write a block cache on hfile write patch? Does that not help? > For increment workloads, retain memstores in memory after flushing them > ----------------------------------------------------------------------- > > Key: HBASE-3327 > URL: https://issues.apache.org/jira/browse/HBASE-3327 > Project: HBase > Issue Type: Improvement > Components: regionserver > Reporter: Karthik Ranganathan > > This is an improvement based on our observation of what happens in an increment workload. The working set is typically small and is contained in the memstores. > 1. The reason the memstores get flushed is because the number of wal logs limit gets hit. > 2. This in turn triggers compactions, which evicts the block cache. > 3. Flushing of memstore and eviction of the block cache causes disk reads for increments coming in after this because the data is no longer in memory. > We could solve this elegantly by retaining the memstores AFTER they are flushed into files. This would mean we can quickly populate the new memstore with the working set of data from memory itself without having to hit disk. We can throttle the number of such memstores we retain, or the memory allocated to it. In fact, allocating a percentage of the block cache to this would give us a huge boost. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.