From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Chen Subject: Re: Is rte_mempool library is multi-thread safe ??? Date: Thu, 19 Dec 2013 13:30:42 -0800 Message-ID: References: <201312191804.31322.thomas.monjalon@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: dev-VfR2kkLFssw@public.gmane.org To: Thomas Monjalon Return-path: In-Reply-To: <201312191804.31322.thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" does that mean that on the same core, we can't do rte_eth_rx_burst in one thread (I assume this function allocates from mempool for storing mbufs everytime it receives a packet), while another thread calls rte_pktmbuf_alloc from the same mem_pool? On Thu, Dec 19, 2013 at 9:04 AM, Thomas Monjalon wrote: > Hello, > > 19/12/2013 11:57, ankit kumar : > > It was working fine but i am not sure that memory allocation & > > deallocation in rte_mempool library, is multi-thread safe or not. > > From http://dpdk.org/doc/api/rte__mempool_8h.html: > "the mempool implementation is not preemptable" > There is more explanations in this email: > http://dpdk.org/ml/archives/dev/2013-August/000402.html > > -- > Thomas >