From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1QAcwf-0005kr-K3 for mharc-grub-devel@gnu.org; Fri, 15 Apr 2011 02:55:57 -0400 Received: from eggs.gnu.org ([140.186.70.92]:49490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAcwd-0005kd-HF for grub-devel@gnu.org; Fri, 15 Apr 2011 02:55:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QAcwc-0007ap-JP for grub-devel@gnu.org; Fri, 15 Apr 2011 02:55:55 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:50367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAcwc-0007aZ-FG for grub-devel@gnu.org; Fri, 15 Apr 2011 02:55:54 -0400 Received: by wwb39 with SMTP id 39so2450414wwb.30 for ; Thu, 14 Apr 2011 23:55:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:x-enigmail-version:content-type; bh=9EUspNjohiPaCkcgVg6DPF+upGc7jMOpny2fwL0JCDc=; b=tXP4ot0QAks51epzv4cpaOJUSczbUlI4A3uDXm7RZy5OCbtHijO68wQXEAeAGWZQUD E74jDUpvqA4J6SwigbBF3KYHLDj1RYkh0PFkubddh+yZuDMa7ACGM1p5VqkjaWJ2GY7b 1LUWhxtsrvENRLEdxW1nwka/UXtCUAJBWIUlM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=e4mN1UdkXPREBLvghajD3QY6FNDHsVMt4xOVR7swaR4w6chrZCkjieCcIjgwbVu01F wjuw5GSTHKOFRqVp1gxFMYu8Nrvf3kWDWCWlzzs6ogpBtwDGasiDD6RJjX5uiWDHLSo7 X/dO5Kvxu3Eglb59vAJ/l0KNgOJkWPkDZ8fCc= Received: by 10.227.163.13 with SMTP id y13mr1713024wbx.56.1302850553135; Thu, 14 Apr 2011 23:55:53 -0700 (PDT) Received: from debian.x201.phnet (gprs15.swisscom-mobile.ch [193.247.250.15]) by mx.google.com with ESMTPS id x1sm1412868wbh.53.2011.04.14.23.55.51 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 14 Apr 2011 23:55:51 -0700 (PDT) Message-ID: <4DA7EBF3.8090007@gmail.com> Date: Fri, 15 Apr 2011 08:55:47 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110402 Iceowl/1.0b2 Icedove/3.1.9 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: Grub2 EFI: Image loading from USB takes too long References: <775884.3554.qm@web120005.mail.ne1.yahoo.com> <4D9F38C9.3090203@gmail.com> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig1255599367A9CAE9516F8025" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.49 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Apr 2011 06:55:56 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1255599367A9CAE9516F8025 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 15.04.2011 04:45, Bean wrote: > Hi, > > I believe this is caused by the read algorithm of grub2. If the file > is continuous, grub legacy will read it in one pass, while grub2 will > break it up into small blocks, this will slow it down dramatically. I > haven't tested efi, but in bios mode, sometimes it takes twice as long > for grub2 to read the same file. > That's why I asked which fs it is. On an FS like ext2 or fat Both GRUBs are limited by the need of rereading indirect blocks or FAT chain (sure this can be aleviated by buffering and merging the nodes but neither GRUB Legacy nor GRUB2 does it). Currently it makes difference only on extent-based filesystems like ext, xfs or btrfs. I don't want to embark on adding another code path in grub_disk_read before having enough info to confirm this theory yet neither the original reporter nor the others answered which FS they conducted experiments on. --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig1255599367A9CAE9516F8025 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk2n6/MACgkQNak7dOguQgkSqgEAiTPhBkuB+epLNMAzj48JrsvP hMuYJs5ahsIhQMHr+v0BAIzPhBxydd4Sih9+Wf4P1zvfDV+8uIPVKe4xfdeWoD8V =m4nd -----END PGP SIGNATURE----- --------------enig1255599367A9CAE9516F8025--