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.96) (envelope-from ) id 1w06WX-001cV9-0W for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Mar 2026 23:30:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w06WV-006gMx-1x for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Mar 2026 23:30:00 +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.96) (envelope-from ) id 1w06WV-006gMl-0B for pgsql-hackers@lists.postgresql.org; Tue, 10 Mar 2026 23:29:59 +0000 Received: from fout-a4-smtp.messagingengine.com ([103.168.172.147]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w06WT-00000001WWx-3JUJ for pgsql-hackers@lists.postgresql.org; Tue, 10 Mar 2026 23:29:58 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 65424EC08E2; Tue, 10 Mar 2026 19:29:57 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Tue, 10 Mar 2026 19:29:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; 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=1773185397; x=1773271797; bh=0sJ42aWLXe hzZ212ZNDY7iVl3AGXaKDpg+1DZf5i0Dc=; b=mY4i7q4HGD3TgCDXZD7TkNRapf r28FjDvMg8wyLEU42TM5vUBWyJrKjUs44L2t62XbPfCbOskR+zN1VCkeko5IDTyt RWj+zcKY+J2L/y+eR24l/Aq+Orgedf8eCxFfrlxGqc3oo1o2Dw70pK9debeejKIt yVuq5iSaWDu5YYaZWmyc8WlWYoJIRqxXXsrCVWd5moQ4fLoTloJw4ICoCr8kGaC4 114+C3LKz7uMiooU7cG9FYJEsE4cNf18liMAW8AVGKXuXOo/1aWrPiGgYSStI3+S 8vgIjcCWOOJ0AO4pQ1vtYm681IO9Up+cbczQVmlK4deWpvne+GXqH8BbKYrA== 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= 1773185397; x=1773271797; bh=0sJ42aWLXehzZ212ZNDY7iVl3AGXaKDpg+1 DZf5i0Dc=; b=IL9thv5mvALaHDiQVWyU6eRl4l0lbN6+r3sqhGvxX4OdVNKwWZj 5fnt6nQ+ehsBk7C0AYdranc40//RTH8SrtSWfIQahK9ZZ5WzwbzVaoxBKaYIGI6n o462e4w+97zL8lmqVEXiuZRM+TCNDS1Y0RCGcJ902B5PK75IQP8Rifj3hjp75+aP XTVUY/mtfShZsRUD6+LgbDyE1OulgZsqf8Oq4PXqRoHiuEhsS6gXoPt7/zXxBdeV Bd33OqR9Qc9wzegMhWO6vWkdylGLF3DEvnDR69OgUVrP+E5zuPaqznealp3a5IFa GRrOaBk1A9rfb6047jHdeMHRocEZS4z/b7Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvkedvfeegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeeg fffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghnug hrvghssegrnhgrrhgriigvlhdruggvpdhrtghpthhtohepgihunhgvnhhgiihhohhusehg mhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtsh drphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepsgihrghvuhiikedusehgmhgr ihhlrdgtohhm X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 10 Mar 2026 19:29:55 -0400 (EDT) Date: Wed, 11 Mar 2026 08:29:51 +0900 From: Michael Paquier To: Andres Freund Cc: Xuneng Zhou , pgsql-hackers , Nazir Bilal Yavuz Subject: Re: Streamify more code paths Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OTeYEqXDvWd0QgXn" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --OTeYEqXDvWd0QgXn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Mar 10, 2026 at 07:04:37PM -0400, Andres Freund wrote: > It might be a good idea to run the benchmarks with debug_io_direct=data. > That'll make them very slow, since the write side doesn't yet use AIO and thus > will do a lot of synchronous writes, but it should still allow to evaluate the > gains from using read stream. Ah, thanks for the tip. I'll go try that. > The other thing that's kinda important to evaluate read streams is to test on > higher latency storage, even without direct IO. Many workloads are not at all > benefiting from AIO when run on a local NVMe SSD with < 10us latency, but are > severely IO bound when run on a cloud storage disk with 0.5ms - 4ms latency. My previous run was on a cloud instance, I don't have access to a SSD with this amount of latency locally. One thing that was standing on is the bloom bitmap case that was looking really nice for a large number of rows, so I have applied this part. The rest is going to need a bit more testing to build more confidence, as far as I can see. -- Michael --OTeYEqXDvWd0QgXn Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmmwqW8ACgkQnvQgOdby QH2wtg/+PisfImU/u9kA66LwiSQss5ZJnuoIK9Ori12xtgNZ6bxee5NbPmqszuqC lgwKL7imFL8+dIMGMgO1OAFJicizwem+PKrUpJ21WyEXP94WPgjcIjM6O7sjxT2j uX9g5L/9pltAkz2EuqFf6EfJvT8UBwpyjGD1dGGIF6w3PWxOKT4p74osTYLilrJj Ck/t/prWeBxoDdJZPTJGyae1jUYmut4VdMcZQUhhGw3GHbgNoWcq807aTAkxanRK NnP5NOUvZNDjQtVAoxXKEc+bhS3hTNFOu95HXz3hF2KaI1SzBSca5V2jcuC6taef UoduKoqxmMNVFz3XO8EeAVsNHA6nqXp4NZZwk3kqBaqGqUA6C45zYZiXRoJMQjWK 1RikC6p7a6hRvqS9rz7p+USUBAlvEiXF3V4i9xFcpD7nw5T/UDQbjnaAJzOBfYjh mQgAllGlqR1wb30FCnB+smhedr9NA32p2cYA7/wc6nptGiocLY00e7NLeZXisa2e LAWvmFfzyfrkmBfmTJ5zXK7/8V57srlcZZmyjhUohZ7j4gUOWj8mf1cIjNYGzYQw SdOzQfbrp8CBp1yT7wgRJARNqckJrPtJECKfphlpMiQD1MVAF5nGsiGstXwyiO7D ElHO90P+rwE4HsRh008uMhZNcEdBYXtk+IBo+MbBUCJ8K70/pHY= =K6v6 -----END PGP SIGNATURE----- --OTeYEqXDvWd0QgXn--