All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Roskin <proski@gnu.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] File readahead buffering
Date: Tue, 22 Jul 2008 14:48:31 -0400	[thread overview]
Message-ID: <1216752511.5029.4.camel@dv> (raw)
In-Reply-To: <20080722084347.53863920@gibibit.com>

On Tue, 2008-07-22 at 08:43 -0700, Colin D Bennett wrote:
> This patch speeds up loading a TGA image on my test system from 29
> seconds to approximately 1 second.
> 
> I noticed that on my 1 GHz test system running from an IDE CompactFlash
> drive, loading a certain TGA image in GRUB takes about 29 seconds.

I'm sorry for straying from your point, but maybe we should drop TGA
support.  It was the first image format for GRUB to support, but now PNG
is supported, and it should be better in all aspects.

> It turns out that when booting GRUB from IDE, if file buffering is
> used, GRUB hangs right after the "GRUB" message, early in the boot
> process.  So I added a flag that allows grub_main() to enable buffering
> when it is safe to do so.  It always worked file from an ISO image
> (generated with grub-mkrescue) in VMware and QEMU, but when I actually
> installed GRUB to my CompactFlash drive and booted it, it hung after
> "GRUB" if file buffering was enabled at the start.

I think we should be prefer simple and reliable code, rather than add
complexity and risks of failure to achieve higher speeds.

-- 
Regards,
Pavel Roskin



  reply	other threads:[~2008-07-22 18:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-22 15:43 [PATCH] File readahead buffering Colin D Bennett
2008-07-22 18:48 ` Pavel Roskin [this message]
2008-07-22 19:06   ` Colin D Bennett
2008-07-22 21:44     ` Pavel Roskin
2008-07-23  4:14       ` Colin D Bennett
2008-07-23  2:05     ` Bean
2008-07-23  2:43       ` Javier Martín
2008-07-23 14:33       ` Colin D Bennett
2008-07-23 14:56         ` Colin D Bennett
2008-07-24  9:51           ` Bean
2008-07-26 17:32             ` Colin D Bennett
2008-07-26 18:14               ` Bean

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1216752511.5029.4.camel@dv \
    --to=proski@gnu.org \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.