From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Timothy Garnett <tgarnett@panjiva.com>
Cc: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Cc: Kevin Grittner <kgrittn@ymail.com>
Subject: Re: Re: BUG #12990: Missing pg_multixact/members files (appears to have wrapped, then truncated)
Date: Mon, 4 May 2015 18:30:56 -0300
Message-ID: <20150504213056.GF2523@alvh.no-ip.org> (raw)
In-Reply-To: <20150504205949.GE2523@alvh.no-ip.org>
References: <CAEepm=0doaxbMLN8XRtptNGrO6_jYQM67dQhiXL0HDVBW8S+BQ@mail.gmail.com>
<CAEepm=13WNtTQkhCbU9NoFXQ_HCA8QZmoZvS52g=LT1cuMwE2Q@mail.gmail.com>
<CAA4eK1KswLU14DXmOQogjanD_0v83CznyG6R5rKx5brO=uk_VQ@mail.gmail.com>
<CAEepm=2W9LyVy5ASPtH7cLnKsFnw5KGo3vRyteLXYhe=C+6ywQ@mail.gmail.com>
<CAEepm=3fvWMcJdSwNZCix2pQruDste0LUC5eP8e0i8+4QtG=vw@mail.gmail.com>
<CA+TgmoY=ntXN56XSqxpc8Ef_Uvssi2X1Thmh6bOGFXraa8usZQ@mail.gmail.com>
<CAEepm=2Dz3E46RpPbxtt4xmujxaOe-8SH+sXoE0bWx+RCuLgpw@mail.gmail.com>
<CAA4eK1+VNdBs+PKHqfnSvzzrA=qzes5vi7B1e3KhCfC-HRnc3w@mail.gmail.com>
<CAEepm=3iK_JrM3=pFzTU-L3c+g61R6Dg5H7R3bsD9CMdYTLRjA@mail.gmail.com>
<20150504205949.GE2523@alvh.no-ip.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Alvaro Herrera wrote:
> For instance, we could choose a method to compute X based on considering
> that a full 2^32 storage area for members is enough to store one
> vacuum_multixact_freeze_table_age cycle of multixacts. The default
> value of this param is 150 million, and 2^32/150000000 = 28; so if your
> average multixact size = 38, you would set the multiplier at 0.736 and
> your effective freeze_table_age would become 110 million and effective
> freeze_min_age would become 3.68 million.
Actually, apologies --- this is not what I was thinking at all. I got
distracted while I was writing the previous email. My thinking was that
the values would be at their normal defaults when the wraparound is
distant, and the multiplier would start to become slightly less than 1
as the counter moves towards wraparound; by the time we're at at an
emergency i.e. we reach max_freeze_age, the values naturally become zero
(or perhaps just before we reach max_freeze_age, the values were 50% of
their normal values, so the drop to zero is not as dramatic). Since
this is gradual, the behavior is not as jumpy as in the proposed patch.
Anyway this is in line with what Kevin is saying elsewhere: we shouldn't
just use the normal values all the time just up to the freeze_max_age
point; there should be some gradual ramp-up.
Perhaps we can combine this with the other idea of using a multiplier
connected to average size of multixact, if it doesn't become too
complicated, surprising, or both.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: alvherre@2ndquadrant.com, thomas.munro@enterprisedb.com, amit.kapila16@gmail.com, robertmhaas@gmail.com, tgarnett@panjiva.com, kgrittn@ymail.com
Subject: Re: BUG #12990: Missing pg_multixact/members files (appears to have wrapped, then truncated)
In-Reply-To: <20150504213056.GF2523@alvh.no-ip.org>
References: <CAEepm=0doaxbMLN8XRtptNGrO6_jYQM67dQhiXL0HDVBW8S+BQ@mail.gmail.com> <CAEepm=13WNtTQkhCbU9NoFXQ_HCA8QZmoZvS52g=LT1cuMwE2Q@mail.gmail.com> <CAA4eK1KswLU14DXmOQogjanD_0v83CznyG6R5rKx5brO=uk_VQ@mail.gmail.com> <CAEepm=2W9LyVy5ASPtH7cLnKsFnw5KGo3vRyteLXYhe=C+6ywQ@mail.gmail.com> <CAEepm=3fvWMcJdSwNZCix2pQruDste0LUC5eP8e0i8+4QtG=vw@mail.gmail.com> <CA+TgmoY=ntXN56XSqxpc8Ef_Uvssi2X1Thmh6bOGFXraa8usZQ@mail.gmail.com> <CAEepm=2Dz3E46RpPbxtt4xmujxaOe-8SH+sXoE0bWx+RCuLgpw@mail.gmail.com> <CAA4eK1+VNdBs+PKHqfnSvzzrA=qzes5vi7B1e3KhCfC-HRnc3w@mail.gmail.com> <CAEepm=3iK_JrM3=pFzTU-L3c+g61R6Dg5H7R3bsD9CMdYTLRjA@mail.gmail.com> <20150504205949.GE2523@alvh.no-ip.org> <20150504213056.GF2523@alvh.no-ip.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox