[dpdk-dev] [PATCH v2] examples/ip_pipeline: CPU utilization measurement and display

Dumitrescu, Cristian cristian.dumitrescu at intel.com
Tue Mar 8 09:05:41 CET 2016



> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Thomas Monjalon
> Sent: Monday, March 7, 2016 11:34 AM
> To: Zhang, Roy Fan <roy.fan.zhang at intel.com>
> Cc: dev at dpdk.org; Wodkowski, PawelX <pawelx.wodkowski at intel.com>
> Subject: Re: [dpdk-dev] [PATCH v2] examples/ip_pipeline: CPU utilization
> measurement and display
> 
> 2016-03-07 12:31, Thomas Monjalon:
> > 2016-02-22 14:07, Fan Zhang:
> > > This patch adds CPU utilization measurement and idle cycle rate
> > > computation to packet framework. The measurement is done by
> measuring
> > > the cycles spent while a thread pulls zero packet from RX queue. These
> > > cycles are treated as idle cycles (or headroom). A CLI command is added
> > > to display idle cycle rate of specific thread. The CLI command format is
> > > shown as following:
> > >
> > > t <thread_id> headroom
> > >
> > > Signed-off-by: Fan Zhang <roy.fan.zhang at intel.com>
> > > Acked-by: Cristian Dumitrescu <cristian.dumitrescu at intel.com>
> >
> > Applied, thanks
> 
> Question: Would you be helped by librte_jobstats?

All we needed for now is retrieving the current TSC value. We might consider using librte_jobstats for the next release.


More information about the dev mailing list