pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Subhrajyoti Senapati <ssubhrajyoti@google.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Sysbench tests on PG12
Date: Fri, 01 Oct 2021 13:49:19 +0200
Message-ID: <d9be2f9b77f69aad81d845c50badbe6abe059e8e.camel@cybertec.at> (raw)
In-Reply-To: <CABHJmOJrfy0Ug8=3LzQq-ukT+Ly+Z=A_GNwAkb7b2tDd2MgoCg@mail.gmail.com>
References: <CABHJmOJrfy0Ug8=3LzQq-ukT+Ly+Z=A_GNwAkb7b2tDd2MgoCg@mail.gmail.com>

On Fri, 2021-10-01 at 14:22 +0530, Subhrajyoti Senapati wrote:
> Was running a few sysbench tests in Postgres12.
> Sysbench Test Config
> oltp-readwrite-custom
> Threads - 500
> Machine: 16 core 64G
> 
> In PG server:
> shared_buffers: 16GB
> maintenance_work_memory: 16GB
> checkpoint_timeout: 1h
> max_wal_size: 10GB
> wal_sync_method: 'open_sync'
> effective_cache_size: 32GB
> wal_buffers: -1
> wal_compression: on
> 
> Got some qps dips.
> 
> Changed fsync and full_page_rewrite to 'off'.
> Which helped in avoiding these many long dips in performance:
> 
> But fsync ensures DBMS consistency. So, instead of that can I change a few other configurations to avoid these inconsistent performance dips ?

Try playing with "bgwriter_flush_after", "checkpoint_flush_after" and "wal_writer_flush_after"
and see if that influences the behavior.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (3+ messages)  latest in thread

Message-ID: <d9be2f9b77f69aad81d845c50badbe6abe059e8e.camel@cybertec.at>
Permalink:  ../d9be2f9b77f69aad81d845c50badbe6abe059e8e.camel@cybertec.at/
Also on:    postgresql.org/message-id/d9be2f9b77f69aad81d845c50badbe6abe059e8e.camel@cybertec.at

 · 

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-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, ssubhrajyoti@google.com
  Subject: Re: Sysbench tests on PG12
  In-Reply-To: <d9be2f9b77f69aad81d845c50badbe6abe059e8e.camel@cybertec.at>
  References: <CABHJmOJrfy0Ug8=3LzQq-ukT+Ly+Z=A_GNwAkb7b2tDd2MgoCg@mail.gmail.com> <d9be2f9b77f69aad81d845c50badbe6abe059e8e.camel@cybertec.at>

* 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