All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alexander G. M. Smith" <agmsmith@rogers.com>
To: Reiserfs List <reiserfs-list@namesys.com>
Subject: Re: Re: Heuristic readahead for filesystems - GetDirEnts for Attributes
Date: Wed, 11 Sep 2002 14:58:59 EDT (-0400)	[thread overview]
Message-ID: <21062363137-BeMail@CR593174-A> (raw)

> In theory, this also could be implemented explicitly if the application
> could tell the kernel "I'm going to read these 100 files in the very
> near future, please make them ready for me". But wait, maybe the
> application can do this (for regular files, not for directory entries
> and stat() data): Could it be efficient if the application used
> open(file,O_NONBLOCK) for the next 100 files and subsequent read()s on
> each of the returned filedescriptors?

We were discussing something similar for a new system call in OpenBeOS.
Rather than opening each file and reading the stat info and attribute
info separately, we were thinking of having one call for all that.
Kind of like an enhanced getdirentries() call.

The user would specify which metadata they were interested in (as a
list of attribute names, some would be "magic" aliases for getting
that old fashioned stat info) and a directory to examine (or maybe just
a single file, though the benefits wouldn't be as great).  This saves
several calls into kernel space, even if it doesn't happen to save any
disk IO (small attributes are packed into one disk sector).  So now
when the desktop displays a directory window, it will take one call
rather than separate ones to read each file's size, icon, MIME type,
etc.

- Alex



                 reply	other threads:[~2002-09-11 18:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=21062363137-BeMail@CR593174-A \
    --to=agmsmith@rogers.com \
    --cc=reiserfs-list@namesys.com \
    /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.