From: | Thomas Munro <thomas(dot)munro(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: effective_io_concurrency's steampunk spindle maths |
Date: | 2020-03-09 23:20:31 |
Message-ID: | CA+hUKGJH13r9_U1QXaYgAqeSATHkRe1Fy+u6ME8bjNOD64jO1A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sat, Mar 7, 2020 at 9:07 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com> writes:
> > So I think we should either rename e_i_c or keep it as is, and then also
> > have a new GUC. And then translate the values between those (but that
> > might be overkill).
>
> Please DON'T try to have two interrelated GUCs for this. We learned
> our lesson about that years ago.
Ack.
> I think dropping the existing GUC is a perfectly sane thing to do,
> if the new definition wouldn't be compatible. In practice few
> people will notice, because few will have set it.
That's what I thought too, but if Andres is right that "it's not like
anybody knew how to infer a useful value", I'm wondering it's enough
if we just provide an explanation of the change in the release notes.
The default doesn't change (1 goes to 1), so most people will
experience no change, but it you had it set to (say) 42 after careful
experimentation, you might like to consider updating it to the result
of:
select round(sum(42 / n::float)) as new_setting from
generate_series(1, 42) s(n)
Here's a patch set to remove the spindle stuff, add a maintenance
variant, and use the maintenance one in
heap_compute_xid_horizon_for_tuples().
Attachment | Content-Type | Size |
---|---|---|
0001-Simplify-the-effective_io_concurrency-setting.patch | text/x-patch | 9.1 KB |
0002-Introduce-a-maintenance_io_concurrency-setting.patch | text/x-patch | 13.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2020-03-09 23:49:53 | Re: Add absolute value to dict_int |
Previous Message | Kyotaro Horiguchi | 2020-03-09 23:19:24 | Re: Reducing WaitEventSet syscall churn |