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 3B0BA98B1 for ; Mon, 4 Jun 2012 10:14:10 +0000 (UTC) Received: (qmail 91298 invoked by uid 500); 4 Jun 2012 10:14:08 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 91041 invoked by uid 500); 4 Jun 2012 10:14:07 -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 91013 invoked by uid 99); 4 Jun 2012 10:14:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2012 10:14:06 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ruslan.usifov@gmail.com designates 209.85.161.172 as permitted sender) Received: from [209.85.161.172] (HELO mail-gg0-f172.google.com) (209.85.161.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2012 10:14:00 +0000 Received: by ggnc4 with SMTP id c4so3168084ggn.31 for ; Mon, 04 Jun 2012 03:13:39 -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:content-transfer-encoding; bh=tGbDNUKbzdXSLrZgDBZWSTg3cHXM4LQ1r8CYy+vqsi8=; b=CERkPpuK65QYp9LEot3qlTwwd94GHRfT310C/MJvf+27jvODMi752U+tg9JfRHzIrD mohJvIia/kiiYTBrU+emEH6WmLfYR/ChjHOWg45kCiRxGAEj35usMezGaRgTR2hPaSU6 i0OTSGPu+CrpSSq75IstXw0HNiqu40U086Yw+by6wKyKIiw2+avJVOOcxSmbAh6+gB/B dezW0JFGRJWLzZk4mhMgMbOYzdO8TRn9j0NyByUQMhMz2QVRg/A8cPXCybv614UDNfZi baS+a2/3AhYAHP1c/roij3a4F8fgh6DXFIyMdXgvnDlc3fRdawVvCNYj1DItwvQtknXx G6uQ== MIME-Version: 1.0 Received: by 10.236.46.74 with SMTP id q50mr6620698yhb.30.1338804819218; Mon, 04 Jun 2012 03:13:39 -0700 (PDT) Received: by 10.236.170.196 with HTTP; Mon, 4 Jun 2012 03:13:39 -0700 (PDT) In-Reply-To: <656E8470-3932-472A-9A6B-1E294391C0D9@thelastpickle.com> References: <656E8470-3932-472A-9A6B-1E294391C0D9@thelastpickle.com> Date: Mon, 4 Jun 2012 14:13:39 +0400 Message-ID: Subject: Re: row_cache_provider = 'SerializingCacheProvider' From: ruslan usifov To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I have setup 5GB of JavaHeap wit follow tuning: MAX_HEAP_SIZE=3D"5G" HEAP_NEWSIZE=3D"800M" JVM_OPTS=3D"$JVM_OPTS -XX:+UseParNewGC" JVM_OPTS=3D"$JVM_OPTS -XX:+UseConcMarkSweepGC" JVM_OPTS=3D"$JVM_OPTS -XX:+CMSParallelRemarkEnabled" JVM_OPTS=3D"$JVM_OPTS -XX:SurvivorRatio=3D8" JVM_OPTS=3D"$JVM_OPTS -XX:MaxTenuringThreshold=3D5" JVM_OPTS=3D"$JVM_OPTS -XX:CMSInitiatingOccupancyFraction=3D65" JVM_OPTS=3D"$JVM_OPTS -XX:+UseCMSInitiatingOccupancyOnly" JVM_OPTS=3D"$JVM_OPTS -XX:CMSFullGCsBeforeCompaction=3D1" Also I set up 2GB to memtables (memtable_total_space_in_mb: 2048) My avg heap usage (nodetool -h localhost info): 3G Based on "nodetool -h localhost cfhistograms" i calc avg row size 70KB I setup row cache only for one CF with follow settings: update column family building with rows_cached=3D10000 and row_cache_provider=3D'SerializingCacheProvider'; When i setup row cache i got promotion failure in GC (with stop the world pause about 30secs) with almost HEAP filled. I very confused with this behavior. PS: i use cassandra 1.0.10, with JNA 3.4.0 on ubuntu lucid (kernel 2.6.32-4= 1) 2012/6/4 aaron morton : > Yes=A0SerializingCacheProvider is the off heap caching provider. > > Can you do some more digging into what is using the heap ? > > Cheers > A > > ----------------- > Aaron Morton > Freelance Developer > @aaronmorton > http://www.thelastpickle.com > > On 1/06/2012, at 9:52 PM, ruslan usifov wrote: > > Hello > > I begin use SerializingCacheProvider for rows cashing, and got > extremely JAVA heap grows. But i think that this cache provider > doesn't use JAVA heap > >