pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Markus <t.markus@proventis.net>
To: pgsql-performance@lists.postgresql.org
Subject: Re: Interpreting shared_buffers setting
Date: Tue, 29 Jan 2019 13:35:42 +0100
Message-ID: <746a1925-c653-d805-dd83-560198f91523@proventis.net> (raw)
In-Reply-To: <CACd=f9f1ODAgnEsUagdfyChEXsE4OD5V3LyXvuUozquZUgYo9A@mail.gmail.com>
References: <CACd=f9f1ODAgnEsUagdfyChEXsE4OD5V3LyXvuUozquZUgYo9A@mail.gmail.com>

Hi,

check for blocksize (8k) as factor.

8k*131072=1G

regards
Thomas

Am 29.01.19 um 13:32 schrieb Bob Jolliffe:
> Excuse me if this is a silly question.  I am trying to fiddle with
> shared_buffers setting on postgresql 10.6 on ubuntu 18.04 server.
>
> I have this at bottom of my config file:
> shared_buffers = 1GB
>
> Yet when I check the setting from pg_setting I see something quite different:
>
> postgres=# SELECT name, setting FROM pg_settings where name = 'shared_buffers';
>        name      | setting
> ----------------+---------
>   shared_buffers | 131072
>
> Is this a question of units?  It looks like 128M.  Note when I change
> the setting to 2GB in conf file I see 262144 from pg_setting.  I am
> now unsure what the actual shared_buffers allocation is.  I cant see
> anything in the docs which tells me how to interpret the integer.
>
> Any clarification welcome.
>
> Regards
> Bob
>





view thread (6+ messages)  latest in thread

Message-ID: <746a1925-c653-d805-dd83-560198f91523@proventis.net>
Permalink:  ../746a1925-c653-d805-dd83-560198f91523@proventis.net/
Also on:    postgresql.org/message-id/746a1925-c653-d805-dd83-560198f91523@proventis.net

 · 

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: t.markus@proventis.net, pgsql-performance@lists.postgresql.org
  Subject: Re: Interpreting shared_buffers setting
  In-Reply-To: <746a1925-c653-d805-dd83-560198f91523@proventis.net>

* 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