Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 11017 invoked from network); 6 Apr 2011 17:33:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Apr 2011 17:33:44 -0000 Received: (qmail 8989 invoked by uid 500); 6 Apr 2011 17:33:44 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 8958 invoked by uid 500); 6 Apr 2011 17:33:44 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 8950 invoked by uid 99); 6 Apr 2011 17:33:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Apr 2011 17:33:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Apr 2011 17:33:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 722FC95914 for ; Wed, 6 Apr 2011 17:33:06 +0000 (UTC) Date: Wed, 6 Apr 2011 17:33:06 +0000 (UTC) From: "T Jake Luciani (JIRA)" To: commits@cassandra.apache.org Message-ID: <425827091.38311.1302111186464.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <32519327.13481293215925846.JavaMail.jira@thor> Subject: [jira] [Commented] (CASSANDRA-1902) Migrate cached pages during compaction MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-1902?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 13016453#comment-13016453 ]=20 T Jake Luciani commented on CASSANDRA-1902: ------------------------------------------- Ok, reran on my box (4 core 4 gigs of ram). I also compared it to the previ= ously committed version of this patch (v3) I think v3 performs closer to t= he way we want. it just needs to perserve the page list similar to the way = v7 does and migrate them all at the end, just before the new sstables are s= wapped in. {noformat} ./bin/stress -n 100000 -c 10 -S 1024 -k (ON) 226 (OFF) 229 (OLDON) 230 #flush ./bin/stress -n 100000 -o read (ON) 34, 15 (OFF) 80, 15 (OLDON) 80, 15 ./bin/stress -n 100000 -c 10 -S 1024 -k (ON) 226 (OFF) 228 (OLDON) 226 ./bin/stress -n 100000 -o read (ON) 15 (OFF) 110, 15 (OLDON) 75, 15 #compact=20 #active reads (ON) 110, 122, 153, 111, 66, 34, 96, 15 (OFF) 235, 134, 83, 60, 50, 90, 80, 20 (OLDON) 21, 15, 15, 15, 15, 15,=E2=80=A6, 119, 40, 15 {noformat} > Migrate cached pages during compaction=20 > --------------------------------------- > > Key: CASSANDRA-1902 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1902 > Project: Cassandra > Issue Type: Improvement > Components: Core > Affects Versions: 0.7.1 > Reporter: T Jake Luciani > Assignee: Pavel Yaskevich > Fix For: 0.7.5, 0.8 > > Attachments: 0001-CASSANDRA-1902-cache-migration-impl-with-config= -option.txt, 1902-BufferedSegmentedFile-logandsleep.txt, 1902-formatted.txt= , 1902-per-column-migration-rebase2.txt, 1902-per-column-migration.txt, CAS= SANDRA-1902-v3.patch, CASSANDRA-1902-v4.patch, CASSANDRA-1902-v5.patch, CAS= SANDRA-1902-v6.patch, CASSANDRA-1902-v7.patch > > Original Estimate: 32h > Time Spent: 56h > Remaining Estimate: 0h > > Post CASSANDRA-1470 there is an opportunity to migrate cached pages from = a pre-compacted CF during the compaction process. This is now important si= nce CASSANDRA-1470 caches effectively nothing. =20 > For example an active CF being compacted hurts reads since nothing is cac= hed in the new SSTable.=20 > The purpose of this ticket then is to make sure SOME data is cached from = active CFs. This can be done my monitoring which Old SSTables are in the pa= ge cache and caching active rows in the New SStable. > A simpler yet similar approach is described here: http://insights.oetiker= .ch/linux/fadvise/ -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira