From: Pierre Phaneuf <pp@ludusdesign.com>
To: linux-kernel@vger.kernel.org
Subject: Re: disk-based fds in select/poll
Date: Mon, 04 Jun 2001 18:42:49 -0400 [thread overview]
Message-ID: <3B1C0EE9.9F8F58A4@ludusdesign.com> (raw)
In-Reply-To: <E157277-000603-00@the-village.bc.nu>
Alan Cox wrote:
> > I am thinking that a read() (or sendfile()) that would block because the
> > pages aren't in core should instead post a request for the pages to be
> > loaded (some kind of readahead mecanism?) and return immediately (maybe
> > having given some data that *was* in core). A subsequent read() could
>
> reads posts a readahead anyway so streaming reads tend not to block much
Ok, so while knowing about select "lying" about readability of a file
fd, if I would stick a file fd in my select-based loop anyway, but would
only try to read a bit at a time (say, 4K or 8K) would trigger
readahead, yet finish quickly enough that I can get back to processing
other fds in my select loop?
Wouldn't that cause too many syscalls to be done? Or if this is actually
the way to go without an actual thread, how should I go determining an
optimal block size?
Was there anything new on the bind_event/get_events API idea that Linus
proposed a while ago? That one had got me foaming at the mouth... :-)
--
Pierre Phaneuf
next prev parent reply other threads:[~2001-06-04 22:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-04 20:43 disk-based fds in select/poll Pierre Phaneuf
2001-06-04 21:42 ` Alan Cox
2001-06-04 22:42 ` Pierre Phaneuf [this message]
2001-06-04 23:16 ` Alan Cox
-- strict thread matches above, loose matches on Subject: below --
2001-06-05 0:27 Dan Kegel
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=3B1C0EE9.9F8F58A4@ludusdesign.com \
--to=pp@ludusdesign.com \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox