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 1sOHhs-00DScM-17 for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Jul 2024 14:08:36 +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 1sOHhp-001zUu-QV for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Jul 2024 14:08:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sOHhp-001zUm-HH for pgsql-hackers@lists.postgresql.org; Mon, 01 Jul 2024 14:08:33 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sOHhn-0042cE-78 for pgsql-hackers@lists.postgresql.org; Mon, 01 Jul 2024 14:08:32 +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 461E8NkS2735447; Mon, 1 Jul 2024 10:08:23 -0400 From: Tom Lane To: Alvaro Herrera cc: Alexander Lakhin , Bharath Rupireddy , Andres Freund , Jeff Davis , pgsql-hackers@lists.postgresql.org, Jaime Casanova Subject: Re: LogwrtResult contended spinlock In-reply-to: <202407010910.ktykqkc52ffb@alvherre.pgsql> References: <202407010910.ktykqkc52ffb@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Mon, 01 Jul 2024 11:10:24 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2735445.1719842903.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 01 Jul 2024 10:08:23 -0400 Message-ID: <2735446.1719842903@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: >> because the failed assertion is: >> #ifndef PG_HAVE_ATOMIC_U64_SIMULATION >>     AssertPointerAlignment(&currval, 8); >> #endif Perhaps this assertion is what is wrong? If the platform has no native 8-byte alignment requirement, why do we think that atomics need it? regards, tom lane