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 1uUPSu-002pQs-SF for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Jun 2025 12:43:01 +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 1uUPSs-0039Zw-Le for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Jun 2025 12:42:59 +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 1uUPSs-0039Zk-4u for pgsql-hackers@lists.postgresql.org; Wed, 25 Jun 2025 12:42:58 +0000 Received: from fhigh-b4-smtp.messagingengine.com ([202.12.124.155]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uUPSp-0041sE-2M for pgsql-hackers@lists.postgresql.org; Wed, 25 Jun 2025 12:42:58 +0000 Received: from phl-compute-02.internal (phl-compute-02.phl.internal [10.202.2.42]) by mailfhigh.stl.internal (Postfix) with ESMTP id E80137A010F; Wed, 25 Jun 2025 08:42:52 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Wed, 25 Jun 2025 08:42:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm3; t=1750855372; x= 1750941772; bh=2w8lxciuVe5WjU67qiRi4yy1TYoLzXnZOK4Z9xd8o/o=; b=j ced35nmt1jJPf629lc3HRtwlazKdsKrriQMhjs9NVVOm+UG7DE267G+3xBn1w7PJ B5f9BcuN8EB+psyLc5XOdYRyOHHLFxNtZpLwnDBL6KuNbPSGRvsrHw1qA8Kv5uNk Bj1nMP3GLUoVUuKapwJBGsn4mHGhT0X7lmcV6TY0adgQWiqtnu3306Y+BGn8pttl hsSiVKYQeAwt9kc3u4lHP5SfU8CLVVTBkl7VBSEcU2WpVVyf/2e9AhHA//qff21m Be6btmc9d2RgxsY1SdFlLKZ6/p97pRuq32ti5JmSb57ike3uBVRKD8HVEqPshUXs zNap0Qbi5QaZrHTNRZPcg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1750855372; x=1750941772; bh=2 w8lxciuVe5WjU67qiRi4yy1TYoLzXnZOK4Z9xd8o/o=; b=Kwg9pffR2Z4RYHq4X rIyFczAgtOi0nM3uc7pjFqKxZGBFGQBo0geSeYUTq+Ve25sYcDCiJ9cGWwOz4hnM gLZw+lb2GGXRxaKNb4ClpbaswYmUgOQccp1nssdva6Rh7g1u1jp51LWK5K9AbV7a +1mchxGrF95yjy/JDfyeqxGGHHSa+CJEy/62Vsbgd4iKF7RAV8V82z5drvpgF1dZ mJ6L1IZwclYYPWxMWW5WCHcvb9yNfr0vwQv02RgTNPNDSYUPW/GinU2JqgkCeI4E jje9/hLgzrr1lX/De+2q7DpK4sUvpqM37F8DRHwVESXP+vL+EeWzv5jtcFI71K92 0hM9Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddvgddvvdektdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpemllhhvrghrohcu jfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgeqnecuggftrf grthhtvghrnhepfeduvdfhvdekteehieehgfeuveeuteejjeegleekledtffejkeevtddu hfekuefgnecuffhomhgrihhnpehjvghffhhgvggvrhhlihhnghdrtghomhdpvghnthgvrh hprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomheprghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvpdhnsggprhgtph htthhopeejpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegrnhgurhgvshesrghn rghrrgiivghlrdguvgdprhgtphhtthhopehmhihonhesuggvsghirghnrdhorhhgpdhrtg hpthhtohepjhgrkhhusgdrfigrrhhtrghksegvnhhtvghrphhrihhsvggusgdrtghomhdp rhgtphhtthhopegsvghrthhrrghnuggurhhouhhvohhtrdhpghesghhmrghilhdrtghomh dprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgv shhqlhdrohhrghdprhgtphhtthhopehtohhmrghsrdhvohhnughrrgesphhoshhtghhrvg hsqhhlrdhorhhgpdhrtghpthhtohepthhomhgrshesvhhonhgurhgrrdhmvg X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 25 Jun 2025 08:42:51 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1750855369; bh=A8XTb4F3nMHzewlV6aYiFhNiQVRJnTpaCFfFcsi1Un0=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=LH0Fk8WAYkcWjqzt913wPnV141dJ0OLEvk/xh5tpXvHdS2+ocox0tF2TtplPvvyCl G8tgluexDRF9KnH6mYqCftqcSwyr8PKY5FOO+gBOlB4Hm3wE8U/ODeMVKwW61LzmL+ 5ZOeHYXI7yqsLA/PGEX5ZE6MmP0Z3fqDwScEMjQ49mYtFdc8Zm67c4yADsmFiGS52w fTOn2DUEZ8kMkCRU1JIoyZmbW0l8zNiOsP3eCfMFpgLJxsDaEEy9j8s402B2QYcmTi /oVbdXPvFs0DeJxUPazSPDymbB3CvdAG6o/nOhfW2a3P4VtXg8QJVHZgu0jAEvZZoe D7rSMiHIFc1zA== Received: by schmee.kurilemu.local (Postfix, from userid 1000) id 576B48F; Wed, 25 Jun 2025 14:42:49 +0200 (CEST) Date: Wed, 25 Jun 2025 14:42:49 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Tomas Vondra Cc: Jakub Wartak , Christoph Berg , Bertrand Drouvot , Andres Freund , Tomas Vondra , pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: Introduce pg_shmem_allocations_numa view Message-ID: <202506251242.3xobc3f4rthr@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Jun-25, Tomas Vondra wrote: > Not sure. I thought NUMA doesn't matter very much on 32-bit systems too, > exactly because those systems tend to use small amounts of memory. But > then while investigating this issue I realized even rpi5 has NUMA, in > fact it has a whopping 8 nodes: > > debian@raspberry-32:~ $ numactl --hardware > available: 8 nodes (0-7) Interesting. Mine only shows a single node. alvherre@amras:~ $ uname -a Linux amras 6.12.25+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30) aarch64 GNU/Linux alvherre@amras:~ $ sudo numactl --hardware available: 1 nodes (0) node 0 cpus: 0 1 2 3 node 0 size: 8051 MB node 0 free: 202 MB node distances: node 0 0: 10 alvherre@amras:~ $ sudo lscpu Architecture: aarch64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Vendor ID: ARM Model name: Cortex-A76 Model: 1 Thread(s) per core: 1 Core(s) per cluster: 4 Socket(s): - Cluster(s): 1 Stepping: r4p1 CPU(s) scaling MHz: 62% CPU max MHz: 2400.0000 CPU min MHz: 1500.0000 BogoMIPS: 108.00 Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp [...] NUMA: NUMA node(s): 1 NUMA node0 CPU(s): 0-3 Did you enable something special on it maybe? ... Oh, I found this: https://www.jeffgeerling.com/blog/2024/numa-emulation-speeds-pi-5-and-other-improvements Sounds like you have this in your system and I don't in mine. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/