Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 23CB8D237 for ; Mon, 3 Sep 2012 05:27:57 +0000 (UTC) Received: (qmail 59784 invoked by uid 500); 3 Sep 2012 05:27:54 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 59650 invoked by uid 500); 3 Sep 2012 05:27:54 -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 59632 invoked by uid 99); 3 Sep 2012 05:27:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 05:27:54 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shutyaev@gmail.com designates 209.85.223.172 as permitted sender) Received: from [209.85.223.172] (HELO mail-ie0-f172.google.com) (209.85.223.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 05:27:49 +0000 Received: by ieak13 with SMTP id k13so3665309iea.31 for ; Sun, 02 Sep 2012 22:27:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=i/xu8h/zZnPgoUv9LU09P/RwJah4CY+aG3TVi70B19I=; b=v23azHXD7RdZx2tym5ms8i55WQmVAWDzl471PYTtoehlXj88UbXFelhmxN2T8Cdf+m 35zaD9p3jQtRNQw88cYJJ4hvIOT/C5djwF1lBUD2pe/ZxMQBUq3rSkOlDF/HUrMZGsCO hiL0NBu85gMevrRHul9GEfRMWV+AwHefrqc1p7yv4pP7BiC64jsTzzWNsjGp/fXkWbtU Ehz7vYws2S1mXfEwbWcW11wZ5Vqp4M9vmFywrjUmiWnHZPu4/w3Q5Cg0Yhwr2rrqtuiw 397xK9CgfnjwvsOTgCX27aPh3LAAxwiR4OwW5p5w+vnzeampfmhJunTemiYfyNakKXNu 7tsQ== MIME-Version: 1.0 Received: by 10.50.171.100 with SMTP id at4mr9679660igc.47.1346650048857; Sun, 02 Sep 2012 22:27:28 -0700 (PDT) Received: by 10.231.58.165 with HTTP; Sun, 2 Sep 2012 22:27:28 -0700 (PDT) In-Reply-To: References: Date: Mon, 3 Sep 2012 09:27:28 +0400 Message-ID: Subject: Re: force gc? From: Alexander Shutyaev To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=e89a8f234e5bcc868804c8c56598 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f234e5bcc868804c8c56598 Content-Type: text/plain; charset=UTF-8 Hi Peter, I don't compare it with PosgreSQL size, I just make some estimations.. This table / column family stores some xml documents with average raw size of 2Mb each and total size about 5Gb. However the space cassandra occupies on disc is 70Gb (after gc_grace was set to 0 and major compaction was run). Maybe there is some tool to analyze it? It would be great if I could somehow export each row of a column family into a separate file - so I could see their count and sizes. Is there any such tool? Or maybe you have some better thoughts... 2012/9/3 Peter Schuller > > I think that was clear from your post. I don't see a problem with your > > process. Setting gc grace to 0 and forcing compaction should indeed > > return you to the smallest possible on-disk size. > > (But may be unsafe as documented; can cause deleted data to pop back up, > etc.) > > -- > / Peter Schuller (@scode, http://worldmodscode.wordpress.com) > --e89a8f234e5bcc868804c8c56598 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Peter,

I don't compare it with PosgreSQL size, I = just make some estimations.. This table / column family stores some xml doc= uments with average raw size of 2Mb each and total size about 5Gb. However = the space cassandra occupies on disc is 70Gb (after gc_grace was set to 0 a= nd major compaction was run).

Maybe there is some tool to analyze it? It would be gre= at if I could somehow export each row of a column family into a separate fi= le - so I could see their count and sizes. Is there any such tool? Or maybe= you have some better thoughts...

2012/9/3 Peter Schuller <pet= er.schuller@infidyne.com>
> I think that was clear from your post. I don't s= ee a problem with your
> process. Setting gc grace to 0 and forcing compaction should indeed > return you to the smallest possible on-disk size.

(But may be unsafe as documented; can cause deleted data to pop back = up, etc.)

--
/ Peter Schuller (@scode, http://worldmodscode.wordpress.com)

--e89a8f234e5bcc868804c8c56598--