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 1qxueM-004JIM-TX for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Oct 2023 19:43:42 +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 1qxudN-003u5z-2s for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Oct 2023 19:42:41 +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 1qxudM-003u5T-PM for pgsql-hackers@lists.postgresql.org; Tue, 31 Oct 2023 19:42:40 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qxudK-0042MG-6n for pgsql-hackers@postgresql.org; Tue, 31 Oct 2023 19:42:40 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 39VJgXNJ2617043; Tue, 31 Oct 2023 15:42:33 -0400 From: Tom Lane To: Nathan Bossart cc: Jeff Davis , pgsql-hackers@postgresql.org, Xiang.Gao@arm.com Subject: Re: always use runtime checks for CRC-32C instructions In-reply-to: <2613682.1698779776@sss.pgh.pa.us> References: <20231030161706.GA3011@nathanxps13> <2427946.1698683963@sss.pgh.pa.us> <20231031033601.GA68409@nathanxps13> <20231031155518.GA70172@nathanxps13> <2613682.1698779776@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Tue, 31 Oct 2023 15:16:16 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2617041.1698781353.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 31 Oct 2023 15:42:33 -0400 Message-ID: <2617042.1698781353@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > I did a more thorough scrape of the buildfarm results. Of 161 animals > currently reporting configure output on HEAD, we have Oh ... take "current" with a grain of salt there, because I just noticed that I typo'd my search condition so that it collected results from all systems that reported since 2022-Oct, rather than in the last month as I'd intended. There are just 137 animals currently reporting. Of those, I broke down the architectures reporting using slicing-by-8: # select arch,count(*) from results where crc =3D 'slicing-by-8' group by = 1 order by 1; arch | count = --------------------+------- aarch64 | 1 macppc | 1 mips64eb; -mabi=3D64 | 1 mips64el; -mabi=3D32 | 1 ppc64 (power7) | 4 ppc64 (power8) | 2 ppc64le | 7 ppc64le (power8) | 1 ppc64le (power9) | 15 riscv64 | 2 s390x (z15) | 14 sparc | 1 (12 rows) The one machine using slicing-by-8 where there might be a better alternative is arowana, which is CentOS 7 with a pretty ancient gcc version. So I reject the idea that slicing-by-8 is an appropriate baseline for comparisons. There isn't anybody who will see an improvement over current behavior: in the population of interest, just about all platforms are using CRC instructions with or without a runtime check. regards, tom lane