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 1klGL0-0000H8-Eb for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Dec 2020 19:01:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1klGKz-0005r2-Cp for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Dec 2020 19:01:49 +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 1klGKz-0005qv-5N for pgsql-hackers@lists.postgresql.org; Fri, 04 Dec 2020 19:01:49 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1klGKx-0001m0-7X for pgsql-hackers@postgresql.org; Fri, 04 Dec 2020 19:01:48 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id E65A65F799; Fri, 4 Dec 2020 14:01:45 -0500 (EST) Date: Fri, 4 Dec 2020 14:01:45 -0500 From: Stephen Frost To: Andres Freund Cc: Thomas Munro , Tomas Vondra , Tomas Vondra , Dmitry Dolgov <9erthalion6@gmail.com>, David Steele , Alvaro Herrera , pgsql-hackers Subject: Re: WIP: WAL prefetch (another approach) Message-ID: <20201204190145.GW16415@tamriel.snowman.net> References: <20201010112935.qrhm572v4djrjljo@development> <5437ce5b-d305-bd85-23ec-ddb15735d93f@enterprisedb.com> <20201113151344.GU16415@tamriel.snowman.net> <20201118210039.GP16415@tamriel.snowman.net> <20201204182738.GU16415@tamriel.snowman.net> <20201204185157.w3qtqyym6fixmnrg@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="COhulpXxI8TEX8GP" Content-Disposition: inline In-Reply-To: <20201204185157.w3qtqyym6fixmnrg@alap3.anarazel.de> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --COhulpXxI8TEX8GP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Andres Freund (andres@anarazel.de) wrote: > On 2020-12-04 13:27:38 -0500, Stephen Frost wrote: > > If I follow correctly, this patch will scan ahead in the WAL and let > > the kernel know that certain blocks will be needed soon. Ideally, > > though I don't think it does yet, we'd only do that for blocks that > > aren't already in shared buffers, and only for non-FPIs (even better if > > we can skip past pages for which we already, recently, passed an FPI). >=20 > The patch uses PrefetchSharedBuffer(), which only initiates a prefetch > if the page isn't already in s_b. Great, glad that's already been addressed in this, that's certainly good. I think I knew that and forgot it while composing that response over the past rather busy week. :) > And once we have AIO, it can actually initiate IO into s_b at that > point, rather than fetching it just into the kernel page cache. Sure. Thanks, Stephen --COhulpXxI8TEX8GP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJfyoeZAAoJEO1sijiDR2RV25MP/2EK7rtmyg7y/1FB1cQs+iNN 4W/L4e3jjihKq3IP5TfPYxyyQ2Zm11w9Di0/xTzZThasH6z9PhlDxlAY5SC+8Tuf ACSxsVClTJ7v6hyfBGyxlVG8N6EnXBQoHLEMX8Mfg0BTj0Z1I3QYacfQgP2yPdCa TyuR37ddr6mJo7XjMf96YejzXpzmvi6DLRoO1yRj3P+p811ydnjiWhzml4G982p4 wkVOXaqoFpMTW80IzMQMAMsCguEntsDazI52OTaO/M0vkGrQWERvTZqmO5JAj7eG YlSndUpTLtCLaNWoqKexpbjkZbsebvjSktUvO5hSn+YO31gjFFe54jl71LmEliN2 IlbX8YoXlXiv+ECXaEjpwI+tdrTRhNm6Shi6BwB2zGZFvWl7XVkn5irTVRcoKLRG Fm/aeZhLKHxxpAx+i2mN3pHHHVqxzV2j9mtidpn36UpfZAMhS9DOTngemlAKsmIL f7BsF63UKlkG8VpCGbv+pYVdB89x3prb67TTuF6p8rrplUTBJQSJtCNqRyeYzbwC e3HA2cHElGL34ajE6ro7tzX/1+NKTakv1fpeNv4L267XKX10sKZ2wTlIGiGMekC0 EEPUg6IiFPoP2BN1CSYmrxNGFq7a3J/WoYl40vsiayU8Wx5GE62/nqJVsyKD6vwz 0WbVke0NzAi1OV2qKIwS =c3aB -----END PGP SIGNATURE----- --COhulpXxI8TEX8GP--