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: Mon, 03 Aug 2015 23:45:38 +0200 Message-ID: <3134746.zTmlkJngrL@xps13> References: <1438140121-9011-1-git-send-email-yong.liu@intel.com> <9BB6961774997848B5B42BEC655768F8C92AA1@SHSMSX104.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: "Liu, Yong" Return-path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by dpdk.org (Postfix) with ESMTP id 32491C3B4 for ; Mon, 3 Aug 2015 23:46:54 +0200 (CEST) Received: by wibxm9 with SMTP id xm9so139857091wib.0 for ; Mon, 03 Aug 2015 14:46:54 -0700 (PDT) In-Reply-To: <9BB6961774997848B5B42BEC655768F8C92AA1@SHSMSX104.ccr.corp.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" > > From: Marvin 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. > > > > Signed-off-by: Marvin Liu > > > Acked-by: Jingjing Wu > > #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 > > #define SOCKET 0 Applied after removing PKT_BURST_SZ, thanks