pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Sum of written buffers bigger than allocation?
2+ messages / 2 participants
[nested] [flat]

* Sum of written buffers bigger than allocation?
@ 2018-04-08 15:28 pinker <pinker@onet.eu>
  2018-04-08 15:53 ` Re: Sum of written buffers bigger than allocation? Jeff Janes <jeff.janes@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: pinker @ 2018-04-08 15:28 UTC (permalink / raw)
  To: pgsql-general

Hi All!

First time I see that the sum of written buffers:
3765929+878326121 = 882092050 = select
pg_size_pretty(882092050::numeric*8192) = 6730 GB

is bigger than buffers_alloc value in pg_stat_bgwriter view:
buffers_alloc         | 20426161 = 156 GB


buffers_checkpoint    | 878599316
buffers_clean         | 0
maxwritten_clean      | 0
buffers_backend       | 3766409
buffers_backend_fsync | 0
buffers_alloc         | 20426161


It's kinda mysterious... Any explanations?
Does it mean that the same buffers were written over and over again?





--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Sum of written buffers bigger than allocation?
  2018-04-08 15:28 Sum of written buffers bigger than allocation? pinker <pinker@onet.eu>
@ 2018-04-08 15:53 ` Jeff Janes <jeff.janes@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Jeff Janes @ 2018-04-08 15:53 UTC (permalink / raw)
  To: pinker <pinker@onet.eu>; +Cc: pgsql-general

On Sun, Apr 8, 2018 at 11:28 AM, pinker <pinker@onet.eu> wrote:

>
>
> It's kinda mysterious... Any explanations?
> Does it mean that the same buffers were written over and over again?
>
>
Yeah, checkpoints will write all dirty buffers, but doesn't evict them.
Next time the page is needed, it doesn't need to be re-read as it is still
there.

Cheers,

Jeff

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-04-08 15:53 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-04-08 15:28 Sum of written buffers bigger than allocation? pinker <pinker@onet.eu>
2018-04-08 15:53 ` Jeff Janes <jeff.janes@gmail.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