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 1uTisx-008uGc-Gi for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Jun 2025 15:15:03 +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 1uTisu-0044nk-Nz for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Jun 2025 15:15:01 +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 1uTist-0044nY-MG for pgsql-hackers@lists.postgresql.org; Mon, 23 Jun 2025 15:15:01 +0000 Received: from fhigh-a5-smtp.messagingengine.com ([103.168.172.156]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1uTiss-003ZBo-1B for pgsql-hackers@lists.postgresql.org; Mon, 23 Jun 2025 15:14:59 +0000 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfhigh.phl.internal (Postfix) with ESMTP id 4593911400E8; Mon, 23 Jun 2025 11:14:57 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Mon, 23 Jun 2025 11:14:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1750691697; x=1750778097; bh=u94cuGFuB/ E1gtri7yWhB06JTF4ZntqfOwRO/EVeb34=; b=j7zdgbD01FfBXKxKZ2Ju1oBtSH qQkV1QkrujJyp0DEoKJ5Rce3UURcScWGy4o6kNLNZrdmB/++j8gov1jgKrZHXsSJ n5qNywS0BDIDnFRXwxjNQa7F3BsCHcxono5RxOqLBlFDHYxz8QH3fdsZ+ndjCMVV B1jUK6fYMN4DpPhAufpBLR0sYDzukmMOCsbhsfeujAXW2UPJurqVnE4MA7miKIZc UdxL8D395frDGtqesl/2Mxz+Pvyud7yI0i4on2NUKjACjpQwE0bb+088ipJ+bv+h LqnUVyZiVrz0k7gYTVYARygR8nNg5QoTd38fUg28Y/JiqREXEWOY7X6wGx/g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1750691697; x=1750778097; bh=u94cuGFuB/E1gtri7yWhB06JTF4ZntqfOwR O/EVeb34=; b=Tf9lXdaJmSCY61i1RF4H5RTqv/yOiXBhcR5zTKl8s0sBr0FubHw zyBA8p3KPFLqvJ0WPTXmt/Sx1iUDl19+ZYz0jmWmM4fL1AgHYTjdFnBzZjzhOj5Y BJkWxV9Lcv/HPWoBFQjCKQtLeucw9sEupkeee1650ENLi7hpKGNZci38mS+GXFaK 4yMrYcSL8ntQblVu5F69Jq0ayxjibbaYN7e4rTxYkzh9xL+P5KpLMABSjYCMyRE6 JJuGpjEA0XJYI5YtHL13goDZVh49iXnGjxTYNQiqKn6HxAm7THOUOv6lEaXPXVjX V8cEqDvQZVo2T7HmkyxnxoFf2GMErB1qpYQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddvgddujeefhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfhfgggtuggjsehttdfstddttddvnecuhfhrohhmpeetnhgurhgvshcu hfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtffrrghtth gvrhhnpeeffffgledvffegtdevlefgtdeggffhvdekgfegteeiveejkeetudelveejhfeu geenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnh gurhgvshesrghnrghrrgiivghlrdguvgdpnhgspghrtghpthhtohepfedpmhhouggvpehs mhhtphhouhhtpdhrtghpthhtohepmhihohhnseguvggsihgrnhdrohhrghdprhgtphhtth hopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhr ghdprhgtphhtthhopehtohhmrghsrdhvohhnughrrgesphhoshhtghhrvghsqhhlrdhorh hg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 23 Jun 2025 11:14:56 -0400 (EDT) Date: Mon, 23 Jun 2025 11:14:54 -0400 From: Andres Freund To: Christoph Berg Cc: Tomas Vondra , pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: Introduce pg_shmem_allocations_numa view Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2025-06-23 16:48:27 +0200, Christoph Berg wrote: > Re: To Tomas Vondra > > Why do we try to force the pages to be allocated at all? This is just > > a monitoring function, it should not change the actual system state. The problem is that the kernel function just gives bogus results for pages that *are* present in memory but that have only touched in another process that has mapped the same range of memory. > One-time touching might also not be enough, what if the pages later > get swapped out and the monitoring functions are called again? I don't think that's a problem, the process still has a relevant page table entry in that case. Greetings, Andres Freund