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: Introduce a maintenance_io_concurrency setting.
Date: Mon, 16 Mar 2020 04:24:25 +0000
Message-ID: <E1jDhIf-00041w-Ns@gemulon.postgresql.org> (raw)

Introduce a maintenance_io_concurrency setting.

Introduce a GUC and a tablespace option to control I/O prefetching, much
like effective_io_concurrency, but for work that is done on behalf of
many client sessions.

Use the new setting in heapam.c instead of the hard-coded formula
effective_io_concurrency + 10 introduced by commit 558a9165e08.  Go with
a default value of 10 for now, because it's a round number pretty close
to the value used for that existing case.

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

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/config.sgml                | 20 ++++++++++++++++++++
doc/src/sgml/ref/alter_tablespace.sgml  | 11 +++++++----
doc/src/sgml/ref/create_tablespace.sgml | 11 +++++++----
src/backend/access/common/reloptions.c  | 16 +++++++++++++++-
src/backend/access/heap/heapam.c        | 16 +++-------------
src/backend/storage/buffer/bufmgr.c     |  7 +++++++
src/backend/utils/cache/spccache.c      | 14 ++++++++++++++
src/backend/utils/misc/guc.c            | 32 ++++++++++++++++++++++++++++++++
src/bin/psql/tab-complete.c             |  2 +-
src/include/commands/tablespace.h       |  1 +
src/include/storage/bufmgr.h            |  1 +
src/include/utils/spccache.h            |  1 +
12 files changed, 109 insertions(+), 23 deletions(-)



Message-ID: <E1jDhIf-00041w-Ns@gemulon.postgresql.org>
Permalink:  ../E1jDhIf-00041w-Ns@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jDhIf-00041w-Ns@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: Introduce a maintenance_io_concurrency setting.
  In-Reply-To: <E1jDhIf-00041w-Ns@gemulon.postgresql.org>
  References: <E1jDhIf-00041w-Ns@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