Re: Setting effective_cache_size in integer form with the 8kb block units - Mailing list pgsql-admin

From Tom Lane
Subject Re: Setting effective_cache_size in integer form with the 8kb block units
Date
Msg-id 770649.1642630861@sss.pgh.pa.us
Whole thread Raw
In response to Re: Setting effective_cache_size in integer form with the 8kb block units  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: Setting effective_cache_size in integer form with the 8kb block units  (Wells Oliver <wells.oliver@gmail.com>)
List pgsql-admin
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Wed, Jan 19, 2022 at 2:57 PM Wells Oliver <wells.oliver@gmail.com> wrote:
>> It does. In a cruel twist of fate, RDS parameter groups do not allow
>> "48GB" and want integer values.

> The system operates and calculates memory in binary per the referenced
> documentation so 6,291,456 (I double-checked this).

If you don't trust hand arithmetic, try

regression=# set effective_cache_size to '48GB';
SET
regression=# select setting from pg_settings where name = 'effective_cache_size';
 setting
---------
 6291456
(1 row)

            regards, tom lane



pgsql-admin by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Setting effective_cache_size in integer form with the 8kb block units
Next
From: Wells Oliver
Date:
Subject: Re: Setting effective_cache_size in integer form with the 8kb block units