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 1thm7b-006iVm-Pd for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Feb 2025 09:00:00 +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 1thm7a-008xkC-ES for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Feb 2025 08:59:58 +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 1thm7a-008xk3-28 for pgsql-hackers@lists.postgresql.org; Tue, 11 Feb 2025 08:59:58 +0000 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1thm7W-000C4k-2h for pgsql-hackers@postgresql.org; Tue, 11 Feb 2025 08:59:57 +0000 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-308edbc368cso19190251fa.1 for ; Tue, 11 Feb 2025 00:59:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeltef.nl; s=google; t=1739264394; x=1739869194; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ciPVFU6WoqqCNpL0sbRefTiSfp8bacDwad3XyZYwFOw=; b=tsiV/fGGQY1/o8HYIGBQNiuYb5CJag6Q26XE/S9+0lcecBRP73rEW5kVjWV33BxFZC VgBLCnssrYzH+kMStuo9pGNYPcMub+lNtGDbMaiowyfz1q/rYNRS2ks/XCwyVm69yD1F qY6h9/E9YRC8WgKlvjKvuAw/Mxxw5qIQpy7KwfKmPssjlpNSF6bZicQ6bo2gF/EHu4MB 093yBmRFXnXmrmITsIgkCjYgeeuBcI7qmrgcQ1iIhnDdEtNNLEJqCEQbk61zYYScvODB 72zeM1ddDgLseBMmSOEYX8eaoEYzvz8B2PN5DURQQddV9fdI1l0a8V6arcLQumEpJBMg iMvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739264394; x=1739869194; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ciPVFU6WoqqCNpL0sbRefTiSfp8bacDwad3XyZYwFOw=; b=iRuvNOy3GKYvxeri8qRxet4h6auLso8uZL1u8D+NiOL/eZEicnWTxe4AxQHIRb9vGK 2BouLDyzxnCLzHgUQEqP+edoo1z8LKKVwAqgsk0euBIXcF+UpbkC4i3kP5YwiJn9JvDt oMP2dzDV2ay0gwI2e2RTJg/dfK6RnUjxfC53wrYvzbHRxbhxg7JQnU0UZy03/wtL8zoC 7QfBeHxRole5rECcSGnRqludbvSG0jaCHhwrsu+Jc5bHWCmnExz+blW7diW+IcPT/8vf rwoGpWjlmUAQachhNL2jxnFAHvaHaaVtcIv2bat0dWHO60rdJNtcz8mdS0eXstjkUe7o ARGg== X-Forwarded-Encrypted: i=1; AJvYcCUoP5s2j4sJbCv2lKn/x1ZM0QclDqnR8Pfi6hjMVHYcWZN3963XT88r7jDnRzDCuYYT5oEHJ7hd9FjfdT2Q@postgresql.org X-Gm-Message-State: AOJu0YzTs16MsBqwDD9DtRgi3PAsoNI1D3vo0ughNzcIimAIbYNfmUlV KaK2LFgOQhCox+Tzj4EsctnSiHrF419IPeL4iDaM5sWEcQwGxtOLvxEvsZjecLQRwCutGMNV841 9llDOsejRk14RSxTsbF6rnDDuTF3MqPOinNNNPg== X-Gm-Gg: ASbGncvos+cD/SGdQHXKMoy1TgRH7kK28COCEb/pQJVk9X3RZN6JfPU4Jes0nhUZI3k nCGb8LhZToAdpB0vqd2Smg8QPhzfgfq50fco5ZCp4qQi0r9skyurqNrcLQxUowHt2YZy5mw5vZg == X-Google-Smtp-Source: AGHT+IEzI+08KGuFca7NgSI90OFn3Se1jiH+JIvBJvJMtfz0l8qXMhxp942R9nqKcEf06CYUXWmpl1yGhe8COGpLgx0= X-Received: by 2002:a05:651c:541:b0:306:10d6:28ab with SMTP id 38308e7fff4ca-308f834a199mr10422201fa.5.1739264394332; Tue, 11 Feb 2025 00:59:54 -0800 (PST) MIME-Version: 1.0 References: <2c9d6eaf26df17bec13bb03bf1e9bcbb@oss.nttdata.com> <2035079.1739124342@sss.pgh.pa.us> In-Reply-To: From: Jelte Fennema-Nio Date: Tue, 11 Feb 2025 09:59:43 +0100 X-Gm-Features: AWEUYZnwOKgMhgXmtWac5tyQvgNsJkAiRPxIozcZh2I-sZvhYqViUek-LUxbxGM Message-ID: Subject: Re: RFC: Allow EXPLAIN to Output Page Fault Information To: Andres Freund Cc: Tom Lane , torikoshia , pgsql-hackers@postgresql.org, rjuju123@gmail.com, Bruce Momjian Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 11 Feb 2025 at 00:53, Andres Freund wrote: > > I mostly meant worker based AIO, yes. I haven't checked how accurately these > > are kept for io_uring. I would hope they are... > > It does look like it is tracked. nice! > > The thing is that you'd often get completely misleading stats. Some of the IO > > will still be done by the backend itself, so there will be a non-zero > > value. But it will be a significant undercount, because the asynchronously > > executed IO won't be tracked (if worker mode is used). Yeah, makes sense. Like I said, I would be completely fine with not showing these numbers at all/setting them to 0 for setups where we cannot easily get useful numbers (and this bgworker AIO would be one of those setups). > Independent to of this, it's probably not good that we're tracking shared > buffer hits after io combining, if I interpret this correctly... That looks to > be an issue in master, not just the AIO branch. You mean that e.g. a combined IO for 20 blocks still sounds only as 1 "shared read"? Yeah, that sounds like a bug.