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 5F6A8D038 for ; Fri, 13 Jul 2012 03:48:55 +0000 (UTC) Received: (qmail 79339 invoked by uid 500); 13 Jul 2012 03:48:53 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 79123 invoked by uid 500); 13 Jul 2012 03:48:52 -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 79047 invoked by uid 99); 13 Jul 2012 03:48:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2012 03:48:49 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rohit2412@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-ob0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jul 2012 03:48:41 +0000 Received: by obbwc20 with SMTP id wc20so4550953obb.31 for ; Thu, 12 Jul 2012 20:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=AHgQZW1CMk+Z07a9XGzkq5ba9OwlOdgKopfeIqQBwRU=; b=krtmSeoi7CR2+ATXOHfj0BrhcDQK1UMiBeULXKeUBKln/9U8to0yahJJSFNi0iCrbc TNUrkILYZ3S91OB89ye32PH6pHpFnfNchIEpClwUmp3jgHVaQ4srx9sy6qhetW2qD6Nj uwxVfls7aYKThgXSHMBBaSNAlaoPZ0HnNv774xJaO7qffiB5/tXvXH1uxINtbb57hp8e OwOe5Dr1J+SnGqE/hPwzCDJFyifg5lEqjRNIh33B9illEASJp/pahm5PJTn1Iy2VNgTm 3O+quAEvgPrIDcp+NbP+wLBjX9rOYcgw+0gBvLJTduUX9Y2s6IOKSh7kgoqCcxhFxaoh J0TA== MIME-Version: 1.0 Received: by 10.60.21.103 with SMTP id u7mr934279oee.49.1342151300714; Thu, 12 Jul 2012 20:48:20 -0700 (PDT) Received: by 10.76.93.37 with HTTP; Thu, 12 Jul 2012 20:48:20 -0700 (PDT) Date: Fri, 13 Jul 2012 09:18:20 +0530 Message-ID: Subject: High RecentWriteLatencyMicro From: rohit bhatia To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Hi As I understand that writes in cassandra are directly pushed to memory and using counters with CL.ONE shouldn't take the read latency for counters in account. So Writes for incrementing counters with CL.ONE should basically be really fast. But in my 8 node cluster(16 core/32G ram/cassandra1.0.5/java7 each) with RF=2, At a traffic of 55k qps = 14k increments per node/7k write requests per node, the write latency(from jmx) increases to around 7-8 ms from the low traffic value of 0.5ms. The Nodes aren't even pushed with absent I/O, lots of free RAM and 30% CPU idle time/OS Load 20. The write latency by cfstats (supposedly the latency for 1 node to increment its counter) is a small amount (< 0.05ms). 1) Is the whole of 7-8ms being spent in thrift overheads and Scheduling delays ? (there is insignificant .1ms ping time between machines) 2) Do keeping a large number of CF(17 in our case) adversely affect write performance? (except from the extreme flushing scenario) 3) I see a lot of threads(4,000-10,000) with names like "pool-2-thread-*" (pointed out as client-connection-threads on the mailing list before) periodically forming up. but with idle cpu time and zero pending tasks in tpstats, why do requests keep piling up (GC stops threads for 100ms every 1-2 seconds, effectively pausing cassandra 5-10% of its time, but this doesn't seem to be the reason) Thanks Rohit