Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 78947 invoked from network); 8 Dec 2009 16:16:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Dec 2009 16:16:38 -0000 Received: (qmail 18140 invoked by uid 500); 8 Dec 2009 16:16:38 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 18107 invoked by uid 500); 8 Dec 2009 16:16:37 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 18098 invoked by uid 99); 8 Dec 2009 16:16:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 16:16:37 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: unknown (nike.apache.org: error in processing during lookup of timo.nentwig@wooga.net) Received: from [74.125.78.147] (HELO ey-out-1920.google.com) (74.125.78.147) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 16:16:28 +0000 Received: by ey-out-1920.google.com with SMTP id 3so644558eyh.8 for ; Tue, 08 Dec 2009 08:16:07 -0800 (PST) Received: by 10.213.104.78 with SMTP id n14mr6951450ebo.98.1260288967595; Tue, 08 Dec 2009 08:16:07 -0800 (PST) Received: from ?192.168.0.177? (i59F73AFA.versanet.de [89.247.58.250]) by mx.google.com with ESMTPS id 23sm10829024eya.3.2009.12.08.08.16.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Dec 2009 08:16:06 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1077) Subject: Re: Very simple benchmark - are this typical numbers? From: Timo Nentwig In-Reply-To: Date: Tue, 8 Dec 2009 17:16:04 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <93290460-A0BF-4501-8F52-9FA95B7A9549@wooga.net> References: <58E59B99-799C-4A82-B446-E92E6C68CF33@wooga.net> To: cassandra-user@incubator.apache.org X-Mailer: Apple Mail (2.1077) X-Virus-Checked: Checked by ClamAV on apache.org On Dec 7, 2009, at 7:23 PM, Jonathan Ellis wrote: > same thing, you are going to need multiple threads to max it out I created up to 100 threads and read randomly. Some speed up but not = actually mentionable. The threads didn't load the CPU mentionably = either. I noticed that the thread dump was full of Thift = (TBinaryProtocol something) InputStream.read(), 10MiB constant read from = HD. > but yes, reads are typically slower than writes in cassandra because > of how the log-based merge structures work >=20 > On Mon, Dec 7, 2009 at 11:09 AM, Timo Nentwig = wrote: >>=20 >> On Dec 7, 2009, at 5:59 PM, Jonathan Ellis wrote: >>=20 >>> yes and no -- that's about 4200/s, which is typical for only a = single >>=20 >> When writing, yes. But I would expect reading to be much faster (?). = Re-executing the read test doesn't speed up things either (I/O caches). >>=20 >>> thread but 1/3 to 1/5 of what you'd expect it to max out (on our >>> quad-core test boxes) when you add client threads >>>=20 >>> On Mon, Dec 7, 2009 at 10:38 AM, Timo Nentwig = wrote: >>>> Hi! >>>>=20 >>>> I just downloaded, installed, start cassandra and ran very simple = "benchmark": write n times something with = key=3D=3Dvalue=3D=3DtestInsertAndGetAndRemove_n (one thread). >>>>=20 >>>> For n=3D=3D10 million on a 7200rpm HDD (4G RAM - there should have = be "reasonably" free mem however I didn't check) this took 40min = (insert()ing one after another). Reading them one by one in sequence = delivers about 100/s, reading in 1.000er batches (i.e. multigetColumn()) = takes 5-10s (depending on n, the higher the slower). >>>>=20 >>>> Are this typical numbers for cassandra (0.5)? I actually took the = configuration as it was. >>=20 >>=20