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 E24BB18D2A for ; Fri, 15 Jan 2016 21:34:59 +0000 (UTC) Received: (qmail 30383 invoked by uid 500); 15 Jan 2016 21:34:57 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 30350 invoked by uid 500); 15 Jan 2016 21:34:57 -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 30340 invoked by uid 99); 15 Jan 2016 21:34:57 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2016 21:34:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id E8DBEC0DB5 for ; Fri, 15 Jan 2016 21:34:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 8NUBpS2KE_4S for ; Fri, 15 Jan 2016 21:34:55 +0000 (UTC) Received: from mail-qk0-f173.google.com (mail-qk0-f173.google.com [209.85.220.173]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 772452026F for ; Fri, 15 Jan 2016 21:34:55 +0000 (UTC) Received: by mail-qk0-f173.google.com with SMTP id s5so10679212qkd.0 for ; Fri, 15 Jan 2016 13:34:55 -0800 (PST) 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=YVejVGe4oehhJSr7k9jqE7dZnHWAvxAzXfIVpMIexuA=; b=aoqIVdUQraXPlfGeKqzDXUgBLpCOOG6K+mkTCeC1xtXgoezzMjZYVzl906i90X8rik c2T8qIEldm9XcPIP8srqJyBTbz1z5haeRoYhSkf+SMkmidNkQba7V7/V3ln2QSx+ZS5G xU4CmDHSb9FHST7D9PN3llrGsgeGwDiPzVNHIIkiK0OUkTCLM4ruRepn92Fcyl7Opy85 aDv0fw2KrQtx8uMnkn8RGlc318XDP/YuffiSkAkv5YmlLh7XHNVoFZw6zbDYbCKHQEHJ Hxb+6XKHzgCjfv3B4VOl+pEyFvL/zx7kNunOPDb2BXDlgZUpU/bwIRqifHpN9CwVsc42 SvGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=YVejVGe4oehhJSr7k9jqE7dZnHWAvxAzXfIVpMIexuA=; b=iUMD/IZVhDbgG1gsvmfwcjsR7981rhF0675HVJTRR80K+J4hVO4NuJb23SwXHLOcQL HUcKX9QWCTJuDYRG2a4zjm2IA1he8hAY4iKOOg2cMUHj0Qp4ybOMKKdnLkwCqUJQIQ76 Bepw4L9GeNsPHgpLdG07RLiVyMIi2LeYhpq63DqVFaF2XXC21RaoJvwycUJRRUf6a3lU mU5RBBowdQuhBw9S4O/PLzrEhnXTNLF4Ufp1Uij8ncPAkUOoL2RI1KAuPTnOw4T4iYQt gGwxeqkq3YMIjknrriZFNrP5grDaJ+yASxB5AngJOnRbtsQuylJ7tlyFrv8Jd4IYCeJZ Jdzw== X-Gm-Message-State: ALoCoQni6QpixhpndZKALg+zKHOo7UnnKQFYTXDZ5X3atvr4XZR6WllwC/DYEjTrlCK5sEe1TzEKkM1Es7xahOrwUI69w0nOaw== MIME-Version: 1.0 X-Received: by 10.55.78.70 with SMTP id c67mr15887150qkb.37.1452893688534; Fri, 15 Jan 2016 13:34:48 -0800 (PST) Received: by 10.55.106.198 with HTTP; Fri, 15 Jan 2016 13:34:48 -0800 (PST) Received: by 10.55.106.198 with HTTP; Fri, 15 Jan 2016 13:34:48 -0800 (PST) In-Reply-To: References: Date: Fri, 15 Jan 2016 16:34:48 -0500 Message-ID: Subject: Re: compaction throughput From: Kai Wang To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a114a9bbe339fc90529662cf5 --001a114a9bbe339fc90529662cf5 Content-Type: text/plain; charset=UTF-8 I forget to mention I am using C* 2.2.4 On Jan 15, 2016 3:53 PM, "Kai Wang" wrote: > Hi, > > I am trying to figure out the bottleneck of compaction on my node. The > node is CentOS 7 and has SSDs installed. The table is configured to use > LCS. Here is my compaction related configs in cassandra.yaml: > > compaction_throughput_mb_per_sec: 160 > concurrent_compactors: 4 > > I insert about 10G of data and start observing compaction. > > *nodetool compaction* shows most of time there is one compaction. > Sometimes there are 3-4 (I suppose this is controlled by > concurrent_compactors). During the compaction, I see one CPU core is 100%. > At that point, disk IO is about 20-25 M/s write which is much lower than > the disk is capable of. Even when there are 4 compactions running, I see > CPU go to +400% but disk IO is still at 20-25M/s write. I use *nodetool > setcompactionthroughput 0* to disable the compaction throttle but don't > see any difference. > > Does this mean compaction is CPU bound? If so 20M/s is kinda low. Is there > anyway to improve the throughput? > > Thanks. > --001a114a9bbe339fc90529662cf5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I forget to mention I am using C* 2.2.4

On Jan 15, 2016 3:53 PM, "Kai Wang" &l= t;depend@gmail.com> wrote:
Hi,

I am trying to figure out the bottleneck of compact= ion on my node. The node is CentOS 7 and has SSDs installed. The table is c= onfigured to use LCS. Here is my compaction related configs in cassandra.ya= ml:

compaction_throughput_mb_per_sec: 160
concurrent_compactors: = 4

I insert about 10G of data and start observing compaction.

=
nodetool compaction shows most of time there is one compaction= . Sometimes there are 3-4 (I suppose this is controlled by concurrent_compa= ctors). During the compaction, I see one CPU core is 100%. At that point, d= isk IO is about 20-25 M/s write which is much lower than the disk is capabl= e of. Even when there are 4 compactions running, I see CPU go to +400% but = disk IO is still at 20-25M/s write. I use nodetool setcompactionthroughp= ut 0 to disable the compaction throttle but don't see any differenc= e.

Does this mean compaction is CPU bound? If so 20M/s is= kinda low. Is there anyway to improve the throughput?

Th= anks.
--001a114a9bbe339fc90529662cf5--