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 DE60D7B03 for ; Thu, 6 Oct 2011 15:50:43 +0000 (UTC) Received: (qmail 4255 invoked by uid 500); 6 Oct 2011 15:50:41 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 4229 invoked by uid 500); 6 Oct 2011 15:50:41 -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 4221 invoked by uid 99); 6 Oct 2011 15:50:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2011 15:50:41 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [85.17.83.17] (HELO mail2.unitedgames.com) (85.17.83.17) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2011 15:50:35 +0000 Received: from localhost (localhost [127.0.0.1]) by mail2.unitedgames.com (Postfix) with ESMTP id 790945EBF9BF for ; Thu, 6 Oct 2011 17:50:14 +0200 (CEST) Received: from mail2.unitedgames.com ([127.0.0.1]) by localhost (mail2.unitedgames.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6fVymTvZy1Lh for ; Thu, 6 Oct 2011 17:50:14 +0200 (CEST) Received: from [192.168.1.90] (unknown [188.204.191.147]) by mail2.unitedgames.com (Postfix) with ESMTP id 0F3FA5EBF99A for ; Thu, 6 Oct 2011 17:50:14 +0200 (CEST) Message-ID: <4E8DCEE9.2080105@unitedgames.com> Date: Thu, 06 Oct 2011 17:53:13 +0200 From: Stefan Reek User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110307 Iceowl/1.0b1 Icedove/3.0.11 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: Re: Batch writes getting slow References: <4E8DC49B.9040103@unitedgames.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 10/06/2011 05:26 PM, Jonathan Ellis wrote: > On Thu, Oct 6, 2011 at 10:09 AM, Stefan Reek wrote: > >> I can see that during the times the writing gets slow there are ~3000 >> pending tasks, but they disappear quickly. >> > Your best bet is to make the write load more constant and less bursty. > If you really do need to handle bursts like that with low latency, > then you probably do need more hardware. (But make sure you've > covered the basics first, like putting commitlog on a separate > device.) > > We really need to make sure that all writes are succesfully written before the next batch has to be written, so the bursts are unavoidable I think. We do have the commitlogs on separate devices, are there any other basics that I could have forgotten, or any parameters that are important for write performance? As I understand it the flush thresholds mainly influence read performance instead of write performance. Would it make any difference to write the data with more threads from the client, as that's something we can easily tune. >> I can also see that Cassandra gradually takes more and more memory, >> eventually filling up the 16GB that is assigned to it, although it >> doesn't go out of memory. >> Is this normal behaviour? I expected to see more of a sawtooth... >> > Yes, that is normal from the OS's view of the JVM. If you want to see > the sawtooth you'd need to look at the JVM's internal metrics, e.g., > with jconsole. > > I can see the sawtooth in the JVM only for Par Eden and Par Survivor space, the CMS Old Gen space just keeps on growing though. Anyway, thanks for the quick reply. Regards, Stefan