pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Simplify the effective_io_concurrency setting.
Date: Mon, 16 Mar 2020 04:24:25 +0000
Message-ID: <E1jDhIf-00041v-MV@gemulon.postgresql.org> (raw)

Simplify the effective_io_concurrency setting.

The effective_io_concurrency GUC and equivalent tablespace option were
previously passed through a formula based on a theory about RAID
spindles and probabilities, to arrive at the number of pages to prefetch
in bitmap heap scans.  Tomas Vondra, Andres Freund and others argued
that it was anachronistic and hard to justify, and commit 558a9165e08
already started down the path of bypassing it in new code.  We agreed to
drop that logic and use the value directly.

For the default setting of 1, there is no change in effect.  Higher
settings can be converted from the old meaning to the new with:

  select round(sum(OLD / n::float)) from generate_series(1, OLD) s(n);

We might want to consider renaming the GUC before the next release given
the change in meaning, but it's not clear that many users had set it
very carefully anyway.  That decision is deferred for now.

Discussion: https://postgr.es/m/CA%2BhUKGJUw08dPs_3EUcdO6M90GnjofPYrWp4YSLaBkgYwS-AqA%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b09ff53667ffc986371ec8ffa372916ad460220d

Modified Files
--------------
src/backend/executor/nodeBitmapHeapscan.c | 18 ++------
src/backend/storage/buffer/bufmgr.c       | 74 +++----------------------------
src/backend/utils/misc/guc.c              | 29 ++----------
src/include/storage/bufmgr.h              |  6 +--
4 files changed, 14 insertions(+), 113 deletions(-)



Message-ID: <E1jDhIf-00041v-MV@gemulon.postgresql.org>
Permalink:  ../E1jDhIf-00041v-MV@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jDhIf-00041v-MV@gemulon.postgresql.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-committers@postgresql.org
  Cc: tmunro@postgresql.org
  Subject: Re: pgsql: Simplify the effective_io_concurrency setting.
  In-Reply-To: <E1jDhIf-00041v-MV@gemulon.postgresql.org>
  References: <E1jDhIf-00041v-MV@gemulon.postgresql.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