From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <stephen@networkplumber.org>
Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com
 [209.85.192.170]) by dpdk.org (Postfix) with ESMTP id EF2B85A8C
 for <dev@dpdk.org>; Wed, 15 Apr 2015 21:24:15 +0200 (CEST)
Received: by pdbnk13 with SMTP id nk13so62969408pdb.0
 for <dev@dpdk.org>; Wed, 15 Apr 2015 12:24:14 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to
 :references:mime-version:content-type:content-transfer-encoding;
 bh=BDBRXcPKuOUax7G5sbIx8FtYAFOkoPUAJXyJ9cyhkA4=;
 b=ljK18foVYTVeCls8+eNwbJOM6gYwEBVMiFwFtGYZRY8x/iSTCglxzfLPKTf/vM9Q5m
 xvy3QTtt0UrxUPegsSrAERyXSaMk0d1oQq0hDmnK/cNPDKgnUtbQKHDMhfqWrnp61ssr
 5YfHMcDFPNswjtOVVLM52F/GjIIJWWnCzAhjX0S6dc9qjtKszEz9INDYSPdlwJtUO75R
 skdCaIEQf0ErU9z1P6lglDv/7XH+P2UjroP0LwpYMyRJxxZ50+9vhZFRmqzMpfMy6Tzg
 WIM+AcTRVlZvCHriqRK9cI6LQKoeLQUEDsvVDLd+mbKo7o+Xre04rPvVs7sbWKxgpeAZ
 sHkg==
X-Gm-Message-State: ALoCoQl60DxbmpNZFUWjl7VC1Af17QBbFj2Vkrg8Y0YMQLB389mcMenxIdBhhgKavIy0MXaf2io6
X-Received: by 10.68.216.99 with SMTP id op3mr49552304pbc.69.1429125854266;
 Wed, 15 Apr 2015 12:24:14 -0700 (PDT)
Received: from urahara (static-50-53-82-155.bvtn.or.frontiernet.net.
 [50.53.82.155])
 by mx.google.com with ESMTPSA id id2sm4861595pbb.56.2015.04.15.12.24.13
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 15 Apr 2015 12:24:14 -0700 (PDT)
Date: Wed, 15 Apr 2015 12:24:19 -0700
From: Stephen Hemminger <stephen@networkplumber.org>
To: Zoltan Kiss <zoltan.kiss@linaro.org>
Message-ID: <20150415122419.767e4048@urahara>
In-Reply-To: <552EB8C6.5050906@linaro.org>
References: <552EB8C6.5050906@linaro.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: dev@dpdk.org
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 <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Wed, 15 Apr 2015 19:24:16 -0000

On Wed, 15 Apr 2015 20:15:18 +0100
Zoltan Kiss <zoltan.kiss@linaro.org> 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?

You can't delete them. They live in hugepage area and are persistent.
Correctly written code looks for them by name and reuses existing pool
if it is big enough.