Re: [PATCH] pgbench --throttle (submission 7 - with lag measurement)

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: Greg Smith <greg(at)2ndQuadrant(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] pgbench --throttle (submission 7 - with lag measurement)
Date: 2013-07-13 16:13:13
Message-ID: alpine.DEB.2.02.1307131759050.3991@localhost6.localdomain6
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Hello Greg,

> There's a refactoring possible here that seems to make this whole class of
> problem go away. If I change pgbench so that PQfinish isn't called for any
> client until *all* of the clients are actually finished with transactions,
> the whole issue goes away.

Sure. If the explanation is that because of the load the OS is just
switching to a "postgres" process while PQfinish is being called, then
waiting for the end of other transactions means that "postgres" processes
don't have anything to do anymore, so process switching is much less
likely, so nothing would show up... However this is really hiding the
underlying fact from the measures rather than solving anything, IMHO.

> I'm going to package that hack the right way into its own little change,
> revisit the throttling code, and then this all should wrap up nicely.

My 0.02€: if it means adding complexity to the pgbench code, I think that
it is not worth it. The point of pgbench is to look at a steady state, not
to end in the most graceful possible way as far as measures are concerned.
On the other end, if it does not add too much complexity, why not!

> I'd like to get this one out of the commitfest so I can move onto
> looking at something else.

Thanks.

--
Fabien.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2013-07-13 17:13:21 Re: Regex pattern with shorter back reference does NOT work as expected
Previous Message Greg Smith 2013-07-13 15:37:49 Re: [PATCH] pgbench --throttle (submission 7 - with lag measurement)