DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] CPU Utilization Question
@ 2016-08-03  3:32 yingzhi
  2016-08-03  3:35 ` Xu, Qian Q
  0 siblings, 1 reply; 2+ messages in thread
From: yingzhi @ 2016-08-03  3:32 UTC (permalink / raw)
  To: users

Hello,

I'm new to dpdk, have a basic question and would like to seek your advice.
When i run dpdk apps with rte_eth_rx_burst() and rte_eth_rt_burst() within a loop without any sleep, it will occupy 100% of cpu cycles of that core. For example, if I run the kni example app, "htop" command indicates the cpu cores assigned to the kni app are all at 100% ut.


Is this expected behavior of DPDK application usage in general?
It would be wonderful if you can share some best practices.


Thanks

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

* Re: [dpdk-users] CPU Utilization Question
  2016-08-03  3:32 [dpdk-users] CPU Utilization Question yingzhi
@ 2016-08-03  3:35 ` Xu, Qian Q
  0 siblings, 0 replies; 2+ messages in thread
From: Xu, Qian Q @ 2016-08-03  3:35 UTC (permalink / raw)
  To: yingzhi, users

Yes, 100% CPU utilization for DPDK cores. All the drivers are in polling mode, and we bind the thread to certain CPU cores, the core will always polling/working at 100% utilization. 

-----Original Message-----
From: users [mailto:users-bounces@dpdk.org] On Behalf Of yingzhi
Sent: Wednesday, August 3, 2016 11:32 AM
To: users <users@dpdk.org>
Subject: [dpdk-users] CPU Utilization Question

Hello,

I'm new to dpdk, have a basic question and would like to seek your advice.
When i run dpdk apps with rte_eth_rx_burst() and rte_eth_rt_burst() within a loop without any sleep, it will occupy 100% of cpu cycles of that core. For example, if I run the kni example app, "htop" command indicates the cpu cores assigned to the kni app are all at 100% ut.


Is this expected behavior of DPDK application usage in general?
It would be wonderful if you can share some best practices.


Thanks

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

end of thread, other threads:[~2016-08-03  3:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-03  3:32 [dpdk-users] CPU Utilization Question yingzhi
2016-08-03  3:35 ` Xu, Qian Q

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