Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Q7VLN-0002Ex-L9 for mharc-grub-devel@gnu.org; Wed, 06 Apr 2011 12:12:33 -0400 Received: from [140.186.70.92] (port=57162 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7VLM-0002EH-5Y for grub-devel@gnu.org; Wed, 06 Apr 2011 12:12:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7VLK-0001cP-Jq for grub-devel@gnu.org; Wed, 06 Apr 2011 12:12:32 -0400 Received: from nm3.bullet.mail.ne1.yahoo.com ([98.138.90.66]:46879) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Q7VLK-0001cD-D7 for grub-devel@gnu.org; Wed, 06 Apr 2011 12:12:30 -0400 Received: from [98.138.90.51] by nm3.bullet.mail.ne1.yahoo.com with NNFMP; 06 Apr 2011 16:12:28 -0000 Received: from [98.138.89.166] by tm4.bullet.mail.ne1.yahoo.com with NNFMP; 06 Apr 2011 16:12:28 -0000 Received: from [127.0.0.1] by omp1022.mail.ne1.yahoo.com with NNFMP; 06 Apr 2011 16:12:28 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 881815.97009.bm@omp1022.mail.ne1.yahoo.com Received: (qmail 14294 invoked by uid 60001); 6 Apr 2011 16:12:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1302106348; bh=KOrBAk2zNFnf4v77UAFcg5UjCQrWWhy90uLGLZe1jSo=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=j7gB+q9+Lo35J61O3uSEhDXN0cmKBLdOrqK4h5qQkOdRG3HUu7k29sFh5HBEfWGfB+SBQ6rhp0AGsGitOfIjkO7gsa2NDOjpMOVmI+wvSWkiOhoCjqGHhIL7/9Dy7OaukirX3udcjLyoiB69Xjf0OdTznzInVGC40Cl4lxKmIcU= 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:Content-Transfer-Encoding; b=6qXVkxPfS0zK7POkMRYCxBfo+b9Nbsb2oI+1aT0YHGwRO6JCgqHTx8/SsVfDc15doZQ6ycPZ/Mtw3AqPnh0H91R66HbHkyuHv8fcKyYN6hOlOQxQdWqEef71XX4CNFnBSj6hrK07kQz2SAstQSUnBKMhAP7LUUP+fJ3tvXp5SXA=; Message-ID: <775884.3554.qm@web120005.mail.ne1.yahoo.com> X-YMail-OSG: qTpRbA4VM1lt4pQ8jLzZB7ROCVRoV1fCgf_mu09t5l_o14v 7PYLW6GDT2.3Klh2lx8H4mZEeLZI6NFBWy7D2MS8vZs46X8yxPO6huG65D9Y wEGn3Ovic7v3SIz3wagLE2wFwuH8uS_C1vrzhluyyn62x6WS1IugY9nVlM0q 1f360LQ_cKi1v4zASm2HDXY9XNxf4puRQJAkRemB8fLFt_.28Koz9OCMwdND ZOqM3rJ__q9mKtw43rwtjdnpgCZVi78CseEmW5fs20pTdQ88dLq7gJcNWTQv wINW8VJw_AHNcFc9zkRyEoJNS6wACUDNbv20Kx3xdO5CaVNP1QgywsT.EBsH bt0wWH8AGVSrySwToxHxPuDC5mKLeZKNzFfdRiDQb53tP5QXrKT6IYA-- Received: from [128.107.239.233] by web120005.mail.ne1.yahoo.com via HTTP; Wed, 06 Apr 2011 09:12:28 PDT X-Mailer: YahooMailRC/559 YahooMailWebService/0.8.109.295617 Date: Wed, 6 Apr 2011 09:12:28 -0700 (PDT) From: Aravind Srinivasan To: grub-devel@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 98.138.90.66 Subject: Re: 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: Wed, 06 Apr 2011 16:12:33 -0000 =0A=0ADint see any further response on this. So can I assume the block-io p= atch =0Aprovided will become part of some official release ? If so, which o= ne ? Do I =0Aneed to log a bug for this ?=0A=0AThanks,=0AAravind=0A=0A-----= Original Message ----=0AFrom: Aravind Srinivasan = =0ATo: The development of GNU GRUB =0ASent: Tue, April = 5, 2011 9:36:52 AM=0ASubject: Re: Grub2 EFI: Image loading from USB takes t= oo long=0A=0A=0A=0ATried the block IO patch. It is much better than the cur= rent default performance =0A=0Aof 1.99. For the same initrd image (160M), l= oading from USB took approx 20 secs. =0A=0AI also tried changing the value = of GRUB_DISK_CACHE_BITS from 6 to 8, and load =0Atime improved to approx 12= secs.=0AJust to note, on Legacy Grub, this gets loaded almost in 3 secs.= =0A=0AThanks,=0AAravind=0A=0A=0A----- Original Message ----=0AFrom: Vladimi= r '=CF=86-coder/phcoder' Serbinenko =0ATo: The developme= nt of GNU GRUB =0ASent: Tue, April 5, 2011 12:36:35 AM= =0ASubject: Re: Grub2 EFI: Image loading from USB takes too long=0A=0AOn 05= .04.2011 08:32, Vladimir '=CF=86-coder/phcoder' Serbinenko wrote:=0A> On 05= .04.2011 07:33, Aravind Srinivasan wrote:=0A>> include/grub/disk.h=0A>> =0A>> /* The size of a disk cache in sector units. */=0A>> #define GRUB= _DISK_CACHE_SIZE 8=0A>> #define GRUB_DISK_CACHE_BITS 3=0A>> =0A>>= =0A>> I tried changing this value to 8192 - and the time it took to load t= he same=0A>> image came down to 10 secs !=0A>> /* The size of a disk cache = in sector units. */=0A>> #define GRUB_DISK_CACHE_SIZE 8192=0A>> #define = GRUB_DISK_CACHE_BITS 13=0A>> =0A>> I am not sure of the reason for settin= g the cache size to a low value and any=0A>> possible issues in increasing = this size. Appreciate any input on this.=0A> This value is a misnomer. It's= not a cache size but a cache unit size. As =0A>immediate effect it has tha= t if one reads a single 512B, sector one reads an =0A>entire block of 4K. U= nder normal conditions values of around 32K-128K =0A>(6-8/64-256) would be = optimal. It seems that some EFI implementations do a =0A>"buffering" only t= o discard the buffered data. Some of the reports suggest that =0A=0A>this b= raindamage is limited to disk io and doesn't happen with Block IO. Values = =0A=0A>you propose would result in 4M reads even when one needs just few se= ctors and so =0A>=0A>is suboptimal under normal conditions.=0A> I'll prepar= e few patches to investigate.=0A> After 1.99 the GRUB_DISK_CACHE_BITS will = be increased to 6-8 range since, it's =0A=0A>optimal and my AF support requ= ires sector size to be smaller than cache unit =0A>size.=0A> =0AAttached a = patch based on my AF patch which change to block IO.=0A=0A-- Regards=0AVlad= imir '=CF=86-coder/phcoder' Serbinenko=0A=0AInsert mode