[lkml]   [1999]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectzero-copy TCP fileserving
Speaking of shortcuts, what is the status of some sort of direct
page -> skb TCP sending ?

What I mean is, when tcp does a sendmsg, it shouldn't need to copy the
actual data into the skbuf, but merely the headers, and remember a ptr to
the data area (which would have to be locked down until the fragment is
acked or the connection breaks, of course). Then the network driver could
(if it supports s/g DMA) send the headers + data directly from memory.

Combine this with mmap() and you have a zero-copy fileserver from userland
without any major hacks.

Optimizing reception is harder due to not knowing the length of received
packets etc, I guess.

AFAIK this functionality is not in place in 2.2, but are there any people
here who has hacked it or any on-going projects doing it for 2.3 ?


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

 \ /
  Last update: 2005-03-22 13:52    [W:0.107 / U:31.316 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site