Thread (1 message) 1 message, 1 author, 2013-09-22

Re: How to fight forwarding performance regression on large mempool sizes.

From: Dmitry Vyal <hidden>
Date: 2013-09-22 19:03:40

On 09/20/2013 07:34 PM, Robert Sanford wrote:
One more point, if you're not doing this already: Allocate 2^N-1 
mbufs, not 2^N. According to the code and comments: "The optimum size 
(in terms of memory usage) for a mempool is when n is a power of two 
minus one: n = (2^q - 1)."
Many thanks! Didn't know about it.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help