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 1uTp0Q-00ASHP-Km for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Jun 2025 21:47:10 +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 1uTp0O-006x0v-HO for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Jun 2025 21:47:09 +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 1uTp0O-006x0n-74 for pgsql-hackers@lists.postgresql.org; Mon, 23 Jun 2025 21:47:08 +0000 Received: from relay16.mail.gandi.net ([2001:4b98:dc4:8::236]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1uTp0M-003cCf-2N for pgsql-hackers@lists.postgresql.org; Mon, 23 Jun 2025 21:47:07 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 34A2E4386C; Mon, 23 Jun 2025 21:47:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vondra.me; s=gm1; t=1750715223; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Szuh5S8Usw4qvwJoUraNOFIevSvryOtdT7GcT0ibaNs=; b=PxEtn6Te1hlRpwTv9dSdlXGZ64fm+2pFIiDLNgcxVIO4NE2ZqCzL6JDJ4v+KW5NDagToeX TNPkoj4QQCCn0HEXUi6AWpABmjbRu0GRnYj2pbCyJHUJE1HfkuRQd0kFcLwmAIpVvVAaE3 z7SkTZat/aPidO4KzULM+KbUCfAnD99BOT600gas6DWjk40mXYM7AQZnS5u32EcI2B3B5M f3yh0QZ2L5eirXK4Cb5h3GCxPX5yi63k3lOdCfv+IFklZfxWNNxwAslPWT2IfVBE/s0RUc XwyEXvL0ZRsg650RPmnqpIEcdTETOHvyHbxb+2zVeZmMTbWtGJ5PinQH2tIFyA== Message-ID: Date: Mon, 23 Jun 2025 23:47:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgsql: Introduce pg_shmem_allocations_numa view To: Christoph Berg Cc: Andres Freund , Tomas Vondra , pgsql-hackers@lists.postgresql.org References: <6c9f9f7e-947b-4fc3-bdb6-b0696d7492e5@vondra.me> <0643ae61-cf9d-482c-9b2c-fb861b24fd22@vondra.me> Content-Language: en-US From: Tomas Vondra In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddvgddukedufecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpefvohhmrghsucggohhnughrrgcuoehtohhmrghssehvohhnughrrgdrmhgvqeenucggtffrrghtthgvrhhnpeeujeeghfduleelfeekleegveekvedutedtheektdelueevgfelgeevheehjeeivdenucffohhmrghinhepuggvsghirghnrdhorhhgnecukfhppeekiedrgeelrddvfedtrddvtdeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepkeeirdegledrvdeftddrvddtiedphhgvlhhopegluddtrddufeejrddtrddvngdpmhgrihhlfhhrohhmpehtohhmrghssehvohhnughrrgdrmhgvpdhnsggprhgtphhtthhopeegpdhrtghpthhtohepmhihohhnseguvggsihgrnhdrohhrghdprhgtphhtthhopegrnhgurhgvshesrghnrghrrgiivghlrdguvgdprhgtphhtthhopehtohhmrghsrdhvohhnughrrgesphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 6/23/25 23:25, Christoph Berg wrote: > 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. > No, I meant firstNumaTouch=false, so that the touching happens on every call. I was wondering if that makes all calls fail. > The memory touching is done for the first call in each backend, but > reconnecting doesn't reset it, I have to restart PG. > I don't follow. Why wouldn't reconnecting reset it? >> 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. > Or maybe the 32-bit chroot on 64-bit host matters and confuses some calculation. -- Tomas Vondra