Messages in this thread | | | Subject | Re: zero-copy TCP fileserving | Date | Fri, 4 Jun 1999 17:48:05 +0100 (BST) | From | Alan Cox <> |
| |
> 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/
| |