From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3449 invoked by alias); 12 Feb 2013 20:13:14 -0000 Received: (qmail 3411 invoked by uid 22791); 12 Feb 2013 20:13:09 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_SPAMHAUS_DROP,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 12 Feb 2013 20:12:56 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r1CKCse0017605 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 12 Feb 2013 15:12:54 -0500 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r1CKCqgt008374 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 12 Feb 2013 15:12:53 -0500 From: Tom Tromey To: Joel Brobecker Cc: Jan Kratochvil , gdb-patches@sourceware.org Subject: Re: [patch] testsuite: pthread_cond_wait.exp: Avoid a race References: <20130212170358.GA5633@host2.jankratochvil.net> <20130212172301.GH17107@adacore.com> <20130212172950.GA6877@host2.jankratochvil.net> <20130212173855.GI17107@adacore.com> Date: Tue, 12 Feb 2013 20:13:00 -0000 In-Reply-To: <20130212173855.GI17107@adacore.com> (Joel Brobecker's message of "Tue, 12 Feb 2013 09:38:55 -0800") Message-ID: <8738x1nvej.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2013-02/txt/msg00287.txt.bz2 Joel> OK, it will be fine, I suppose, especially if we can file-parallelize Joel> the testsuite. I have it working -- not in my totally ideal form, but I'm reaching diminishing returns and also boredom. I need to look into some remote-testing things, and also write up an RFC about changes to the tests. I keep postponing this, mostly due to unrelated things, but I'll get to it sooner rather than later. Anyway, as part of this, I looked at test suite timings. I ran each .exp file separately and looked at the elapsed time it took. Some interesting bits: octave:3> mean(Tdata) ans = 1.1680 octave:4> min(Tdata) ans = 0.070000 octave:5> max(Tdata) ans = 80.780 octave:6> std(Tdata) ans = 4.1273 So, most tests are quite fast, but we have some huge outliers. The 80 second one is break-interp.exp, but there are others, see appended. Crunching the numbers, something I'm not totally confident I did correctly, says that we can scale the test suite up to about -j12. After that break-interp will start dominating the time. Tom All times further than 2 standard deviations from the mean: octave> sort(Tdata(find(Tdata > mean(Tdata) + 2*std(Tdata))), 'descend') ans = 80.7800 60.4900 40.2700 34.3500 22.0500 20.0000 19.8900 19.6500 19.3000 15.4500 14.7300 14.5400 13.5700 10.2300 9.9100 9.7000