[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20101208.101743.112598404.davem@davemloft.net>
Date: Wed, 08 Dec 2010 10:17:43 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: junchangwang@...il.com
Cc: eric.dumazet@...il.com, robert.olsson@....uu.se,
john.r.fastabend@...el.com, andy.shevchenko@...il.com,
netdev@...r.kernel.org
Subject: Re: [PATCH net-next-2.6] pktgen: adding prefetchw() call
From: Junchang Wang <junchangwang@...il.com>
Date: Mon, 6 Dec 2010 14:33:52 +0800
>
> 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 prefetch, 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 <junchangwang@...il.com>
Your patch was corrupted by your email client, please fix this up
and resubmit.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists