public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Lennert Buytenhek <buytenh@gnu.org>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Felix von Leitner <felix-kernel@fefe.de>, linux-kernel@vger.kernel.org
Subject: Re: 2.6.1 sendfile regression
Date: Mon, 12 Jan 2004 06:31:23 -0500	[thread overview]
Message-ID: <20040112113123.GA18485@gnu.org> (raw)
In-Reply-To: <Pine.LNX.4.58.0401111509360.1825@evo.osdl.org>

On Sun, Jan 11, 2004 at 06:58:55PM -0800, Linus Torvalds wrote:

> > > strace shows that the process is hanging
> > > inside sendfile64 (which should not happen since the socket is
> > > non-blocking).
> > 
> > What if the data you're sending is not in the page cache?
> 
> It will always block on the actual page cache, although we could try to 
> change that.

My impression is that this is the reason why AIO sendfile was attempted.
Although my wild guess is that that probably would only work on raw block
devices and still not on regular filesystem files.


> However, even if it blocks, it should only block at one page 
> at a time (or "incidental" blockage due to memory allocations etc).
> 
> Blocking for long times implies a bug.

(Even if it only blocks a page at a time, it will happily block on the
next page and the one after that as long as there is write space in the
destination socket?)


--L

      reply	other threads:[~2004-01-12 11:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-10  0:01 2.6.1 sendfile regression Felix von Leitner
2004-01-10  0:21 ` Andrew Morton
2004-01-10  0:52   ` Ram Pai
2004-01-10  1:42     ` Andrew Morton
2004-01-10  5:23 ` Lennert Buytenhek
2004-01-12  2:58   ` Linus Torvalds
2004-01-12 11:31     ` Lennert Buytenhek [this message]

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=20040112113123.GA18485@gnu.org \
    --to=buytenh@gnu.org \
    --cc=felix-kernel@fefe.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.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