Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1pRiuQ-0003gj-2t for mharc-grub-devel@gnu.org; Mon, 13 Feb 2023 19:10:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRiuO-0003fp-D7 for grub-devel@gnu.org; Mon, 13 Feb 2023 19:10:56 -0500 Received: from gate.crashing.org ([63.228.1.57]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRiuM-0000vw-LX for grub-devel@gnu.org; Mon, 13 Feb 2023 19:10:55 -0500 Received: from [IPv6:::1] (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 31E09nH3026830 for ; Mon, 13 Feb 2023 18:09:49 -0600 Message-ID: Subject: Re: Incorrect comment in disk.h (and bigger cache) ? From: Benjamin Herrenschmidt To: The development of GNU GRUB Date: Tue, 14 Feb 2023 11:09:48 +1100 In-Reply-To: <52405c34-46b7-40fb-6725-9270109cadac@ionic.de> References: <37de5ef449072815c134b7bbb6349d6e225eb058.camel@kernel.crashing.org> <52405c34-46b7-40fb-6725-9270109cadac@ionic.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu1 MIME-Version: 1.0 Received-SPF: pass client-ip=63.228.1.57; envelope-from=benh@kernel.crashing.org; helo=gate.crashing.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2023 00:10:56 -0000 On Thu, 2023-02-09 at 01:24 +0100, Mihai Moldovan wrote: > > I'm tempted to increase this to speed things up on UEFI especially, > > either > > that or maybe changing grub_fshelp_read_file() so that get_block > > can > > optionally return a count of contiguous blocks so we can issue > > larger > > requests ? >=20 > Is that really necessary? Note that this is also used for legacy > MBR/BIOS > systems and I faintly remember places using that, which may do so in > a fixed > way, so I advise to check it well if you really intend to change it. >=20 That's ok as the MBS/BIOS bits will impose limits at other levels. The reason I want larger IOs is that it will help with cloud setups where the EFI "disk" is actually =C2=A0some kind of networked storage. We are chasing milliseconds in instance launch times :-) Anyways, I think the "right" approach is to make get_blocks() called by=C2=A0grub_fshelp_read_file() optionally return the number of contiguous blocks, so we can chose to do larger chunks. I'll look into it if/when I have time. Cheers, Ben.