Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 71599 invoked from network); 29 Mar 2011 09:20:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Mar 2011 09:20:19 -0000 Received: (qmail 75386 invoked by uid 500); 29 Mar 2011 09:20:17 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 75356 invoked by uid 500); 29 Mar 2011 09:20:17 -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 75348 invoked by uid 99); 29 Mar 2011 09:20:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Mar 2011 09:20:17 +0000 X-ASF-Spam-Status: No, hits=3.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chensheng2010@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-iw0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Mar 2011 09:20:10 +0000 Received: by iwn39 with SMTP id 39so4635537iwn.31 for ; Tue, 29 Mar 2011 02:19:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=QJHUhthQmghVB01R9nSlD5hrlQjXTKBSuM6fn+z3xrM=; b=bBC75wKARewY/XbNmRO/yo+TM8GXEHPDwsA08fQfA538feogIxSXWzeYm1B6Esaqod NVXNTR3duS2WwFxI+xfh91cXZ9XikenSynld7gtAvM9ZhcA2WT17xMf+i9wZLbSUgVT4 LsY2ifWDrT62flnPCa/OMCe++QOxfbNZHcB2c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=e67C3HrJP1ICjqAJXZ5ALzZj7JZvTaHeL5ja/35Qey1H+KRpIlWY/2AZixTeTKBUvU SQLmpV+fblyQJZaSjvt7d3486ebfp2lgQMuFSU4HaNLx0Rh7yjhxmUMObP/Kd7uCDVzE HyPW5GfdIOQgCmQGZ0l7SDfNKJ1eIJZtU7Gsk= MIME-Version: 1.0 Received: by 10.42.156.199 with SMTP id a7mr8511508icx.417.1301390389120; Tue, 29 Mar 2011 02:19:49 -0700 (PDT) Received: by 10.42.165.67 with HTTP; Tue, 29 Mar 2011 02:19:49 -0700 (PDT) In-Reply-To: References: Date: Tue, 29 Mar 2011 17:19:49 +0800 Message-ID: Subject: Re: Compaction doubles disk space From: Sheng Chen To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=90e6ba613b94db8e75049f9b8f5a X-Virus-Checked: Checked by ClamAV on apache.org --90e6ba613b94db8e75049f9b8f5a Content-Type: text/plain; charset=ISO-8859-1 >From a previous thread of the same topic, I used a force GC and the extra spaces are released. What about my second question? 2011/3/29 Sheng Chen > I use 'nodetool compact' command to start a compaction. > I can understand that extra disk spaces are required during the compaction, > but after the compaction, the extra spaces are not released. > > Before compaction: > SSTable count: 10 > space used (live): 19G > space used (total): 21G > > After compaction: > sstable count: 1 > space used (live): 19G > space used (total): 42G > > > BTW, given that compaction requires double disk spaces, does it mean that I > should never reach half of my total disk space? > e.g. if I have 505GB data on 1TB disk, I cannot even delete any data at > all. > > > > > --90e6ba613b94db8e75049f9b8f5a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable >From a previous thread of the same topic, I used a force GC and the extra s= paces are released.

What about my second question?
=




2011/3/29 S= heng Chen <= chensheng2010@gmail.com>
I use 'nodetool compact' command to= start a compaction.=A0
I can understand that extra disk spaces are req= uired during the compaction, but after the compaction, the extra spaces are= not released.

Before compaction:
SSTable count: 10
space used (l= ive): 19G
space used (total): 21G

After = compaction:
sstable count: 1
space used (live): 19= G
space used (total): 42G


= BTW, given that compaction requires double disk spaces, does it mean that I= should never reach half of my total disk space?
e.g. if I have 5= 05GB data on 1TB disk, I cannot even delete any data at all.





--90e6ba613b94db8e75049f9b8f5a--