Re: shared buffers

2025-04-28 Thread Marc Millas
13, one on pg16 > > same 16 GB of shared_buffers, > > I am the single user. > > both have track_io_timing on > > > > on pg13, if I run a big request with explain (analyze,buffers), > > I see around 6 GB read > > if I do rerun the very same request, no more rea

Re: shared buffers

2025-04-25 Thread Laurenz Albe
with explain (analyze,buffers),  > I see around 6 GB read > if I do rerun the very same request, no more read(s), all data in the shared > buffers cache. fine > If I check with pg_buffercache what's in it, I see the biggest tables of my > request within > the biggest users

Re: shared buffers

2025-04-25 Thread Marc Millas
e on pg16 > same 16 GB of shared_buffers, > I am the single user. > both have track_io_timing on > > on pg13, if I run a big request with explain (analyze,buffers), > I see around 6 GB read > if I do rerun the very same request, no more read(s), all data in the > shared buffer

shared buffers

2025-04-25 Thread Marc Millas
request, no more read(s), all data in the shared buffers cache. fine If I check with pg_buffercache what's in it, I see the biggest tables of my request within the biggest users (in number of blocks used). All this is fine. next, if I do the very same on the pg16 machine, whatever the number of

shared buffers

2023-08-17 Thread Marc Millas
Hi, to my understanding it use to be "common sense" to limit shared buffers, maybe around 32 GB. due to ressources consumption of managing said cache. I would like to know if, on a v15 with 256 GB RAM, setting shared buffers to say 96 GB would benefit large BI queries ? Or to say it d

Physical replication high shared buffers hits

2022-04-27 Thread Talal Majali
and when we did explain analyze buffers, what we noticed that there are huge difference in shared buffers hit for this query on the replica vs the primary, please find the details below: on primary: https://explain.depesz.com/s/TuMD on replica: https://explain.depesz.com/s/auJp Note the Buffers

Re: Shared buffers increased but cache hit ratio is still 85%

2018-07-19 Thread Adrien NAYRAT
On 07/18/2018 10:26 AM, Hans Schou wrote: Am I doing something wrong or should some history be cleared? Hi, FIY, check_pgactivity save the diff between each call to compute the real hit ratio : https://github.com/OPMDG/check_pgactivity Regards,

Re: Shared buffers increased but cache hit ratio is still 85%

2018-07-18 Thread Tomas Vondra
On 07/18/2018 10:43 AM, Andreas Kretschmer wrote: > > > Am 18.07.2018 um 10:26 schrieb Hans Schou: >> Am I doing something wrong or should some history be cleared? > > Reset the stats for that database. You can check the date of last reset > with: > > select stats_reset from pg_stat_database wh

Re: Shared buffers increased but cache hit ratio is still 85%

2018-07-18 Thread Hans Schou
On Wed, Jul 18, 2018 at 10:44 AM Andreas Kretschmer wrote: > > ||pg_stat_reset() > Thanks, I guess we can see the result in a few days. BTW, strang command: it only reset current database and it can't take db as parameter.

Re: Shared buffers increased but cache hit ratio is still 85%

2018-07-18 Thread Andreas Kretschmer
Am 18.07.2018 um 10:26 schrieb Hans Schou: Am I doing something wrong or should some history be cleared? Reset the stats for that database. You can check the date of last reset with: select stats_reset from pg_stat_database where datname = 'database_name'; and reset it with: ||pg_stat_r

Shared buffers increased but cache hit ratio is still 85%

2018-07-18 Thread Hans Schou
Hi I have this system with some databases and I have run the cache_hit_ratio.sql script on it. It showed that the db acme777booking had a ratio on 85%. I then changed shared_buffer size from 0.5GB to 4GB as the server has 16GB of physical RAM. After 6 days of running I checked the ratio again and