From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id F00F1C31E for ; Fri, 17 Apr 2015 12:28:49 +0200 (CEST) Received: by wgso17 with SMTP id o17so108842047wgs.1 for ; Fri, 17 Apr 2015 03:28:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=d0u/AgmM2JsmmdLyuh/2AX+3FK6BKfERE2oWkWBzs7A=; b=NE/WA1yRrKKakyBI0VEOZPexeFDd6cMDyqhw8xLwdyCsVyJeEdnGh4YjifHqXgtPnb 9hXLGs0oLXR/ZcnxcM30BXvGTp/x1PSXtDYgFwFMY62MUo0EM/66SGZHfIjdLFWqZuLu ojNwtjfnnqTgMQUjsZhVvJjNcJAiLudCdP94cMsMDyFG4pil1tjHtPx/9nWkyqZ1gvxq D/ncpMqGygNd5OBpqRxLlABg5p4UZo0yMxzMa0v23RRZAXfhgLfaYmDb2vMFXtZfjt9n BMxKT44ou1rB6KGBUagKXID5ohmkN0HAfSjk7+V3llOLtedsCct4VHIppdnolpdekSa5 JJUw== X-Gm-Message-State: ALoCoQm+Lv4cenZ5wfrjp0lR7lsGXtaIryrVVmOSfNyOSuLvLwtp2O1xgq2VDEXLLA0oqDACq9MJ X-Received: by 10.194.185.68 with SMTP id fa4mr4241360wjc.111.1429266529784; Fri, 17 Apr 2015 03:28:49 -0700 (PDT) Received: from [192.168.0.101] ([90.152.119.35]) by mx.google.com with ESMTPSA id dj5sm14034870wjb.28.2015.04.17.03.28.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Apr 2015 03:28:49 -0700 (PDT) Message-ID: <5530E05F.1070701@linaro.org> Date: Fri, 17 Apr 2015 11:28:47 +0100 From: Zoltan Kiss User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: dev@dpdk.org References: <552EB8C6.5050906@linaro.org> In-Reply-To: <552EB8C6.5050906@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] mempool deleting and cache_size X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Apr 2015 10:28:50 -0000 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