From: Matti Aarnio <matti.aarnio@zmailer.org>
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Simon Kirby <sim@netnation.com>, linux-kernel@vger.kernel.org
Subject: Re: O_NONBLOCK on files
Date: Mon, 24 Sep 2001 23:47:17 +0300 [thread overview]
Message-ID: <20010924234717.V11046@mea-ext.zmailer.org> (raw)
In-Reply-To: <20010918234648.A21010@netnation.com> <m1r8t3fyot.fsf@frodo.biederman.org> <20010919002439.A21138@netnation.com>
In-Reply-To: <20010919002439.A21138@netnation.com>; from sim@netnation.com on Wed, Sep 19, 2001 at 12:24:39AM -0700
On Wed, Sep 19, 2001 at 12:24:39AM -0700, Simon Kirby wrote:
> On Wed, Sep 19, 2001 at 01:05:06AM -0600, Eric W. Biederman wrote:
> > What would cause the data to be read in if read just checks the caches?
> > With sockets the other side is clearing pushing or pulling the data. With
> > files there is no other side...
>
> Hmm...Without even thinking about it, I assumed it would start a read and
> select() or poll() or some later call would return readable when my
> outstanding request was fulfilled. But yes, I guess you're right, this is
> different behavior because there is no other side.
To push the idea into ultimate: AIO
You open file, start IO, and do other things while the machine
is doing IO. Doing open() asynchronously would be ultimate,
but alas, not particularly trivial.
There are problems also in the AIO status rendezvous mechanisms.
Your best choice could be (with moderation) to do synchronous
operations at separate threads.
> Reading a file would need a receive queue to make this work, I guess. :)
> Simon-
> [ sim@stormix.com ][ sim@netnation.com ]
/Matti Aarnio
next prev parent reply other threads:[~2001-09-24 20:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-19 6:46 Simon Kirby
2001-09-19 7:05 ` Eric W. Biederman
2001-09-19 7:24 ` Simon Kirby
2001-09-24 20:47 ` Matti Aarnio [this message]
2001-09-24 21:05 ` Simon Kirby
2001-09-24 21:30 ` Benjamin LaHaise
2001-09-19 8:52 ` Erik Andersen
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=20010924234717.V11046@mea-ext.zmailer.org \
--to=matti.aarnio@zmailer.org \
--cc=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sim@netnation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®