From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 382BD567E for ; Mon, 18 Apr 2016 16:53:41 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP; 18 Apr 2016 07:53:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,502,1455004800"; d="scan'208";a="787248020" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.33]) ([10.237.220.33]) by orsmga003.jf.intel.com with ESMTP; 18 Apr 2016 07:53:38 -0700 To: =?UTF-8?Q?Javier_Coleto_Fern=c3=a1ndez?= , Andriy Berestovskyy References: Cc: users@dpdk.org From: Ferruh Yigit Message-ID: <5714F4F2.3040703@intel.com> Date: Mon, 18 Apr 2016 15:53:38 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-users] mbuf free cnt not decreasing X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2016 14:53:41 -0000 On 4/18/2016 9:41 AM, Javier Coleto Fernández wrote: > Hi Andriy, > > Thank you for your answer. > I've tried what you said and determined it's an mbuf leak, because the > number of free mbufs doesn't stabilize, even when I increase the number of > mbufs in the mempool. > Is there any way to easily debug this mbuf leak? I didn't make the full > code, so I don't really know where to start looking for leaks. > Can you please check free_q? kni_fifo_free_count(kni->free_q) If you call rte_kni_tx_burst() for more than 32 packets at a time, mbufs may stuck in free_q. Regards, ferruh