Re: Better way of dealing with pgstat wait timeout during buildfarm runs?

From: Tomas Vondra <tv(at)fuzzy(dot)cz>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Better way of dealing with pgstat wait timeout during buildfarm runs?
Date: 2014-12-25 21:09:51
Message-ID: 549C7D1F.1000904@fuzzy.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 25.12.2014 20:36, Tom Lane wrote:
>
> Yeah, I've been getting more annoyed by that too lately. I keep
> wondering though whether there's an actual bug underneath that
> behavior that we're failing to see. PGSTAT_MAX_WAIT_TIME is already
> 10 seconds; it's hard to credit that increasing it still further
> would be "fixing" anything. The other change would also mainly just
> sweep the issue under the rug, if there is any issue and it's not
> just that we're overloading underpowered buildfarm machines. (Maybe a
> better fix would be to reduce MAX_CONNECTIONS for the tests on these
> machines?)

I agree that increasing the limit further is not a good solution.

> BTW, I notice that in the current state of pgstat.c, all the logic
> for keeping track of request arrival times is dead code, because
> nothing is actually looking at DBWriteRequest.request_time. This
> makes me think that somebody simplified away some logic we maybe
> should have kept. But if we're going to leave it like this, we could
> replace the DBWriteRequest data structure with a simple OID list and
> save a fair amount of code.

Really? Which part of the code is dead? I see pgstat_recv_inquiry() is
updating the request_time after receiving the inquiry, and
pgstat_db_requested() is looking at it when writing the files.

If we can simplify the code by keeping just OIDs, let's do that. I think
the main reason why we haven't done that in 187492b6 was to keep as much
of the existing logic (and maybe change it in a separate patch).

regards
Tomas

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-12-25 21:16:45 Re: Better way of dealing with pgstat wait timeout during buildfarm runs?
Previous Message Tom Lane 2014-12-25 21:01:47 Re: Some other odd buildfarm failures