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 1uUiMU-007T7H-Nw for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Jun 2025 08:53:39 +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 1uUiMS-00A2F2-JT for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Jun 2025 08:53:37 +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 1uUiMS-00A2Eu-89 for pgsql-hackers@lists.postgresql.org; Thu, 26 Jun 2025 08:53:36 +0000 Received: from relay1-d.mail.gandi.net ([2001:4b98:dc4:8::221]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uUiMQ-004Bxb-12 for pgsql-hackers@lists.postgresql.org; Thu, 26 Jun 2025 08:53:36 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id DF1D343302; Thu, 26 Jun 2025 08:53:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vondra.me; s=gm1; t=1750928010; 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=qLT/OVfLLmA6WdUh5Airkrve3fGxbFDUiQ4dN/RCPdI=; b=giiwQaeLhj1SoBdRAzQ8vc6Rq1oT2nvSC2VSYYdzVdpqHIhCM2c742CR1cfwohDopKCJPQ ZDrJl1/OTVxwsKtmOJAlyoouwan26YtKz/9T5aJKlDegwddiU1TZIDEpaCMeSRGpLZ0Hnf 6GAj9MbJjuwP/IAhCWrrylVALIQwG4kARzhq1JscC3TuYQKbaoYjqTjRZrLTAAzE86ktVs 2VgwlLoXZKAMzNxFyYgudFby5kklN49hjxr4km3nO4Wk3kUL2ZSrfpa288+lCwky1TyXnq llfQmjSCVXfzLDpAKXcw8ypyaY7A7w4nVbjHLmmTjotiGc9fakrmkMn8wEm24g== Message-ID: <403f66db-6e7f-4522-8cca-0a416c65325e@vondra.me> Date: Thu, 26 Jun 2025 10:53:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgsql: Introduce pg_shmem_allocations_numa view To: Bertrand Drouvot Cc: Christoph Berg , Andres Freund , Tomas Vondra , pgsql-hackers@lists.postgresql.org References: <6342f601-77de-4ee0-8c2a-3deb50ceac5b@vondra.me> <8649a4e3-c60d-4f37-aa6f-e7e7c14c581e@vondra.me> <8961c087-e49b-4b16-9437-31331625215c@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: gggruggvucftvghtrhhoucdtuddrgeeffedrtddvgddvhedvvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpefvohhmrghsucggohhnughrrgcuoehtohhmrghssehvohhnughrrgdrmhgvqeenucggtffrrghtthgvrhhnpedufeeviefgueetgeekleeuveehhedthffggeehfeeuteffgeefheelveevhfetvdenucffohhmrghinhepmhgrrhgtrdhinhhfohenucfkphepkeeirdegledrvdeftddrvddtieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeekiedrgeelrddvfedtrddvtdeipdhhvghloheplgdutddrudefjedrtddrvdgnpdhmrghilhhfrhhomhepthhomhgrshesvhhonhgurhgrrdhmvgdpnhgspghrtghpthhtohephedprhgtphhtthhopegsvghrthhrrghnuggurhhouhhvohhtrdhpghesghhmrghilhdrtghomhdprhgtphhtthhopehmhihonhesuggvsghirghnrdhorhhgpdhrtghpthhtoheprghnughrvghssegrnhgrrhgriigvlhdruggvpdhrtghpthhtohepthhomhgrshdrvhhonhgurhgrsehpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhst hhgrhgvshhqlhdrohhrgh X-GND-Sasl: tomas@vondra.me List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 6/26/25 08:00, Bertrand Drouvot wrote: > Hi, > > On Tue, Jun 24, 2025 at 10:32:25PM +0200, Tomas Vondra wrote: >> On 6/24/25 17:30, Christoph Berg wrote: >>> Re: Tomas Vondra >>>> If it's a reliable fix, then I guess we can do it like this. But won't >>>> that be a performance penalty on everyone? Or does the system split the >>>> array into 16-element chunks anyway, so this makes no difference? >>> >>> There's still the overhead of the syscall itself. But no idea how >>> costly it is to have this 16-step loop in user or kernel space. >>> >>> We could claim that on 32-bit systems, shared_buffers would be smaller >>> anyway, so there the overhead isn't that big. And the step size should >>> be larger (if at all) on 64-bit. >>> >>>> Anyway, maybe we should start by reporting this to the kernel people. Do >>>> you want me to do that, or shall one of you take care of that? I suppose >>>> that'd be better, as you already wrote a fix / know the code better. >>> >>> Submitted: https://marc.info/?l=linux-mm&m=175077821909222&w=2 >>> >> >> Thanks! Now we wait ... > > It looks like that the bug is "confirmed" and that it will be fixed: > https://marc.info/?l=linux-kernel&m=175088392116841&w=2 > Yay! I like how the first response is "you sent the patch wrong" ;-) cheers -- Tomas Vondra