Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDjiJ-0006LN-9D for pgsql-bugs@arkaria.postgresql.org; Wed, 11 Aug 2021 08:35:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mDjiI-0005Rf-8e for pgsql-bugs@arkaria.postgresql.org; Wed, 11 Aug 2021 08:35:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDjiI-0005RX-10 for pgsql-bugs@lists.postgresql.org; Wed, 11 Aug 2021 08:35:50 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDjiC-0003Sy-Ox for pgsql-bugs@lists.postgresql.org; Wed, 11 Aug 2021 08:35:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=CcdneEUk9N7ZGnxk8akW/iprperi84r+ME6y/udH2Ns=; b=o0Fwm3QSipzkLMg4mMlijSQ7rK qgFUXOfMPbjqEoLzzZfCGKpFsjSaZ1k1a+s/jSZBYtswm0BPGpB7NtAIiZ988u19CWS9rR18Z+qMP WMjn0CHmaKh0orrW3Wctz+f9JLwBseHw4hBBIZTo9q22Hu2NzSt8jQkYr8nXdc4ZG+uA=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1mDji9-0006qo-3P; Wed, 11 Aug 2021 10:35:41 +0200 Date: Wed, 11 Aug 2021 10:35:40 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Masahiko Sawada Cc: PostgreSQL mailing lists Subject: Re: I/O timigns don't include time for temp buffers Message-ID: <20210811083540.GA24169@depesz.com> Reply-To: depesz@depesz.com References: <20210709084355.GA6251@depesz.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Aug 10, 2021 at 03:15:27PM +0900, Masahiko Sawada wrote: > > This shows that the Hash wrote 1100 temp buffers, but I/O timings didn't increase at all. > Yes, we don't collect the time spent reading and writing temp files. And this is the source of my concern. Not that we have this documented in one way or another, but why exactly aren't we taking temp buffers into timing? There are cases where it is the temp buffers IO that is using most of the time. Best regards, depesz