Return-Path: Delivered-To: apmail-hbase-user-archive@www.apache.org Received: (qmail 6050 invoked from network); 1 Oct 2010 15:31:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Oct 2010 15:31:33 -0000 Received: (qmail 66740 invoked by uid 500); 1 Oct 2010 15:31:32 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 66434 invoked by uid 500); 1 Oct 2010 15:31:29 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 66426 invoked by uid 99); 1 Oct 2010 15:31:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 15:31:28 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of saint.ack@gmail.com designates 74.125.82.48 as permitted sender) Received: from [74.125.82.48] (HELO mail-ww0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 15:31:23 +0000 Received: by wwb22 with SMTP id 22so1854073wwb.5 for ; Fri, 01 Oct 2010 08:31:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=ZKfcH5scA9w3M2JNo8mJ7WqDB3b120nG0/oB1D3rG4Y=; b=kPxxiZ5C5dsXJfgbDx7Wn8FQ0y8nWx/aOSJh+RMbbT4Mb3XcueknfOEhCEW143YFhw pilOXjAHndHWi/EMoOMvkitWB9Ub+n1PLWzpqixGUjOZ+vzxkr3geeSOe2h7p/nTpTYK 6OVAUWU5N6BVzqOLoxey7yIcekouGpgzREcUc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=ngDVQDENyod1ncwwxIHG4tjfAF2xIIFJuPBgugG2melBqcF0thNgs5w2UzOfDi+9jo Gfq6bVeWKocdLDXXto9kSSCOGCg0Jh3DItO9jN40YD/CEi+PnqbLJ08/KIZtrbIiNv+h IcXG5CD6N/58KPksTZnsd3+RWPOcW6ezvdXKg= MIME-Version: 1.0 Received: by 10.216.22.74 with SMTP id s52mr2273953wes.11.1285947062093; Fri, 01 Oct 2010 08:31:02 -0700 (PDT) Sender: saint.ack@gmail.com Received: by 10.216.158.149 with HTTP; Fri, 1 Oct 2010 08:31:02 -0700 (PDT) In-Reply-To: References: Date: Fri, 1 Oct 2010 08:31:02 -0700 X-Google-Sender-Auth: rvbgXYjLW__IhWJlJC-VG6IhAEc Message-ID: Subject: Re: memstore to blockcache From: Stack To: user@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-1 Not currently. Blockcache is made of blocks pulled from HDFS. It'd be a little awkward inserting hot records into the block cache w/o going via HDFS. But, yes, you have a good point that flush is disruptive of hot records. In the past we talked of a keyvalue cache on top of the block cache but it fell out of favor because block cache seemed to be good enough but sounds like we need to revive it or do some fancy dancing if column family is marked in-memory, we keep around the snapshot of memstore until we know the block cache has been populated? Any other suggestions? File an issue. We need to come up w/ a fix for this case. Thanks for writing the list, St.Ack On Fri, Oct 1, 2010 at 1:26 AM, Abhijit Pol wrote: > we are trying to read efficiently a hot column family (in_memory=true, > blockcaching=true) that get writes at say 500 qps and reads at 10,000 qps. > > - as long as writes are in memstore we get them from memstore and its fast > - if we have read it once it will be at least in block cache (gets priority > due to in_memory=true) and subsequent reads are faster > - however memstore flush puts records on disk which demands for disk IO to > get them back in block cache > > is there a way for memstore flush to go to blockcache? > > > -- Abhijit >