pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedSysbench tests on PG12
3+ messages / 2 participants
[nested] [flat]
* Sysbench tests on PG12
@ 2021-10-01 08:52 Subhrajyoti Senapati <ssubhrajyoti@google.com>
2021-10-01 11:49 ` Re: Sysbench tests on PG12 Laurenz Albe <laurenz.albe@cybertec.at>
0 siblings, 1 reply; 3+ messages in thread
From: Subhrajyoti Senapati @ 2021-10-01 08:52 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Hi,
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
[image: line-graph (6).png]
Got some qps dips.
Changed fsync and full_page_rewrite to 'off'.
Which helped in avoiding these many long dips in performance:
[image: line-graph (9).png]
But fsync ensures DBMS consistency. So, instead of that can I change a few
other configurations to avoid these inconsistent performance dips ?
Regards,
Subhrajyoti
Attachments:
line-graph (6).png (image/png, 103.2K) download
view image
line-graph (9).png (image/png, 74.8K) download
view image
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Sysbench tests on PG12
2021-10-01 08:52 Sysbench tests on PG12 Subhrajyoti Senapati <ssubhrajyoti@google.com>
@ 2021-10-01 11:49 ` Laurenz Albe <laurenz.albe@cybertec.at>
2021-10-01 11:58 ` Re: Sysbench tests on PG12 Subhrajyoti Senapati <ssubhrajyoti@google.com>
0 siblings, 1 reply; 3+ messages in thread
From: Laurenz Albe @ 2021-10-01 11:49 UTC (permalink / raw)
To: Subhrajyoti Senapati <ssubhrajyoti@google.com>; pgsql-general@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Sysbench tests on PG12
2021-10-01 08:52 Sysbench tests on PG12 Subhrajyoti Senapati <ssubhrajyoti@google.com>
2021-10-01 11:49 ` Re: Sysbench tests on PG12 Laurenz Albe <laurenz.albe@cybertec.at>
@ 2021-10-01 11:58 ` Subhrajyoti Senapati <ssubhrajyoti@google.com>
0 siblings, 0 replies; 3+ messages in thread
From: Subhrajyoti Senapati @ 2021-10-01 11:58 UTC (permalink / raw)
To: Laurenz Albe <laurenz.albe@cybertec.at>; +Cc: pgsql-general@lists.postgresql.org
Thanks Laurenz, will try these flags.
Regards,
Subhrajyoti
On Fri, Oct 1, 2021 at 5:19 PM Laurenz Albe <laurenz.albe@cybertec.at>
wrote:
> 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
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2021-10-01 11:58 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-10-01 08:52 Sysbench tests on PG12 Subhrajyoti Senapati <ssubhrajyoti@google.com>
2021-10-01 11:49 ` Laurenz Albe <laurenz.albe@cybertec.at>
2021-10-01 11:58 ` Subhrajyoti Senapati <ssubhrajyoti@google.com>
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