Thread (8 messages) flat view 8 messages, 3 authors, 2011-03-29

Re: zero copy for relay server

From: Changli Gao <hidden>
Date: 2011-03-29 11:29:11

On Tue, Mar 29, 2011 at 12:23 PM, Eric Dumazet [off-list ref] wrote:
Le mardi 29 mars 2011 à 10:00 +0800, Changli Gao a écrit :
quoted
On Tue, Mar 29, 2011 at 2:34 AM, Eric Dumazet [off-list ref] wrote:
quoted
I think he concerns the overhead of system calls. In order to omit a
system call, I think you can implement sth. like this:

splice2(infd, outfd, pipefd, ...)
Yes, but given no numbers are given, and no code yet written, I ask the
question.

Giving 4 file descriptors to a single syscall sounds convoluted.
It is a waste of fd using pipe buffer with two fds. In fact, I had
ever posted a patch, which extends pipe(2) to return a O_RDWR fd when
NULL is passed in.

-- 
Regards,
Changli Gao(xiaosuo@gmail.com)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help