DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] vmxnet3 pmd stats counters reset after rte_eth_dev_start() is called
@ 2016-01-04 21:49 Tom Crugnale
  0 siblings, 0 replies; only message in thread
From: Tom Crugnale @ 2016-01-04 21:49 UTC (permalink / raw)
  To: dev

Hi All,

I am seeing an issue where the stats counters for vmxnet3 interfaces are reset to 0 after rte_eth_dev_start() is called, making it difficult to track statistics over a period of time where interfaces could be disabled and re-enabled.

There is a memset in the code that clears the txq/rxq stats counters to 0 each time an interface is started from the stopped state.  However, even with this code removed, I still see the issue happening.  I believe there is something on the host side that is resetting these counters, since they come from shared memory.

Does anyone know what causes the reset, and if there is a way to prevent it?  I could work around the issue by caching a snapshot of the last statistics before calling rte_eth_dev_start() and then just using that as a baseline for accumulation going forward, but I don't think this behaviour exists for all other NIC types, so I would have to specialize on the vmxnet3 case.

Thanks,
Tom

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-01-04 21:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-04 21:49 [dpdk-dev] vmxnet3 pmd stats counters reset after rte_eth_dev_start() is called Tom Crugnale

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