Re: is CONFIG_PACKET_MMAP always a win?

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Fri Feb 22 2002 - 13:40:01 EST


> > 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.
>
> I had a look at this about a year ago, and it seems there is no method
> provided to read the packets without copying them, if you need them in
> user space.

You can process them in the ring buffer. If you can't keep up then you
are screwed any way you look at it 8)
-
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/



This archive was generated by hypermail 2b29 : Sat Feb 23 2002 - 21:00:43 EST