Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u8LgD-001k4B-W3 for pgsql-general@arkaria.postgresql.org; Fri, 25 Apr 2025 16:13:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1u8LgC-00Cv8Z-5x for pgsql-general@arkaria.postgresql.org; Fri, 25 Apr 2025 16:13:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u8LgB-00Cv8P-M3 for pgsql-general@lists.postgresql.org; Fri, 25 Apr 2025 16:13:32 +0000 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u8Lg8-00220s-1o for pgsql-general@lists.postgresql.org; Fri, 25 Apr 2025 16:13:31 +0000 Received: by mail-qt1-x82a.google.com with SMTP id d75a77b69052e-47690a4ec97so28342801cf.2 for ; Fri, 25 Apr 2025 09:13:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mokadb-com.20230601.gappssmtp.com; s=20230601; t=1745597607; x=1746202407; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=QFfJiLjc8nIGzZdUdv1D0b+EwGGUeLjB5jmiVXT11MQ=; b=UoZzH+S/okwKMNRcAePCagRO8uT9wUZz5aEKyAMKuktGOWO5vT/o0QCyUFF6P/X5Ui OanGcasN45fmcnN9XiquJP0hjNLBEjl/8IqFG3tmfoCK5PNbEQHMwSACFyHz5fXgNPsT 14KjI6tqkHjZ1p+Nr5cFVxkiBXQ1G0cBHm6jGvADu0pWlSwtlS4LSJM7DL7SflLt4DXq PekGuk73WJQtvPNEkDfGapdooFTVYlmqaU9kT7hs/Vj0Qoy1AZ0bCqJs9W54rZKOr+lR UXURhDtL/mv39Ffyvm6uEII3T34224o5ypWtMLC/9Q43J/QxkSFPyTK5Gf1xyTW8n2DE Trvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745597607; x=1746202407; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QFfJiLjc8nIGzZdUdv1D0b+EwGGUeLjB5jmiVXT11MQ=; b=tXC+qQWFlKQ9b3kUziHCDKf851Y2RzE0Yk4QLC5gXi3raSo0uXAx1wl1qw9MHNroCK xRKbfgAZJVXlDLIiyPNAJou27lPJmvgHeD+X3CE0BeI21IwHPZFWQWv+Am9u9YMDq8De UJgjrxR24DgGjlhkJD6/tKEIwgJoW3YR2lSB9p+o7jxOCW/i2MoFwrZCcxpz0sfgbok9 Be/DlgS8LLMPHdJitVgRqP5T4UOk0O9lg2w+0NbgF0gXPKA8p85RLwt87zR1JRh+QI7w SLFe5sx/jnU8fPev1ehwphG7DVHetvIe0WcOdGhLiXR+Xiix0ezPwGp7dUTf7l+qsO/b cy6Q== X-Gm-Message-State: AOJu0YzWgZw9yCa15/EaLH3+cAvErCmgf3LYPWF8IQZwWhl3xcNYMrxf kb/YYPSqBFdmVibmGspBnX9fBlGfpgnDyNFyX1m0dczMv13z7eUl0EXn2ZnJ6P3gzLyoG1TMZ4u cISUdoa1Nil/+6gxkbw2oHypx/nlLFyN8eMNQ/yVWBIb7CJ9f X-Gm-Gg: ASbGnctul5efacrzCc+ugkRVxlzk2eZNJAZT03svxLW3c002uKVjwGKHx6uVqschOcX OqCYPpHrEM0lTog7GsO0a8r7yjHCkWHQl6b5ynOA8gbsiAffW0zN8F6d5uFvi7Kgf+t+42VEo8s 8dArst66luFWaNIHna/rnV5UCc9idjSNv+ X-Google-Smtp-Source: AGHT+IH3YuIpc7kQsbV2EoPsnp6Gf1y67VgeLN9nqouD1amdUtiHvfy9UMkCz++KPAsWt5uxgsOxjC2epd0D16V1+NQ= X-Received: by 2002:ac8:7f48:0:b0:476:a3c8:c78d with SMTP id d75a77b69052e-48023703ebamr39815151cf.29.1745597606582; Fri, 25 Apr 2025 09:13:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Marc Millas Date: Fri, 25 Apr 2025 18:13:14 +0200 X-Gm-Features: ATxdqUGo4mcx9m3iWQU9nR4vMcaHaOcKvynT7AL9B6eR5LChktjVcTdHd_YNFWg Message-ID: Subject: Re: shared buffers To: "pgsql-general@lists.postgresql.org" Content-Type: multipart/alternative; boundary="00000000000042f70306339c9da9" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000042f70306339c9da9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sorry, 'someone' launches some kind of batches without telling. Marc MILLAS Senior Architect +33607850334 www.mokadb.com On Fri, Apr 25, 2025 at 3:42=E2=80=AFPM Marc Millas wrote: > hello, > > got something strange to me: > Same db ie. same data, around 1.2TB,one on pg13, 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 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 > times I rerun the explain (analyze, buffers) of the same request, each > time, the explain shows the same volume of reads. again and again. > If I check with pg_buffercache, the set of objects stay the same, WITHOUT > the objects of my request, just like if those objects where sticky. > > any idea ? > > thanks > > Marc MILLAS > Senior Architect > +33607850334 > www.mokadb.com > > --00000000000042f70306339c9da9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry,

'someone' lau= nches some kind of batches without telling.

Marc MILLAS
Senior Architect
<= div>+33607850334


On Fri, Apr 25, 2025 at 3:42=E2=80=AFPM Marc Millas= <marc.millas@mokadb.com&g= t; wrote:
hello,

got something strange to me= :
Same db ie. same data, around 1.2TB,one on pg13, one on pg16
same 16 GB of shared_buffers,
I am the single user.
=
both have track_io_timing on

on pg13, if I ru= n a big request with explain (analyze,buffers),=C2=A0
I see aroun= d 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_bu= ffercache what's in it, I see the biggest tables of my request within t= he 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 times I rerun the explain=C2=A0(analyze, buffers) of the same req= uest, each time, the explain shows the same volume of reads. again and agai= n.
If I check with pg_buffercache, the set of objects stay the sa= me, WITHOUT the objects of my request, just like if those objects where sti= cky.

any idea ?

thanks

Marc MILLAS
Senior Architect
+= 33607850334

--00000000000042f70306339c9da9--