From: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Greg Smith <greg(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Cost limited statements RFC |
Date: | 2013-06-08 20:43:27 |
Message-ID: | CAMkU=1zK2RU8E_EWMfREw2YGi1TTB0e5g_1xSVv1jz=k7MdG5w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Jun 6, 2013 at 1:02 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>
> If we can see our way clear to ripping out the autovacuum costing
> stuff and replacing them with a read rate limit and a dirty rate
> limit, I'd be in favor of that. The current system limits the linear
> combination of those with user-specified coefficients, which is more
> powerful but less intuitive. If we need that, we'll have to keep it
> the way it is, but I'm hoping we don't.
>
I don't know what two independent setting would look like. Say you keep
two independent counters, where each can trigger a sleep, and the
triggering of that sleep clears only its own counter. Now you still have a
limit on the linear combination, it is just that summation has moved to a
different location. You have two independent streams of sleeps, but they
add up to the same amount of sleeping as a single stream based on a summed
counter.
Or if one sleep clears both counters (the one that triggered it and the
other one), I don't think that that is what I would call independent
either. Or at least not if it has no memory. The intuitive meaning of
independent would require that it keep track of which of the two counters
was "controlling" over the last few seconds. Am I overthinking this?
Also, in all the anecdotes I've been hearing about autovacuum causing
problems from too much IO, in which people can identify the specific
problem, it has always been the write pressure, not the read, that caused
the problem. Should the default be to have the read limit be inactive and
rely on the dirty-limit to do the throttling?
Cheers,
Jeff
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2013-06-08 20:45:24 | ALTER TABLE ... ALTER CONSTRAINT |
Previous Message | Simon Riggs | 2013-06-08 20:39:14 | Re: Optimising Foreign Key checks |