From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zoltan Kiss Subject: Re: mempool deleting and cache_size Date: Fri, 17 Apr 2015 11:28:47 +0100 Message-ID: <5530E05F.1070701@linaro.org> References: <552EB8C6.5050906@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <552EB8C6.5050906-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> 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" Hi, On 15/04/15 20:15, Zoltan Kiss wrote: > Hi, > > I have two questions regarding mempools: > > - the first is trivial: how do you delete them? Can you? I can't see a > function to do that, and none of the examples are doing such thing. When > exactly it get deleted? > - during creation, cache_size have one requirement: it has to be smaller > than RTE_MEMPOOL_CACHE_MAX_SIZE. And one recommendation: "n modulo > cache_size == 0". Is there any more guideline to determine that number? > E.g. now I'm using the biggest number which fits the above two conditions. > > Regards, > > Zoltan Thanks for all the answers for the first one, but does anyone has an idea for the second one? Zoli