From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by dpdk.org (Postfix) with ESMTP id 42536C35C for ; Wed, 15 Apr 2015 21:15:19 +0200 (CEST) Received: by widjs5 with SMTP id js5so118823273wid.1 for ; Wed, 15 Apr 2015 12:15:19 -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:content-type:content-transfer-encoding; bh=RDup+torRv9r4bJxX762zLNv1t5a8V+h7gjc+Fa0B1A=; b=W1LKvrmPMNWjr2JqlrF2o0l0N53l9fAq61tezk2SurXnjZf/DNLCsCBIsYmtIUNKv5 2KfuaY4jPCnbic848Z6WLTE/ONByBkEjEJkLlxQ+sBFm0+7crhaoL2/3YXhIk7ycxDF8 dZdoBok9WcLo/eqfDS0m8ymErrDzpkAHc+1CTCt9p1OZwWSUzrXnj5UzQ0ntKVwuzyp5 Yomw8UxqlR4HGSNTNN+8LQ2d1cUd4WCyAz7zKxIc2zQJPY5xp7smzHndiZ5jmKAUobgO ZmyOSXPWSN1ojyeYyQAE4Awc/Tbz0RPNInA2gMhfXlJlSBq5QL0QWKW12bT57mmUERmQ H0dQ== X-Gm-Message-State: ALoCoQnpZgkVfEA1C8UMPv1j7D8ytk4A1qu4KY697raoDsdEKjJ5rgtx+2iwDn0Bi6E+gImugH8m X-Received: by 10.194.103.169 with SMTP id fx9mr53353370wjb.148.1429125319154; Wed, 15 Apr 2015 12:15:19 -0700 (PDT) Received: from [192.168.0.101] ([90.152.119.35]) by mx.google.com with ESMTPSA id k2sm8427861wix.4.2015.04.15.12.15.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Apr 2015 12:15:18 -0700 (PDT) Message-ID: <552EB8C6.5050906@linaro.org> Date: Wed, 15 Apr 2015 20:15:18 +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 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [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: Wed, 15 Apr 2015 19:15:19 -0000 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