From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Question about buffers_alloc in pg_stat_bgwriter view for monitoring
Date: Fri, 30 Mar 2018 12:50:25 +0300
Message-ID: <f853b284-4b13-59ed-4b6f-faac112680d3@matrix.gatewaynet.com> (raw)
In-Reply-To: <B753E635-C55D-4801-AA1A-DE5418FB6193@a-blast.org>
References: <C261F12B-30B0-40A4-8A1E-3CE58B4E51C7@a-blast.org>
<1a00e942-e7c6-8e4d-afec-4b1befd5688d@pro-open.de>
<B753E635-C55D-4801-AA1A-DE5418FB6193@a-blast.org>
On 29/03/2018 20:24, Alvar Freude wrote:
> Hi,
>
>> Am 29.03.2018 um 10:30 schrieb Gunnar Nick Bluth <gunnar.bluth@pro-open.de>:
>>
>> Thus, buffer_alloc is the global count of buffers allocated in the
>> cluster. That it appears in the bgwriter statistics is more or less
>> coincidental.
> But it seems not to be the total shared_buffers used, but the total number of allocated and re-allocated buffers. So it increments every time a buffer is allocated. Maybe I’m the only one who misunderstands it – or someone with better english then me should update the docs. ;-)
>
But shared_buffers represents the max no of postgresql buffers, per server, at any given time. It is a limit (constant) not a metric. The count of all concurrent buffers at any given time must be less
than shared_buffers.
So my question is : Does buffer_alloc represent the total read/write traffic of the database since the last reset?
>
> Ciao
> Alvar
>
> --
> Alvar C.H. Freude | http://alvar.a-blast.org
> https://blog.alvar-freude.de/
> https://www.wen-waehlen.de/
--
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt
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: achill@matrix.gatewaynet.com
Subject: Re: Question about buffers_alloc in pg_stat_bgwriter view for monitoring
In-Reply-To: <f853b284-4b13-59ed-4b6f-faac112680d3@matrix.gatewaynet.com>
References: <C261F12B-30B0-40A4-8A1E-3CE58B4E51C7@a-blast.org> <1a00e942-e7c6-8e4d-afec-4b1befd5688d@pro-open.de> <B753E635-C55D-4801-AA1A-DE5418FB6193@a-blast.org> <f853b284-4b13-59ed-4b6f-faac112680d3@matrix.gatewaynet.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