Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 88724 invoked from network); 5 Nov 2010 20:13:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Nov 2010 20:13:18 -0000 Received: (qmail 49630 invoked by uid 500); 5 Nov 2010 20:13:48 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 49606 invoked by uid 500); 5 Nov 2010 20:13:48 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 49598 invoked by uid 99); 5 Nov 2010 20:13:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 20:13:48 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dave.gardner@imagini.net designates 209.85.215.44 as permitted sender) Received: from [209.85.215.44] (HELO mail-ew0-f44.google.com) (209.85.215.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 20:13:43 +0000 Received: by ewy27 with SMTP id 27so2150246ewy.31 for ; Fri, 05 Nov 2010 13:13:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.36.84 with SMTP id v62mr1607552wea.77.1288988001093; Fri, 05 Nov 2010 13:13:21 -0700 (PDT) Received: by 10.216.243.76 with HTTP; Fri, 5 Nov 2010 13:13:21 -0700 (PDT) In-Reply-To: References: Date: Fri, 5 Nov 2010 20:13:21 +0000 Message-ID: Subject: Re: row cache vs frequent row updates vs write through row cache From: Dave Gardner To: "user@cassandra.apache.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable > In short, it seems like the general advice is unless you have a set of ne= arly static rows, AND they all fit in the cache, then rowcache is not recom= mended. That's been our experience. Leave the memory for the OS cache instead. Dave On Friday, November 5, 2010, Jeremy Davis wr= ote: > What do you mean by "Turning Over quickly"? What is Turning over? If it n= eeds to create an entirely new row, then that would create GC pressure for = sure... But if you are just updating a column in a row that is already in t= he cache, then I would think that would be the optimal situation. > > OTOH, you may be talking about continuously evicting rows from the cache = (because the cache is too small )... Assuming that is not the case, should = I turn on Row Cache? > In short, it seems like the general advice is unless you have a set of ne= arly static rows, AND they all fit in the cache, then rowcache is not recom= mended. > > -JD > > On Fri, Nov 5, 2010 at 11:49 AM, Brandon Williams wrot= e: > > On Fri, Nov 5, 2010 at 1:41 PM, Jeremy Davis wrote: > > > I saw in the Riptano "Tuning Cassandra" slide deck that the row cache can= be detrimental if there are a lot of updates to the cached row. Is this be= cause the cache is not write through, and every update necessitates creatio= n of a new row? > I see there is an open issue: https://issues.apache.org/jira/browse/CASSA= NDRA-860=A0 for implementing write through in 0.8. > > > > The problem is that if the row is being updated a lot, the cache is turni= ng over quickly, and this exerts GC pressure on the JVM. =A0Even if it were= write-through, row cache is probably a bad match for this kind of row, it'= s much better at mostly static rows. =A0Rely on keycache and OS file cache = for these instead. > > > > -Brandon > > --=20 *Dave Gardner* Technical Architect [image: imagini_58mmX15mm.png] [image: VisualDNA-Logo-small.png] *Imagini Europe Limited* 7 Moor Street, London W1D 5NB [image: phone_icon.png] +44 20 7734 7033 [image: skype_icon.png] daveg79 [image: emailIcon.png] dave.gardner@imagini.net [image: icon-web.png] http://www.visualdna.com Imagini Europe Limited, Company number 5565112 (England and Wales), Registered address: c/o Bird & Bird, 90 Fetter Lane, London, EC4A 1EQ, United Kingdom