DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] free a memzone
@ 2014-07-22 11:33 Mahdi Dashtbozorgi
  2014-07-23  9:04 ` Mahdi Dashtbozorgi
  0 siblings, 1 reply; 8+ messages in thread
From: Mahdi Dashtbozorgi @ 2014-07-22 11:33 UTC (permalink / raw)
  To: dev

Hi,

I have two processes, which uses DPDK multi-process feature to communicate.
Master process captures packets from NIC and put them to a ring buffer,
which is shared between master and slave process.
The slave process looks up the shared ring buffer using rte_ring_lookup
function and reads the packets.
The slave process needs a memory pool, too. Therefore, it creates a mempool
using rte_mempool_create. But If the slave process crashes during its
processing and runs again, rte_mempool_create function fails and tells that
there is a memory zone with that name.
If I use rte_mempool_lookup in this case, the memory pool is not a clean
memory pool. Because the previous run of slave process did not terminate
gracefully and did not return all the objects to the pool.
Is there any function to free an existing memory zone, which I call before
rte_mempool_create to ensure that previous memory pool does not exists
anymore?

Best Regards,
Mahdi.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-07-31 14:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-22 11:33 [dpdk-dev] free a memzone Mahdi Dashtbozorgi
2014-07-23  9:04 ` Mahdi Dashtbozorgi
2014-07-23 18:39   ` Richardson, Bruce
     [not found]     ` <CAB5=vGY4t6nefbrJ7iaV7eNT1UdTkWOhdW4NUVdN+Dzcx__wTw@mail.gmail.com>
2014-07-24  5:19       ` Mahdi Dashtbozorgi
2014-07-28 11:57         ` Ananyev, Konstantin
2014-07-28 12:53           ` Mahdi Dashtbozorgi
2014-07-28 17:09             ` Ananyev, Konstantin
2014-07-31 14:57               ` Mahdi Dashtbozorgi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).