Return-Path: Delivered-To: apmail-qpid-users-archive@www.apache.org Received: (qmail 50022 invoked from network); 23 Jan 2009 21:58:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jan 2009 21:58:09 -0000 Received: (qmail 46945 invoked by uid 500); 23 Jan 2009 21:58:09 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 46823 invoked by uid 500); 23 Jan 2009 21:58:09 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 46812 invoked by uid 99); 23 Jan 2009 21:58:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jan 2009 13:58:09 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rajith77@gmail.com designates 209.85.200.170 as permitted sender) Received: from [209.85.200.170] (HELO wf-out-1314.google.com) (209.85.200.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jan 2009 21:58:01 +0000 Received: by wf-out-1314.google.com with SMTP id 28so4913021wfc.24 for ; Fri, 23 Jan 2009 13:57:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=ny33cS3m4ety+pRiydGxfkNSA3hJY1+DEHRVFXfdk6Q=; b=eJBnjmxKxao99cY59gowLdZ+apzTIsUtkGC44iirFjfsFB7fht6GeTWAx7x69n0cF0 juhPryz4p3NFXSC59Zo0ni/vL9RqNZiUxRjPCZaEcIGnubLU00ScTy1l7ufnyB3Erqij DQXSS3hkXRlRMb5sdzl5vjpqFIS60JeQicZQY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=aFgGg3xArLpvOUqiW9hnw25laYILHgetKyOQJ61V7k78xQvb0gKfTmadc2r/tVxHLc 6i7CI9ejuMVwqCYIEwZED6gy+sgncyvBcOgs/2TXmsJR6YF3bZFFxoVHdk+V0X+1c0U7 s+nuq/A5hQEpzZKVGZhtKqbtsQ/DPYjcQyZSk= MIME-Version: 1.0 Received: by 10.142.125.4 with SMTP id x4mr882579wfc.233.1232747861074; Fri, 23 Jan 2009 13:57:41 -0800 (PST) In-Reply-To: <1232747040.6488.39.camel@beef.Belkin> References: <1232747040.6488.39.camel@beef.Belkin> Date: Fri, 23 Jan 2009 16:57:41 -0500 Message-ID: Subject: Re: C++ broker - odd performance issue From: Rajith Attapattu To: users@qpid.apache.org Content-Type: multipart/alternative; boundary=000e0cd2287c5b631704612d7aa9 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd2287c5b631704612d7aa9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello Rob, Between two tests do you wait until the queue is completely drained? That is when you run the large message test, do you wait untill all those messages are consumed before you start the small message test? What is happening is that during the large messages test, the consumer will take more time to drain the queues and there will be a backlog of messages in the broker. When that happens the memory consumption will grow and will likely slow the broker down. It is best to build your tests with feedback, i.e not start the small message test until the large message test is complete. Otherwise your small message test results will be skewed by the load induced by the large message test. And an even better way to do it is to have more a fine grained feedback loop. That is you send in batches of x messages and you wait for confirmation from the consumer side that it has received all x. Once you receive that you can send the next batch of x messages. Hope this helps. Regards, Rajith On Fri, Jan 23, 2009 at 4:44 PM, Rob Springer wrote: > Hey everyone, > > I'm running some lame performance tests with qpid, and I've come across > some odd behavior. I'm wondering if I'm doing something wrong, if I've > found a bug, or if this is a design decision. > > My tests are rather simple, consisting of sending and receiving a large > number of messages of a given size (between 8 and 8192 bytes). When I > run an 8 byte (per message, 16384 messages total) test followed by a > 8192 byte (per message, 12800 messages total) test, all is well; the 8 > byte test runs in roughly 2.5 seconds. > > If I run an 8192 byte test followed by an 8 byte test, however, the 8 > byte test takes roughly 6 seconds. This happens every for test from > then on (i.e., it's not just random noise). > > It does appear that the size of the large message affects the slowdown. > In more concrete terms, if my larger test is 4096 bytes rather than > 8192, the 8 byte test will only take ~5 seconds instead of 6. > > The results don't seem to be affected by wait time between test > executions, between number of 8 byte tests, or any other feature. As > far as I can tell, if a large message is sent, then smaller message > performance is permanently degraded (until the broker is restarted). > > Can anyone shed any light on this? I have a tarball of a sample test > and run script, if anyone would like to see them (where should I put > them?). > > Thanks a ton (hopefully in advance), > Rob > > > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:users-subscribe@qpid.apache.org > > -- Regards, Rajith Attapattu Red Hat http://rajith.2rlabs.com/ --000e0cd2287c5b631704612d7aa9--