Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-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 2CE649833 for ; Tue, 13 Dec 2011 01:48:07 +0000 (UTC) Received: (qmail 30787 invoked by uid 500); 13 Dec 2011 01:48:06 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 30754 invoked by uid 500); 13 Dec 2011 01:48:06 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 30746 invoked by uid 99); 13 Dec 2011 01:48:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2011 01:48:06 +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 (athena.apache.org: domain of jdcryans@gmail.com designates 209.85.213.169 as permitted sender) Received: from [209.85.213.169] (HELO mail-yx0-f169.google.com) (209.85.213.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2011 01:48:00 +0000 Received: by yenq10 with SMTP id q10so5930335yen.14 for ; Mon, 12 Dec 2011 17:47:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=wKAOoys1RQ03XdY4j0DsqSCQ2clMYWW3UG9UewcVmbk=; b=ZEVXyjwxxiyOx9ro1tOaOgDnckggyw2zz71wZ+zSCI2KWyBwiIst4VJdEd9XLwtpUk WbMHbrxI9ZG6ie2xzQgGvMyO9HT/9Q4y6imgefDFprZw4GwITbWWl34eMF7IjBVHdbdt keR1zEMk3ZTJL6hdAQaiubm2xpBKqmKzR9XCU= MIME-Version: 1.0 Received: by 10.236.161.197 with SMTP id w45mr802661yhk.96.1323740859543; Mon, 12 Dec 2011 17:47:39 -0800 (PST) Sender: jdcryans@gmail.com Received: by 10.100.214.8 with HTTP; Mon, 12 Dec 2011 17:47:39 -0800 (PST) Date: Mon, 12 Dec 2011 17:47:39 -0800 X-Google-Sender-Auth: nP6IbyW1jK9zlmsKEo1U3lPVAWI Message-ID: Subject: Reconsidering the default block cache size because of HFileV2 From: Jean-Daniel Cryans To: dev@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-1 Hey devs, A thought just stuck me while I was writing down a more detailed block caching documentation: with HFileV2, the indexes now live in the block cache which means that those who upgrade may all of a sudden get terrible cache hit ratios because of all that memory taken by the indexes. This is somewhat mitigated by the fact that people don't usually need to keep _all_ the index blocks in memory so in the end we're more efficient. Which brings me to a question: should we set hfile.block.cache.size higher since indexes are now kept in the block cache? Currently it's set to 20%. Looking over my own production machines I see that the storefileIndexSize is around 600-700MB so that's potentially how much more data I'd have to block cache (more likely it's half of that that's really being used actively). What would be a good new default? 25%? 30%? How do we handle those that will be pushed over the BC+memstore size limit because of that change? Thx, J-D