Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtpQt-0003qk-SG for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Feb 2019 07:58:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gtpQs-0001BC-9z for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Feb 2019 07:58:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtpQr-0001B0-7w for pgsql-hackers@lists.postgresql.org; Wed, 13 Feb 2019 07:58:14 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtpQj-0003co-PE for pgsql-hackers@postgresql.org; Wed, 13 Feb 2019 07:58:12 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 3652122AAE; Wed, 13 Feb 2019 02:58:04 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 13 Feb 2019 02:58:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=C80xG8LoPVugCH8vfSM6TWyYC/g 0SvkXxakD/D3unZQ=; b=m7oEplqSaQu64g5nAIk3N5B6A/9mhvJLlCyjxtZIhPa lgBvpJIQjwPZoQ7UP1Fu8fFkfX+Po27uQanpF9dYSnasFAYpnsoxKG+prhGgm5C8 nL6QFZ9FPLslA/e+efC5cqsYiapQvTRVniZgpryPoe9nhyH9XKzurFJ/4FMRAoNf DM7vye/AwnlKhUB/kZ+OX38VG0SSie6b9mUiDB9STcShq18wmcJZeGifI26RnX3u sRHnBTgAKQ9ofn0PjfVNdYzx9ob76xy2qu2WDrDdqWWxGgzaWUZx7V6DMvHR/LcL uHHS5XQvloltw1xK2cxFxG80FB9gcbDwqaicG48FfbA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=C80xG8 LoPVugCH8vfSM6TWyYC/g0SvkXxakD/D3unZQ=; b=H4rpkvzuquvd5jV+eG79Y4 1XnZHRYDHHcUR8mAR/aLT29AMQHMWal5zvKRDQUSAz7+w292md6g31mMlSsFzVif cmlNqN+TrDSWxkR/qjSHjgg9ebdFqngHT7K3Rfc6QSJrL3mUhv97Wjt+FUQQ3FEr nxAfFMYvWzMBAUSgysa/Ri5ppgblZuLHoDO+fqIPcQtQNbj3tBM/rG5lBv1kUbsy cjFYlMfrLIXDjz/GrK4M4Ni8ZYMDhIbAzgFbB+hZxzWtd6rbLtnU5IGQNQ5PBozU Mdq//eB3mkyVmd3ZTP6uL0X/QDMsB4HJqWBNNIAu3ObbjqfIegolwwISAcqAX8qA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledruddtvddgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecu fedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvffukf hfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgvshcuhfhrvghunhguuceo rghnughrvghssegrnhgrrhgriigvlhdruggvqeenucfkphepudejvddrheeirdduvddrie ejnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghlrdgu vgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (unknown [172.56.12.67]) by mail.messagingengine.com (Postfix) with ESMTPA id 03CCB1030F; Wed, 13 Feb 2019 02:58:02 -0500 (EST) Date: Tue, 12 Feb 2019 23:06:17 -0800 From: Andres Freund To: Alvaro Herrera Cc: Tom Lane , Thomas Munro , pgsql-hackers@postgresql.org Subject: Re: reducing isolation tests runtime Message-ID: <20190213070617.hk4d3yggicwuy2g5@alap3.anarazel.de> References: <7752.1516892479@sss.pgh.pa.us> <20180125203415.zdoyjqpx5nzwcryk@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180125203415.zdoyjqpx5nzwcryk@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2018-01-25 17:34:15 -0300, Alvaro Herrera wrote: > Tom Lane wrote: > > Alvaro Herrera writes: > > > > I think we could solve this by putting in the same parallel group only > > > slow tests that mostly sleeps, ie. nothing that would monopolize CPU for > > > long enough to cause a problem. Concretely: > > > test: timeouts tuplelock-update deadlock-hard deadlock-soft-2 > > > > OK, but there'd better be a comment there explaining the concern > > very precisely, or somebody will break it. > > Here's a concrete proposal. Runtime is 45.7 seconds on my laptop. It > can be further reduced, but not by more than a second or two unless you > get in the business of modifying other tests. (I only modified > deadlock-soft-2 because it saves 5 seconds). I'm working an updated version of this. Adding the new tests is a bit painful because of conflicting names making it harder than necessary to schedule tests. While it's possible to work out a schedule that doesn't conflict, it's pretty annoying to do and more importantly seems fragile - it's very easy to create schedules that succeed on one machine, and not on another, based on how slow which tests are. I'm more inclined to be a bit more aggressive in renaming tables - there's not much point in having a lot of "foo"s around. So I'm inclined to rename some of the names that are more likely to conflict. If we agree on doing that, I'd like to do that first, and commit that more aggressively than the schedule itself. An alternative approach would be to have isolationtester automatically create a schema with the specfile's name, and place it in the search path. But that'd make it impossible to use isolationtester against a standby - which I think we currently don't do, but which probably would be a good idea. With regard to the schedule, I'm inclined to order it so that faster test groups are earlier on, just to make it more likely to reach the tests one is debugging faster. Does that sound sane? Do we want to maintain a serial version of the schedule too? I'm wondering if we should just generate both the isolationtester and plain regression test schedule by either adding an option to pg_regress that serializes test groups, or by generating the serial schedule file in a few lines of perl. Greetings, Andres Freund