Re: Linux Zero Copy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Now I understand it. I was missing this crucial link.
Thanx for the answers.

tomar

On Mon, 18 Aug 2003, David S. Miller wrote:

> On Sun, 17 Aug 2003 23:18:58 +0530 (IST)
> Nagendra Singh Tomar <nagendra_tomar@adaptec.com> wrote:
> 
> > My statement, that buffer gets copied to an skbuff, is not for the 
> > senfile(), but for sendmsg() case. The counterpart for this in the 
> > case of sendfile() (using mmaped temp file) is the copy from the user 
> > buffer to the file's page cache, when we write to the pointer returned
> by 
> > mmap() on the temp file.
> > I can not see any difference in number of copies. 
> 
> You don't understand, the mmap()'d temp file _IS_ the user's
> buffer.
> 
> Instead of storing into a malloc()'d or local stack buffer,
> the user stores it's data directly into the mmap() area.
> 

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux