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 1pynSV-0002GF-Tv for pgsql-hackers@arkaria.postgresql.org; Tue, 16 May 2023 05:42:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pynSU-0003SP-AQ for pgsql-hackers@arkaria.postgresql.org; Tue, 16 May 2023 05:42:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pynSU-0003SG-0x for pgsql-hackers@lists.postgresql.org; Tue, 16 May 2023 05:42:50 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pynSQ-0004cp-OQ for pgsql-hackers@lists.postgresql.org; Tue, 16 May 2023 05:42:49 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 951875C0107; Tue, 16 May 2023 01:42:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 16 May 2023 01:42:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1684215764; x=1684302164; bh=iy d9FQlQf7pHYwGIH63h6Qk4QpW1myzUa2M/fFpaMxI=; b=pcfJyInhuhjX6LAzps rPtLmcD17QLC9eWZiPUuktwmO0CI1VPLTnlpVaj+3J3zKkoQh98Etl7At05EuzRA nsi0w8iYomN2+utQUkmBZfGL+99CZM0iC4VN1/IHOf0/wogf4NOJCHsQylRSojux dnEc7qBXPiKYPGqku4r+qOk7XSjD8rYg/J4XHawJXumEJlEs2xr+TxLV+YLwF5dR hfJFrskQsU0KbBBA+/zz+48GQuyIudzm2vSm+4FPEfOR0PIFXTXurv7wL85/R3ij KswnJfSVcGHR0S6DUTYmbUzb+NzAxit80WW0PM7tUJtr/yMcslcy2lrC6a+Zuc18 64zQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1684215764; x=1684302164; bh=iyd9FQlQf7pHY wGIH63h6Qk4QpW1myzUa2M/fFpaMxI=; b=oNyi3t9qk4rPY8RpmBR0wtF8jOVYv KLBepd1xV9YBdL3XhD9VqAx0eDaNGWodc2cx3kmIgxsIhMiB3C+pfPeDF2GEUf7b EuR6+19NeLqxNaFe8YpggdXkIgQBHNB5SVTrxZrxjI9crdkqPj9RtrXqCdginUVg hC1YZKXXoYh9rOL20IwP5fiAuqqfhxKGU77A74x3O0hpX1Ns8g1BShiGuc78egZG qE0sMS04q4DHGq0mgVOpc8DWkfNUzgaEsJmENo/Q/FeKzpRN9rFAdvzVEw3Fb268 0DJcOaIkJWwHJGJHmg2ljU59jJ7JgcTjpG4vANceF+YD6/eB93fRxTb1w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeehkedgleelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtdorredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepffduleehgefhkeefgfeftdfh kedutddvhfdukeeggeehieekffelhfelkeehteefnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 16 May 2023 01:42:42 -0400 (EDT) Date: Tue, 16 May 2023 14:42:39 +0900 From: Michael Paquier To: Andres Freund Cc: Alexander Lakhin , Michael Paquier , MARK CALLAGHAN , pgsql-hackers@lists.postgresql.org Subject: Re: benchmark results comparing versions 15.2 and 16 Message-ID: References: <20230508191117.v6475ip6hxpwukss@awork3.anarazel.de> <20230509164824.wtfn5aoggj4rcz67@awork3.anarazel.de> <20230516001447.xrijuuqcn5s7phuz@awork3.anarazel.de> <20230516005453.wrsldqhhbpy5gfnd@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sXYU0+mjBqt285Dw" Content-Disposition: inline In-Reply-To: <20230516005453.wrsldqhhbpy5gfnd@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --sXYU0+mjBqt285Dw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, May 15, 2023 at 05:54:53PM -0700, Andres Freund wrote: > Yes. numactl --physcpubind ... in my case. Linux has an optimization where it > does not need to send an IPI when the client and server are scheduled on the > same core. For single threaded ping-pong tasks like pgbench -c1, that can make > a huge difference, particularly on larger CPUs. So you get a lot better > performance when forcing things to be colocated. Yes, that's not bringing the numbers higher with the simple cases I reported previously, either. Anyway, even if I cannot see such a high difference, I don't see how to bring back the original numbers you are reporting without doing more inlining and tying COERCE_SQL_SYNTAX more tightly within the executor's portions for the FuncExprs, and there are the collation assumptions as well. Perhaps that's not the correct thing to do with SQLValueFunction remaining around, but nothing can be done for v16, so I am planning to just revert the change before beta1, and look at it again later, from scratch. -- Michael --sXYU0+mjBqt285Dw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmRjF88ACgkQnvQgOdby QH2SSA//Uvck7bkgLHo5piU9cFh9rpffg8O7MyrashShMVAiS5035DXPATKCBB/i kn6bJ0KxcajN0j0n875TnljDLASdWkLScyY2926O0ekoLy8TAourl5Rx09VoZXvL KJdWnHUa3hJ+289e2vPgYItrKupDNF57vamDA62WDPSeH0xgkLjbeEKC7in3nS9p +Wmg4+p+AzKwmTwTUyLqBz5Bh6s6rMZJcYHxPDjp3p3Jd/diBDaAbJHW35A8Hlq7 xOsqDJ5pgtFvenCJAOGShV2/nfCw2/4Y+/PQsm8U0B40u36AUniCRiCXx82ktI38 KCDY83GfD3qfCKwc2WuScWEj9tZ8ZqlUSfz9Bs8eLEiyDXWNpw9c+06UsBOFW5+4 aVoaKz4yiMbDxvAZif3eM+ysMwRAT4ey3u01Q8D9uqacL6TbZrUE4/x4PBPgd01S Rs1e4oysx+mxlvyFENkkYBMvzFmPOKgnqfIZQYPohKfsgretBaSOh7acsYwG+VH2 uQCI23D7sxNq43ETnA+rIheAUF5VK/6qhaaOoa1K38+AsyPxMRaPaUDwnb95YHnr 2AZmdAWG/4LVlq2iyTPoln4fRMHbpJFyK4sKgUEFKmd26nWk6OlLnGwSRolGwOZj ZDjnGmRs+8B14FoYPPH9IW5tNWeJVo39yJ9LhawRchiUpmhhNbk= =qX32 -----END PGP SIGNATURE----- --sXYU0+mjBqt285Dw--