From: Eric Dumazet <eric.dumazet@gmail.com>
To: Eric Wong <normalperson@yhbt.net>
Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
linux-fsdevel@vger.kernel.org, Willy Tarreau <w@1wt.eu>
Subject: Re: splice() giving unexpected EOF in 3.7.3 and 3.8-rc4+
Date: Fri, 18 Jan 2013 21:54:07 -0800 [thread overview]
Message-ID: <1358574847.3464.422.camel@edumazet-glaptop> (raw)
In-Reply-To: <20130119044957.GA25395@dcvr.yhbt.net>
On Sat, 2013-01-19 at 04:49 +0000, Eric Wong wrote:
> With the following flow, I'm sometimes getting an unexpected EOF on the
> pipe reader even though I never close the pipe writer:
>
> tcp_wr -write-> tcp_rd -splice-> pipe_wr -> pipe_rd -splice-> /dev/null
>
> I encounter this in in 3.7.3, 3.8-rc3, and the latest from Linus
> 3.8-rc4+(5da1f88b8b727dc3a66c52d4513e871be6d43d19)
>
> It takes longer (about 20s) to reproduce this issue on my KVM (2 cores)
> running the latest Linus kernel, so maybe real/faster hardware is needed.
> My dual-core laptop (on 3.7.3) which hosts the VM does encounter this
> issue within a few seconds (or even <1s).
>
> Using schedtool to pin to a single core (any CPU core) on real hardware
> seems to avoid this issue on real hardware. Not sure how KVM uses CPUs,
> but schedtool doesn't help inside my VM (not even schedtool on the KVM
> process).
>
> Example code below (and via: git clone git://bogomips.org/spliceeof )
>
> Expected outout from ./spliceeof:
> done writing
> splice(in) EOF (expected)
>
> Output I get from ./spliceeof:
> splice(out) EOF (UNEXPECTED)
> in left: 47716 # the byte value varies
>
> I've successfully run similar code within the past year on some 3.x
> kernels, so I think this issue is fairly recent (Cc-ing folks who
> have touched splice lately).
>
> Any likely candidates before I start bisection? Thanks for reading.
>
> -------------------------------- 8< ------------------------------
Hmm, this might be already fixed in net-next tree, could you try it ?
Thanks !
next prev parent reply other threads:[~2013-01-19 5:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-19 4:49 Eric Wong
2013-01-19 5:54 ` Eric Dumazet [this message]
2013-01-19 6:13 ` Eric Dumazet
2013-01-19 7:04 ` Willy Tarreau
2013-01-19 7:15 ` Eric Wong
2013-01-21 4:21 ` David Miller
2013-02-08 2:39 ` Eric Wong
2013-02-08 3:26 ` David Miller
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=1358574847.3464.422.camel@edumazet-glaptop \
--to=eric.dumazet@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=normalperson@yhbt.net \
--cc=w@1wt.eu \
/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®