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 1v9OxS-00HTHN-5V for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Oct 2025 14:27:57 +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 1v9OxQ-00DPC2-W7 for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Oct 2025 14:27:56 +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 1v9OxQ-00DPBT-MU for pgsql-hackers@lists.postgresql.org; Thu, 16 Oct 2025 14:27:55 +0000 Received: from relay7-d.mail.gandi.net ([2001:4b98:dc4:8::227]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1v9OxM-0026qZ-2A for pgsql-hackers@lists.postgresql.org; Thu, 16 Oct 2025 14:27:54 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 7A38C441BF; Thu, 16 Oct 2025 14:27:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vondra.me; s=gm1; t=1760624870; 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=KFj7AaerwsWoqmuuK0Zghnynam72PMnkrEkl+5jzzDE=; b=HzBjRGDxSOHQplRWbzmWjK3w5xjQyLQPsQsxaQNnhAWD5ztjxyV5QXNSQXm8etpYNuovOj PpxaPpsp1CQRts8P5lw8pZRwEpetDIwXti4wXiBPWrCh4B+qwBel4+LQD1EGkMIY9++F3H b8DoDOe6ghiPpft68O3vY0h855kg4dX9tOqYIKrZq4MF2se9mM2RSuE47+kG//xVTXh9Ci umKztOXaUwEI4utfbVm+nvMKbd0/snQq3zAs5UhNT5PgEuSec9D2v63xPpCSbQFz31pl7O 6CslSvjlvx8jgl2kR1H0JHDPwIRMpsnrl7g63091/d7kT+nmH9s+2XT/JFX7/A== Message-ID: <7bbc582b-cc70-4a6f-bbf2-b5fd9b13a867@vondra.me> Date: Thu, 16 Oct 2025 16:27:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: failed NUMA pages inquiry status: Operation not permitted To: Christoph Berg , Tomas Vondra , Jakub Wartak Cc: pgsql-hackers@lists.postgresql.org References: Content-Language: en-US From: Tomas Vondra In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-GND-Sasl: tomas@vondra.me List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/16/25 13:38, Christoph Berg wrote: >> src/test/regress/expected/numa.out | 13 +++ >> src/test/regress/expected/numa_1.out | 5 + > > numa_1.out is catching this error: > > ERROR: libnuma initialization failed or NUMA is not supported on this platform > > This is what I'm getting when running PG18 in docker on Debian trixie > (libnuma 2.0.19). > > However, on older distributions, the error is different: > > postgres =# select * from pg_shmem_allocations_numa; > ERROR: XX000: failed NUMA pages inquiry status: Operation not permitted > LOCATION: pg_get_shmem_allocations_numa, shmem.c:691 > > This makes the numa regression tests fail in Docker on Debian bookworm > (libnuma 2.0.16) and older and all of the Ubuntu LTS releases. > It's probably more about the kernel version. What kernels are used by these systems? > The attached patch makes it accept these errors, but perhaps it would > be better to detect it in pg_numa_available(). > Not sure how would that work. It seems this is some sort of permission check in numa_move_pages, that's not what pg_numa_available does. Also, it may depending on the page queried (e.g. whether it's exclusive or shared by multiple processes). thanks -- Tomas Vondra