lkml.org 
[lkml]   [2008]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Fast network file copy; "recvfile()" ?

On Jan 17 2008 12:53, Patrick J. LoPresti wrote:

>Using 10GigE cards and the usual tweaks to tcp_rmem etc., I am
>getting single-stream TCP throughput better than 600 MB/sec.

Hm, be aware not to hit the sequence wrap :)

>1) O_DIRECT read() + send()
>2) mmap() + madvise(WILLNEED) + send()
>3) fadvise(WILLNEED) + sendfile()
>
>I am leaning towards (3), since I gather that sendfile() is supposed
>to be pretty fast.
>
>My question is what to do on the receiving end. In short, if I want
>the equivalent of a "recvfile()" to go with sendfile(), what is my
>best bet on Linux?

splice() I think.


\
 
 \ /
  Last update: 2008-01-17 23:55    [W:0.055 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site