Re: multixacts woes

From: Noah Misch <noah(at)leadboat(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: multixacts woes
Date: 2015-05-11 04:56:17
Message-ID: 20150511045617.GA3632096@tornado.leadboat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, May 10, 2015 at 09:17:58PM -0400, Robert Haas wrote:
> On Sun, May 10, 2015 at 1:40 PM, Noah Misch <noah(at)leadboat(dot)com> wrote:
> > I don't know whether this deserves prompt remediation, but if it does, I would
> > look no further than the hard-coded 25% figure. We permit users to operate
> > close to XID wraparound design limits. GUC maximums force an anti-wraparound
> > vacuum at no later than 93.1% of design capacity. XID assignment warns at
> > 99.5%, then stops at 99.95%. PostgreSQL mandates a larger cushion for
> > pg_multixact/offsets, with anti-wraparound VACUUM by 46.6% and a stop at
> > 50.0%. Commit 53bb309d2d5a9432d2602c93ed18e58bd2924e15 introduced the
> > bulkiest mandatory cushion yet, an anti-wraparound vacuum when
> > pg_multixact/members is just 25% full.
>
> That's certainly one possible approach. I had discounted it because
> you can't really get more than a small multiple out of it, but getting
> 2-3x more room might indeed be enough to help some people quite a bit.
> Just raising the threshold from 25% to say 40% would buy back a
> healthy amount.

Right. It's fair to assume that the new VACUUM burden would be discountable
at a 90+% threshold, because the installations that could possibly find it
expensive are precisely those experiencing corruption today. These reports
took eighteen months to appear, whereas some corruption originating in commit
0ac5ad5 saw reports within three months. Therefore, sites burning
pg_multixact/members proportionally faster than both pg_multixact/offsets and
XIDs must be unusual. Bottom line: if we do need to reduce VACUUM burden
caused by the commits you cited upthread, we almost certainly don't need more
than a 4x improvement.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2015-05-11 06:02:36 Re: pg_basebackup vs. Windows and tablespaces
Previous Message Kouhei Kaigai 2015-05-11 03:48:24 Re: Custom/Foreign-Join-APIs (Re: [v9.5] Custom Plan API)