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 1tQfIA-004DBg-VP for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Dec 2024 04:16:11 +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 1tQfIA-0009tH-9g for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Dec 2024 04:16:10 +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 1tQfIA-0009t9-0h for pgsql-hackers@lists.postgresql.org; Thu, 26 Dec 2024 04:16:09 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tQfI4-000bDd-04 for pgsql-hackers@postgresql.org; Thu, 26 Dec 2024 04:16:08 +0000 Received: from oss.nttdata.com (localhost [127.0.0.1]) by oss.nttdata.com (Postfix) with ESMTPA id 1D6CA619B6; Thu, 26 Dec 2024 13:15:59 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 26 Dec 2024 13:15:59 +0900 From: torikoshia To: Tom Lane Cc: Pgsql Hackers Subject: Re: RFC: Allow EXPLAIN to Output Page Fault Information In-Reply-To: <1614321.1735055528@sss.pgh.pa.us> References: <1614321.1735055528@sss.pgh.pa.us> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <6023c8ac6b1823e2126a001f668ef245@oss.nttdata.com> X-Sender: torikoshia@oss.nttdata.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-12-25 00:52, Tom Lane wrote: > torikoshia writes: >> I have attached a PoC patch that modifies EXPLAIN to include page >> fault >> information during both the planning and execution phases of a query. > > Surely these numbers would be too unstable to be worth anything. Thanks for your comment! Hmm, I didn't know these are unstable. If there are any reasons, I'd like to know about them. I would like to explore alternative methods for measuring resource usage, but I am not aware of other approaches. (IIUC pg_stat_kcache[1], which is said to provide information about filesystem layer I/O usage also gets metrics from getrusage(2)) [1] https://github.com/powa-team/pg_stat_kcache -- Regards, -- Atsushi Torikoshi Seconded from NTT DATA GROUP CORPORATION to SRA OSS K.K.