All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: Grub2 EFI: Image loading from USB takes too long
Date: Tue, 26 Apr 2011 12:36:43 +0200	[thread overview]
Message-ID: <4DB6A03B.7070204@gmail.com> (raw)
In-Reply-To: <BANLkTi=k0vZ=ndK5WU-+iUzOJR9N_O9aZw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1396 bytes --]

On 26.04.2011 05:03, Bean wrote:
> Hi,
>
> It's not decided by fs driver, it's configured by a flag in
> grub_file_open, which is passed to the disk driver. There is only a
> few places where we can expect large file, such as linux/initrd
> command.
Yet worse, such a high level shouldn't care about low-level at all.
>  And in this case, caching is useless since we only use the
> data once and caching would only flush out useful data unnecessarily.
> By setting a flag to indicate direct read is required, we can optimize
> access for such situation while keeping the cache for others. This is
> similar to the pass through flag for linux/windows.
I don't think that the intent is the same. Under OS considerations are
more along transaction-safeness and barriers for databases and cache
disabling for system software. Normal application shouldn't use those flags.
>> Which is an example of bad design. Rather than improving the existing
>> function to do both caching and unbroken read (like in my 4096 branch)
>> you have 2 functions and force upper layers to do the tradeoffs and care
>> about matters which should be abstracted and invisible to them.
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

  reply	other threads:[~2011-04-26 10:37 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-06 16:12 Grub2 EFI: Image loading from USB takes too long Aravind Srinivasan
2011-04-07  9:24 ` KESHAV P.R.
2011-04-08 16:33 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-15  2:45   ` Bean
2011-04-15  6:55     ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-15  8:18       ` Seth Goldberg
2011-04-15 19:54         ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-06-23 16:02           ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-25  4:14       ` Bean
2011-04-25 10:58         ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-26  3:03           ` Bean
2011-04-26 10:36             ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-04-15 16:07 Finnbarr P. Murphy
2011-04-05  5:33 Aravind Srinivasan
2011-04-05  6:32 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-05  7:36   ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-05 16:36     ` Aravind Srinivasan
2011-04-05  6:32 ` Seth Goldberg
2011-04-05  7:17   ` KESHAV P.R.
2011-04-05  7:43     ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-05  8:06       ` KESHAV P.R.

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=4DB6A03B.7070204@gmail.com \
    --to=phcoder@gmail.com \
    --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.