From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Vyal Subject: Re: How to fight forwarding performance regression on large mempool sizes. Date: Sun, 22 Sep 2013 23:03:40 +0400 Message-ID: <523F3F0C.2010104@gmail.com> References: <523AACC9.8010304@gmail.com> <523BEFA3.4070209@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Robert Sanford Return-path: In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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.