public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Volker Lendecke <Volker.Lendecke@SerNet•DE>
To: Jason Gunthorpe <jgunthorpe@obsidianresearch•com>
Cc: Eric Dumazet <eric.dumazet@gmail•com>,
	netdev@vger•kernel.org, "David S. Miller" <davem@davemloft•net>,
	Volker Lendecke <vl@samba•org>
Subject: Re: Splice on blocking TCP sockets again..
Date: Wed, 30 Sep 2009 08:37:13 +0200	[thread overview]
Message-ID: <E1Mssmb-004RJz-Hf@intern.SerNet.DE> (raw)
In-Reply-To: <20090930004820.GC19540@obsidianresearch.com>

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]

On Tue, Sep 29, 2009 at 06:48:20PM -0600, Jason Gunthorpe wrote:
> FWIW, it looks like samba has a splice code now, but doesn't enable it
> due to this issue?

Right. What I've learned from the comments is that splice is
only usable in multi-threaded programs. One thread is
reading, one is writing from the other end. I deferred using
splice until we have the proper architecture to do sync
syscalls in helper threads to make them virtually async.  We
have some code for that now, but it's not a high priority
for me at this moment.

Volker

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  parent reply	other threads:[~2009-09-30  7:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-30  0:48 Splice on blocking TCP sockets again Jason Gunthorpe
2009-09-30  4:54 ` Eric Dumazet
2009-09-30  5:40   ` Jason Gunthorpe
2009-09-30  5:51     ` Eric Dumazet
2009-09-30  6:00       ` Eric Dumazet
2009-09-30  6:19         ` Eric Dumazet
2009-10-01 22:17         ` Jason Gunthorpe
2009-09-30  6:37 ` Volker Lendecke [this message]
2009-10-02 17:10   ` Jason Gunthorpe
2009-10-02 18:05     ` Eric Dumazet

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=E1Mssmb-004RJz-Hf@intern.SerNet.DE \
    --to=volker.lendecke@sernet$(echo .)de \
    --cc=davem@davemloft$(echo .)net \
    --cc=eric.dumazet@gmail$(echo .)com \
    --cc=jgunthorpe@obsidianresearch$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=vl@samba$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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