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 1uTofa-00AM3C-16 for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Jun 2025 21:25:38 +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 1uTofX-006qSp-D5 for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Jun 2025 21:25:36 +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 1uTofX-006qSg-3n for pgsql-hackers@lists.postgresql.org; Mon, 23 Jun 2025 21:25:35 +0000 Received: from mout-p-102.mailbox.org ([2001:67c:2050:0:465::102]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uTofV-003c3q-1J for pgsql-hackers@lists.postgresql.org; Mon, 23 Jun 2025 21:25:34 +0000 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4bR1MS5bbqz9tDX; Mon, 23 Jun 2025 23:25:24 +0200 (CEST) Date: Mon, 23 Jun 2025 23:25:23 +0200 From: Christoph Berg To: Tomas Vondra Cc: Andres Freund , Tomas Vondra , pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: Introduce pg_shmem_allocations_numa view Message-ID: References: <6c9f9f7e-947b-4fc3-bdb6-b0696d7492e5@vondra.me> <0643ae61-cf9d-482c-9b2c-fb861b24fd22@vondra.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0643ae61-cf9d-482c-9b2c-fb861b24fd22@vondra.me> X-Rspamd-Queue-Id: 4bR1MS5bbqz9tDX List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Re: Tomas Vondra > True. If it fails on first call, but succeeds on the other, then the > problem is likely somewhere else. But also on the second call we won't > do the memory touching. Can you try setting firstNumaTouch=false, so > that we do this on every call? firstNumaTouch=false, it still fails on the first call. I assume you meant actually keeping firstNumaTouch=true - but it still fails on the first call. The memory touching is done for the first call in each backend, but reconnecting doesn't reset it, I have to restart PG. > At the beginning you mentioned this is happening on i386, armel and > armhf - are all those in qemu? I've tried on my rpi5 (with 32-bit user > space), and there everything seems to work fine. But that's aarch64 > kernel, just the user space if 32-bit. I'm testing on i386 in a chroot on a amd64 kernel. (same for x32) armel and armhf are also 32-bit chroots on a arm64 host. https://buildd.debian.org/status/package.php?p=postgresql-18&suite=experimental Maybe this is a kernel bug. Christoph