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 B53DB7E32 for ; Fri, 30 Sep 2011 17:18:13 +0000 (UTC) Received: (qmail 34087 invoked by uid 500); 30 Sep 2011 17:18:11 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 34038 invoked by uid 500); 30 Sep 2011 17:18:11 -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 33970 invoked by uid 99); 30 Sep 2011 17:18:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2011 17:18:11 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,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 jbellis@gmail.com designates 209.85.215.172 as permitted sender) Received: from [209.85.215.172] (HELO mail-ey0-f172.google.com) (209.85.215.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2011 17:18:05 +0000 Received: by eye4 with SMTP id 4so1457347eye.31 for ; Fri, 30 Sep 2011 10:17:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=tx/VAWjLcDIKBJQadrkqYrezQUqteMxGtD5cAfX5iQI=; b=WpqKe92MBadNCCb4REVfvAyxnt2fVvnCpzRblRnDOQJli/xJiw9Ud360dXIpO231e5 SO6lzzh7NKJRmI8l8HZt31tZqmCxagVo9KElhINNWfyVUUwSv9ipAYMTGxV7zRAY2wlr RXn3oG6X/ELephX17UnDu7hWB328crYrb0a8k= Received: by 10.213.105.82 with SMTP id s18mr19531ebo.1.1317403065142; Fri, 30 Sep 2011 10:17:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.16.193 with HTTP; Fri, 30 Sep 2011 10:17:25 -0700 (PDT) In-Reply-To: References: <466831341-1317401129-cardhu_decombobulator_blackberry.rim.net-657950712-@b18.c2.bise3.blackberry> From: Jonathan Ellis Date: Fri, 30 Sep 2011 12:17:25 -0500 Message-ID: Subject: Re: release mmap memory through jconsole? To: user@cassandra.apache.org Content-Type: text/plain; charset=Big5 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I think we found why you're seeing lots of young gen-based GC pauses... :) 2011/9/30 Yang : > why? > > I thought bigger young gen would allow more objects to die (become > non-reachable) before minor collection, so the minor collection cost > is low. particularly it would allow you to merge more updates and not > consume memory (since old objects are released on GC) > > bigger old gen would allow you to accumulate more rows into your > memtable, so you can avoid > later compaction cost. > > > if not giving it to heap, then it's a choice between os buffer and > cassandra row cache. I think row cache is definitely better since you > avoid the cost of serializing/deserializing; well this is assuming > that your access pattern is random though, otherwise OS cache has the > benefit of spacial locality (it loads blocks at once instead of a > single row). > > thanks > Yang > > 2011/9/30 Norman Maurer : >> I would also not use such a big heap. I think most people will tell >> you that 12G -16G is max to use. >> >> Bye, >> Norman >> >> 2011/9/30 Yi Yang : >>> It is meaningless to release such memory. The counting includes the dat= a you reached in the SSTable. Those data locates on your hard drive. So it = is not the RAM spaces you have actually used. >>> >>> -Y. >>> ------Original Message------ >>> From: Yang >>> To: user@cassandra.apache.org >>> ReplyTo: user@cassandra.apache.org >>> Subject: release mmap memory through jconsole? >>> Sent: Oct 1, 2011 12:40 AM >>> >>> I gave an -Xmx50G to my Cassandra java processs, now "top" shows its >>> virtual memory address space is 82G, is there >>> a way to release that memory through JMX ? >>> >>> Thanks >>> Yang >>> >>> =B1q=A7=DA=AA=BA BlackBerry(R) =B5L=BDu=B8=CB=B8m >> > --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of DataStax, the source for professional Cassandra support http://www.datastax.com