Re: CONFIG_PACKET_MMAP revisited

From: Jamie Lokier
Date: Tue Oct 28 2003 - 23:52:17 EST


odain2@xxxxxxxxxxxxxx wrote:
> Alan Cox pointed out that the main cost of the memory copy is
> getting the data from system memory (where the NIC put it via DMA)
> into the L1 cache (DMA doesn't do any cache coherence so it can't go
> there directly). The memory copy (presumably from L1 cache to L1
> cache) is insignificant compared to this cost and since you'll need
> to get the data into L1 cache to use it anyway, the memory copy is
> virtually free.

After the data is copied, it's likely to be written from L1 to L2 (at
least) before that position in the ring buffer is rewritten, so that's
another overhead.

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