From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] app test: fix mempool cache_size not match limited cache_size Date: Sun, 02 Aug 2015 23:26:32 +0200 Message-ID: <3134557.VXyn7jiyUM@xps13> References: <1438140121-9011-1-git-send-email-yong.liu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Yong Liu Return-path: Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by dpdk.org (Postfix) with ESMTP id 56AA74A63 for ; Sun, 2 Aug 2015 23:27:48 +0200 (CEST) Received: by wicgj17 with SMTP id gj17so80495527wic.1 for ; Sun, 02 Aug 2015 14:27:48 -0700 (PDT) In-Reply-To: <1438140121-9011-1-git-send-email-yong.liu@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-07-29 11:22, Yong Liu: > In previous setting, mempool size and cache_size are both 32. > This is not satisfied with cache_size checking rule by now. > Cache size should less than CONFIG_RTE_MEMPOOL_CACHE_MAX_SIZE and mempool size / 1.5. Sorry I don't really understand this explanation. > #define NB_MBUF 32 > #define MBUF_DATA_SZ (2048 + RTE_PKTMBUF_HEADROOM) > -#define PKT_BURST_SZ 32 > +#define PKT_BURST_SZ 0 > #define MEMPOOL_CACHE_SZ PKT_BURST_SZ Shouldn't be MEMPOOL_CACHE_SZ to set to 0?