pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Sanity check of shared_buffers value
Date: Mon, 3 Jul 2023 14:56:12 -0500
Message-ID: <4b1c1747-85ff-f174-a43b-482e580fe6a2@gmail.com> (raw)
In-Reply-To: <CAOC+FBXnpq7+rGxw2D7=YaOi_RAfA3aBqNPNdtcTeXudfa-c_A@mail.gmail.com>
References: <CAOC+FBXnpq7+rGxw2D7=YaOi_RAfA3aBqNPNdtcTeXudfa-c_A@mail.gmail.com>

On 7/3/23 14:45, Wells Oliver wrote:
> Sorry, this is dumb, but I wanted to double check that I'm doing the 
> shared_buffers calc correctly given it's in 8kb blocks (block_size is set 
> to 8192).
>
> Want 24GB, which I think is 25165824 KiB so divided by 8 we get 3145728.
>
> Do I have this correct? Usually can test these but wanted to run it by 
> someone before having to restart the server.
>
> Is there some calc web service out there that idiots such as myself can 
> use for this?

https://www.postgresql.org/docs/15/runtime-config-resource.html

"If this value is specified *without **units*, it is taken as blocks,"

My interpretation of this (and what I do in my postgresql.conf file, without 
error) is to use a unit name, as such:
shared_buffers = 24GB

-- 
Born in Arizona, moved to Babylonia.

view thread (5+ messages)  latest in thread

Message-ID: <4b1c1747-85ff-f174-a43b-482e580fe6a2@gmail.com>
Permalink:  ../4b1c1747-85ff-f174-a43b-482e580fe6a2@gmail.com/
Also on:    postgresql.org/message-id/4b1c1747-85ff-f174-a43b-482e580fe6a2@gmail.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-admin@postgresql.org
  Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Sanity check of shared_buffers value
  In-Reply-To: <4b1c1747-85ff-f174-a43b-482e580fe6a2@gmail.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