diff options
| author | Junchang Wang <[email protected]> | 2010-12-08 16:55:16 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2010-12-10 15:36:52 -0800 |
| commit | a8d764b9832d3cc86019f71916665dd2d337d7c2 (patch) | |
| tree | 08637ac7b04a569b1b5152f8e52434c9f284bf29 /tools/perf/scripts/python | |
| parent | 4afb7527ac8cc7bd8f03570e12f6eed0eca03363 (diff) | |
pktgen: adding prefetchw() call
We know for sure pktgen is going to write skb->data right after
*_alloc_skb, causing unnecessary cache misses.
Idea is to add a prefetchw() call to prefetch the first cache line
indicated by skb->data. On systems with Adjacent Cache Line Prefetch,
it's probably two cache lines are prefetched.
With this patch, pktgen on Intel SR1625 server with two E5530
quad-core processors and a single ixgbe-based NIC went from 8.63Mpps
to 9.03Mpps, with 4.6% improvement.
Signed-off-by: Junchang Wang <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions