Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D861211F44 for ; Sun, 21 Sep 2014 17:41:51 +0000 (UTC) Received: (qmail 2073 invoked by uid 500); 21 Sep 2014 17:41:51 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 1943 invoked by uid 500); 21 Sep 2014 17:41:51 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 1931 invoked by uid 99); 21 Sep 2014 17:41:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Sep 2014 17:41:51 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of phil.steitz@gmail.com designates 209.85.220.50 as permitted sender) Received: from [209.85.220.50] (HELO mail-pa0-f50.google.com) (209.85.220.50) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Sep 2014 17:41:44 +0000 Received: by mail-pa0-f50.google.com with SMTP id rd3so1585416pab.9 for ; Sun, 21 Sep 2014 10:41:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=yIWNQABt+ZC8ujGNwdakcUCfzOwB0Qzd5YLlTpTbXgI=; b=TwN4QO4WyDhK1p7j5Ne9lbRpUf8MacMEwWXW0IBZyI11xtBZZ0QIJJjtJkhW0NgSCh c6qtPNz6TFfIuJ/BX/k4rQ8oCAH0MEAyh+ubU/65SnSKfgFaYDulV+LGbp/Dk9chHXGz g/M7tK2XrAGd8EC8Hlr6Gxk9tyIxaKJ5uG4cnjJwjI02BUZBFZWSGsvXQDB/r+1QDD8g kD5lTb9Vdo8pHAd7Q4acyL+X0tXQkMEVDDv5mNRHxaTuHo4iYdZrQrA+9TD2RgFzwIU4 Bf/why5lhgj/TBzhdNOK+RMk1f1QsxflYLSByiJrKIzvdChhUdjYT4RZsQIBKaDmcuZj G92g== X-Received: by 10.70.8.195 with SMTP id t3mr17445889pda.62.1411321284232; Sun, 21 Sep 2014 10:41:24 -0700 (PDT) Received: from psteitz-mbp.local (ip72-222-135-20.ph.ph.cox.net. [72.222.135.20]) by mx.google.com with ESMTPSA id b14sm7252692pdk.2.2014.09.21.10.41.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Sep 2014 10:41:22 -0700 (PDT) Message-ID: <541F0DC0.9080501@gmail.com> Date: Sun, 21 Sep 2014 10:41:20 -0700 From: Phil Steitz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: Commons Developers List Subject: Re: [Pool] Performance Tests for Pool-277 References: <20140920075013.0000070d.ecki@zusammenkunft.net> <541F0B49.8060905@gmail.com> In-Reply-To: <541F0B49.8060905@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 9/21/14 10:30 AM, Phil Steitz wrote: > On 9/19/14 10:50 PM, Bernd Eckenfels wrote: >> Hello, >> >> re https://issues.apache.org/jira/browse/POOL-277 >> >> I would like to commit VFS-277 fix (nonlockstats2.patch). However before >> I do that, I would like to test if it is really a perfomrmance >> improvement. Lucas confirms it helps in his scenario. >> >> I have run the included PerformanceTest, but the results have been >> indifferent. Are those tests reliable? Can somebody with some >> experience re-run them on their machine? (I somewhat feel the need to >> provide a JMH test :) > I have started running some performance tests using commons > performance (sandbox). I mostly use [performance] to get races or > other bugs to happen, but it does give an idea of gross performance > differences. So far, I have not been able to detect any performance > benefit from the patch. That does not mean that there is no > benefit, especially since I have only 4 cores on the test box. I > have some longer-running tests running now and will report back if I > find anything. > > Even if the patch does improve performance, I am -0 on applying as > is, as the implementation appears to change the meaning of > getMaxBorrowWaitTimeMillis. The current implementation returns the > max since the pool was created, not a rolling window of recent > values, as the patch appears to do (unless I am missing something). > The unit tests for reported JMX stats are pretty weak, so we need to > be careful relying on them to confirm correctness. Looking more carefully at the patch, I think what I stated above is incorrect - i.e., the global max should be returned, so that is not a blocker here. Sorry I misunderstood the code. Now we need to confirm that there is in fact a performance benefit. Also, we should look at the impact on the getters performance - I suspect they will be a little slower. Phil > > Phil >> My proposed patch: >> https://issues.apache.org/jira/secure/attachment/12670185/nolockstats2.patch >> >> Gruss >> Bernd >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >> For additional commands, e-mail: dev-help@commons.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org