[dpdk-dev] l2fwd consumes 100% cpu

Liang, Cunming cunming.liang at intel.com
Mon Jun 8 08:52:48 CEST 2015



> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Victor Detoni
> Sent: Monday, June 08, 2015 9:06 AM
> To: dev at dpdk.org
> Subject: [dpdk-dev] l2fwd consumes 100% cpu
> 
> hello,
> 
> I'm looking for some documentation about this issue, but I could found yet.
> So, I would like to know if there is some resource like a poll or select to
> put on l2fwd_main_loop?
The way to limit the cpu utilization is set a specific quota for your thread by cgroup.
If you do like to sleep your thread when there's no traffic.
There's a patch set to enable thread wait-up from epoll_wait by one shot rx interrupt.
http://article.gmane.org/gmane.comp.networking.dpdk.devel/18942
> 
> It would be great to analyse cpu consumption, because I can see 100% of cpu
> with no traffic pass through it.
> 
> thanks
> Victor


More information about the dev mailing list