From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org
Subject: Re: reducing isolation tests runtime
Date: Thu, 25 Jan 2018 17:34:15 -0300
Message-ID: <20180125203415.zdoyjqpx5nzwcryk@alvherre.pgsql> (raw)
In-Reply-To: <7752.1516892479@sss.pgh.pa.us>
Tom Lane wrote:
> Alvaro Herrera <alvherre@alvh.no-ip.org> 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).
Admittedly the new isolation_schedule file is a bit ugly.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Attachments:
0001-Parallelize-isolation-tests-a-bit.patch (text/plain, 0B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: alvherre@alvh.no-ip.org, tgl@sss.pgh.pa.us, thomas.munro@enterprisedb.com, andres@anarazel.de, pgsql-hackers@postgresql.org
Subject: Re: reducing isolation tests runtime
In-Reply-To: <20180125203415.zdoyjqpx5nzwcryk@alvherre.pgsql>
References: <7752.1516892479@sss.pgh.pa.us> <20180125203415.zdoyjqpx5nzwcryk@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox