From: Eric Wong <normalperson@yhbt.net>
To: Ulrich Drepper <drepper@gmail.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Al Viro <viro@zeniv.linux.org.uk>
Subject: Re: sendfile and EAGAIN
Date: Mon, 4 Mar 2013 10:28:59 +0000 [thread overview]
Message-ID: <20130304102859.GA23311@dcvr.yhbt.net> (raw)
In-Reply-To: <CAOPLpQe5SfdWYv5QD4Fu90PXyS7SrSN_5Gntk2x5D5ea8ke64g@mail.gmail.com>
Ulrich Drepper <drepper@gmail.com> wrote:
> On Mon, Feb 25, 2013 at 2:22 PM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
> > I don't understand the issue.
> >
> > sendfile() returns -EAGAIN only if no bytes were copied to the socket.
>
> There is something wrong/unexpected/...
>
> I have a program which can use either sendfile or send. When using
> sendfile to transmit a large block (I've seen it with 900k) the
> sendfile call does not transmit everything. There receiver gets only
> about 600k. This is the situation when I think I've seen EAGAIN
> errors from sendmail but I cannot just now reproduce it. This is with
> sockets of AF_UNIX type.
If you manage to reproduce it, can you pass an offset to sendfile() and
see if the offset changed when you get EAGAIN?
Also, which kernel version are you using? Perhaps it's triggered
by memory pressure.
next prev parent reply other threads:[~2013-03-04 10:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-25 17:22 sendfile and EAGAIN Ulrich Drepper
2013-02-25 19:22 ` Eric Dumazet
2013-03-03 1:41 ` Ulrich Drepper
2013-03-03 3:09 ` Eric Dumazet
2013-03-03 3:16 ` Ulrich Drepper
2013-03-04 10:28 ` Eric Wong [this message]
2013-03-05 0:11 ` Ulrich Drepper
2013-03-03 3:53 ` H. Peter Anvin
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=20130304102859.GA23311@dcvr.yhbt.net \
--to=normalperson@yhbt.net \
--cc=drepper@gmail.com \
--cc=eric.dumazet@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/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