Re: is CONFIG_PACKET_MMAP always a win?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Fri, 22 Feb 2002 02:33:02 +0000 (GMT)


> c) enable CONFIG_PACKET_MMAP, use PACKET_RX_RING, and read packets from an mmap'd ring buffer
> Overhead: kernel does a full memcpy of the packet body to get it
> into the ring buffer, and my program does another to get it out.

Why are you copying it out of the ring not processing it in place ?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/