pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Maxim Boguk <maxim.boguk@gmail.com>
Cc: Tomas Vondra <tv@fuzzy.cz>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #12071: Stat collector went crasy (50MB/s constant writes)
Date: Wed, 26 Nov 2014 22:38:44 -0300
Message-ID: <20141127013843.GS1639@alvin.alvh.no-ip.org> (raw)
In-Reply-To: <CAK-MWwQ2ZCW3+8UiMAdtLc6+YHph_CS3R8fVeLAFkfWdC08VFQ@mail.gmail.com>
References: <20141126130810.15507.39189@wrigleys.postgresql.org>
	<CAK-MWwSDmXTWCc3F2Wj3Zw6WZ_3JSKHaXFqZ2TDuq1jfKZOu=A@mail.gmail.com>
	<CAK-MWwQJF+EM5f_47r5wLpr6_2FBYNFeKKAD-DPP3JtzuAM15Q@mail.gmail.com>
	<CAK-MWwTmJV4VprhAfCyTKRLndYbwbToF-Z0JYv6_o=qq3VYxyQ@mail.gmail.com>
	<54763BD8.8020906@fuzzy.cz>
	<CAK-MWwTFTRVuBjLz_rJVNEompGj2btot88G5uwXW+d2DierSNQ@mail.gmail.com>
	<54764B3F.5080702@fuzzy.cz>
	<CAK-MWwQ2ZCW3+8UiMAdtLc6+YHph_CS3R8fVeLAFkfWdC08VFQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Maxim Boguk wrote:

> It not happened before because just few weeks ago development process had
> been switched from single shared developer db to the private db's for each
> developer (so amount of databases increased from few to 10).
> 
> PS: 10ms acceptable lag for autovacuum reading pgstat.tmp looks too strong
> limitation for me.
> I think it should be something like min(autovacuum_naptime/2,
> PGSTAT_RETRY_DELAY)

The issue is avoiding repeated vacuuming of the same table by two
different workers.  I have thought sometimes that this concern is
overblown, and maybe we could use a different approach.

For example, one idea is to have the autovac worker sleep for some time
before vacuuming each table, to give pgstat time to catch up in case
someone else vacuumed the table concurrently.  One issue with this is
that sleeping for too long would cause each worker run to take longer.
(But then workers already sleep due to cost_delay, so perhaps this is
not a serious problem).

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, 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



view thread (24+ messages)  latest in thread

Message-ID: <20141127013843.GS1639@alvin.alvh.no-ip.org>
Permalink:  ../20141127013843.GS1639@alvin.alvh.no-ip.org/
Also on:    postgresql.org/message-id/20141127013843.GS1639@alvin.alvh.no-ip.org

 · 

reply

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, maxim.boguk@gmail.com, tv@fuzzy.cz
  Subject: Re: BUG #12071: Stat collector went crasy (50MB/s constant writes)
  In-Reply-To: <20141127013843.GS1639@alvin.alvh.no-ip.org>
  References: <20141126130810.15507.39189@wrigleys.postgresql.org> <CAK-MWwSDmXTWCc3F2Wj3Zw6WZ_3JSKHaXFqZ2TDuq1jfKZOu=A@mail.gmail.com> <CAK-MWwQJF+EM5f_47r5wLpr6_2FBYNFeKKAD-DPP3JtzuAM15Q@mail.gmail.com> <CAK-MWwTmJV4VprhAfCyTKRLndYbwbToF-Z0JYv6_o=qq3VYxyQ@mail.gmail.com> <54763BD8.8020906@fuzzy.cz> <CAK-MWwTFTRVuBjLz_rJVNEompGj2btot88G5uwXW+d2DierSNQ@mail.gmail.com> <54764B3F.5080702@fuzzy.cz> <CAK-MWwQ2ZCW3+8UiMAdtLc6+YHph_CS3R8fVeLAFkfWdC08VFQ@mail.gmail.com> <20141127013843.GS1639@alvin.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