[lkml]   [2001]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [Question] Explanation of zero-copy networking
    Alan Cox wrote:
    > > so there's still single copy for write() of a mmap()ed page?
    > An mmap page will go direct to disk.

    Looking at the 2.4.4 code, mmap() of file followed by write() to socket
    will copy the data once.

    I could be mistaken (only glanced at the code quickly) but I base that
    on the only call to ->sendpage being through sendfile.

    So yes, there's a single copy overhead for mmap()+write().

    -- Jamie
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 12:52    [W:0.020 / U:65.956 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site