lkml.org 
[lkml]   [1999]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: zero-copy TCP fileserving
Date
From
> I've seen mbufs mentioned before - BSD.
> I've seen mentioned that our skbs are faster than mbufs, without justification.
> What's the difference between skbs and mbufs?

Fundamentally. skbuffs are single physically linear blocks, BSD mbufs are
chains of small blocks. The BSD code nowdays makes heavy use of "mbuf
clusters" to effectively get linear buffers most of the time.

Having chains means you keep having to say 'is the rest of this structure
in this buffer' and 'copy this around a bit to make the structure in one
buffer'.

Alan



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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