Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Q6ytk-0000bV-8u for mharc-grub-devel@gnu.org; Tue, 05 Apr 2011 01:33:52 -0400 Received: from [140.186.70.92] (port=54029 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6ytg-0000Xn-Ss for grub-devel@gnu.org; Tue, 05 Apr 2011 01:33:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q6ytg-0001aK-0l for grub-devel@gnu.org; Tue, 05 Apr 2011 01:33:48 -0400 Received: from nm30-vm0.bullet.mail.ne1.yahoo.com ([98.138.91.69]:40001) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Q6ytf-0001aG-RT for grub-devel@gnu.org; Tue, 05 Apr 2011 01:33:47 -0400 Received: from [98.138.90.56] by nm30.bullet.mail.ne1.yahoo.com with NNFMP; 05 Apr 2011 05:33:47 -0000 Received: from [98.138.89.254] by tm9.bullet.mail.ne1.yahoo.com with NNFMP; 05 Apr 2011 05:33:47 -0000 Received: from [127.0.0.1] by omp1046.mail.ne1.yahoo.com with NNFMP; 05 Apr 2011 05:33:47 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 282605.63226.bm@omp1046.mail.ne1.yahoo.com Received: (qmail 21569 invoked by uid 60001); 5 Apr 2011 05:33:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1301981627; bh=K4xJ0Oibk5Iv1We7kSBVC0YGfB6Dq6KzgjPczfSC0Q8=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=ugW9KqahaT5fBe1bx+x+tQIiF61wOiV6dPvyziLFn2xZhwQUwTNJnOd30Wu8obXZxGGyqNGQU8byvPaMjXVLrgTKYh6wVuHyADQV9S2T23PyuRhHvdjvReTMhVvv0N2RnJPCfg+ZPcaE7hmxbPCFx9ZpFw5gEtpQiV7QXBmv0I4= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=MkdkN71WJ8B0FkB8LrPPyq3vbvGZ+mJZtHBAtNihLoeXLrsX+K1tgYj1A0smq8S6DlhfXbCJCMijMxrk7RXuW5uL0rm5tWW0qng7UyxhurwpHK6CGu05FN3U+L1VUtEXiVHn5ivz3QoL0hABdeRCFnjvcvo8tSjKE+sxomrAyW8=; Message-ID: <202218.1487.qm@web120001.mail.ne1.yahoo.com> X-YMail-OSG: WauK85gVM1kq9411yz90tapo_8VYU98wNtjkjruGPqcJwX. teM9LQHFUTo_0jJS68PeRayxwaQ_IT8fxN7k0x_7KxGWCZrLUTWzKW7Kb6Rd AdTnfEXDQsjcHcvOoxjaZoNg5MFdpdepiGBVLkDe2ycA6iU_CelawYj07pa4 jlOp_7ZpHkpXi4WQijk97Mhtex3f8gBvZ1otBfFBgDB.huhd9LZ2GFsS.MT4 m_N5nC4jvydFQjO8iHHVgZszS4qTayRCjNx36JHIB4SzSyP.3lZFoI.kRQB6 VXEOeZK__8P8lNmP5RhplVOh9ETcJoMy1YCtscKm74YBVKA-- Received: from [128.107.239.233] by web120001.mail.ne1.yahoo.com via HTTP; Mon, 04 Apr 2011 22:33:47 PDT X-Mailer: YahooMailRC/559 YahooMailWebService/0.8.109.295617 Date: Mon, 4 Apr 2011 22:33:47 -0700 (PDT) From: Aravind Srinivasan To: grub-devel@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 98.138.91.69 Subject: Grub2 EFI: Image loading from USB takes too long X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 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: Tue, 05 Apr 2011 05:33:50 -0000 Hi, I am trying Grub2 EFI - this is on a custom platform. On 1.99-rc1, compared to Legacy grub, loading image, in particular initrd image from a USB takes a very long. Our initrd image is about 160M and it is taking about 2 mins to load this image. Turning on "set debug=all" in the grub.cfg file, I see that all the time is being spent in reading the USB. Looking at the source, I think the issue is the value set for GRUB_DISK_CACHE_SIZE in include/grub/disk.h Currently this is what it is set to: include/grub/disk.h /* The size of a disk cache in sector units. */ #define GRUB_DISK_CACHE_SIZE 8 #define GRUB_DISK_CACHE_BITS 3 I tried changing this value to 8192 - and the time it took to load the same image came down to 10 secs ! /* The size of a disk cache in sector units. */ #define GRUB_DISK_CACHE_SIZE 8192 #define GRUB_DISK_CACHE_BITS 13 I am not sure of the reason for setting the cache size to a low value and any possible issues in increasing this size. Appreciate any input on this. Thanks, -Aravind Insert mode