Messages in this thread | | | Date | Thu, 17 Jan 2008 23:38:58 +0100 (CET) | From | Jan Engelhardt <> | Subject | Re: 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.
| |