Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oPq98-0006xG-12 for pgsql-admin@arkaria.postgresql.org; Sun, 21 Aug 2022 18:58:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oPq96-0003jl-7y for pgsql-admin@arkaria.postgresql.org; Sun, 21 Aug 2022 18:58:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oPq95-0003jc-Sf for pgsql-admin@lists.postgresql.org; Sun, 21 Aug 2022 18:58:03 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oPq8z-0002P4-DL for pgsql-admin@lists.postgresql.org; Sun, 21 Aug 2022 18:58:02 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 9B9B1E39E3; Sun, 21 Aug 2022 18:57:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo08-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo08-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cqVjihmH3RVu; Sun, 21 Aug 2022 18:57:55 +0000 (UTC) Received: from smtpclient.apple (unknown [4.28.96.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 253A4E3944; Sun, 21 Aug 2022 18:57:55 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: Postgresql 14 performance From: Scott Ribe In-Reply-To: Date: Sun, 21 Aug 2022 12:57:54 -0600 Cc: pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: <3FA5ECDA-A99E-4ACC-B431-54A5BC7FC4D4@elevated-dev.com> References: <62c9a8d8-8c0f-3c11-5cca-e05e126c25d8@gmail.com> To: Kenny Bachman X-Mailer: Apple Mail (2.3696.120.41.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Aug 21, 2022, at 12:55 PM, Kenny Bachman = wrote: >=20 > How can we explain the cache doesn't work as expected? I mean, I = expect more performant the second or third time running because of the = cache. However, every time I run it I get the same exec time value. Take a look at system paging activity, and at pg IO waits. (For the = latter, I think you have to enable tracking in postgresql.conf.) Also = take a peek at CPU usage--if cache is doing what you expect here, then = CPU should go to 100% on one or more cores.