pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: dangal <danielito.gallo@gmail.com>
To: pgsql-performance@postgresql.org
Subject: pg_stat_bgwriter
Date: Sun, 13 Oct 2019 18:27:35 -0700 (MST)
Message-ID: <1571016455698-0.post@n3.nabble.com> (raw)

Dear I would like to share with you to see what you think about the
statistics of pg_stat_bgwriter

postgres = # select * from pg_stat_bgwriter;
 checkpoints_timed | checkpoints_req | checkpoint_write_time |
checkpoint_sync_time | buffers_checkpoint | buffers_clean | maxwritten_clean
| buffers_backend | buffers_
backend_fsync | buffers_alloc | stats_reset
------------------- + ----------------- + ------------ ----------- +
---------------------- + --------------- ----- + --------------- +
------------------ + --------- -------- + ---------
-------------- + --------------- + ------------------- ------------
               338 | 6 | 247061792 | 89418 | 2939561 | 19872289 | 54876 |
6015787 |
            0 | 710682240 | 2019-10-06 19: 25: 30.688186-03
(1 row)

postgres = # show bgwriter_delay;
 bgwriter_delay
----------------
 200ms
(1 row)

postgres = # show bgwriter_lru_maxpages;
 bgwriter_lru_maxpages
-----------------------
 100
(1 row)

postgres = # show bgwriter_lru_multiplier;
 bgwriter_lru_multiplier
-------------------------
 2
(1 row)


Do you think it should increase bgwriter_lru_maxpages due to the value of
maxwritten_clean?
Do you think it should increase bgwriter_lru_maxpages,
bgwriter_lru_multiplier, and decrease bgwriter_delay due to the value of
buffers_backend compared to buffers_alloc?
Do you think a modification is necessary?
What values ​​would you recommend?
thank you



--
Sent from: https://www.postgresql-archive.org/PostgreSQL-performance-f2050081.html





view thread (10+ messages)  latest in thread

Message-ID: <1571016455698-0.post@n3.nabble.com>
Permalink:  ../1571016455698-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1571016455698-0.post@n3.nabble.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: danielito.gallo@gmail.com
  Subject: Re: pg_stat_bgwriter
  In-Reply-To: <1571016455698-0.post@n3.nabble.com>

* 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