DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] When are mbufs released back to the mempool?
@ 2013-12-17 18:13 Schumm, Ken
  2013-12-18  9:02 ` Olivier MATZ
  0 siblings, 1 reply; 5+ messages in thread
From: Schumm, Ken @ 2013-12-17 18:13 UTC (permalink / raw)
  To: dev

When running l2fwd the number of available mbufs returned by rte_mempool_count() starts at 7680 on an idle system.

As traffic commences the count declines from 7680 to 5632 (expected).

When traffic stops the count does not climb back to the starting value, indicating that idle mbufs are not returned to the mempool.

For the LCORE cache the doc states

"While this may mean a number of buffers may sit idle on some core's cache, the speed
at which a core can access its own cache for a specific memory pool without locks
provides performance gains"

which makes sense.

Is this also true of ring buffers?

We need to understand when packets are released back to the mempool and with l2fwd it appears that they never are, at least not all of them.

Thanks!

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

end of thread, other threads:[~2013-12-19 23:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-17 18:13 [dpdk-dev] When are mbufs released back to the mempool? Schumm, Ken
2013-12-18  9:02 ` Olivier MATZ
2013-12-19 19:09   ` Schumm, Ken
2013-12-19 19:35     ` Stephen Hemminger
2013-12-19 23:56       ` Schumm, Ken

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).