Re: [vpp-dev] CPU usage for vpp

2022-07-20 Thread Xiaodong Xu
After commenting out the following configuration, the CPU usage went down when I set the interfaces to interrupt mode. session { use-app-socket-api enable } Otherwise, the output for 'show runtime' will have 'session-queue' running in polling mode. However once I start to send traffic, the CPU

Re: [vpp-dev] CPU usage for vpp

2022-07-20 Thread Xiaodong Xu
Now I removed the tap interfaces, and started from scratch again. However it doesn't work either. This is what I did: DBGvpp# set interface state eth1 up DBGvpp# set interface state eth2 up DBGvpp# set interface rx-mode eth1 interrupt DBGvpp# set interface rx-mode eth2 interrupt DBGvpp# show inter

Re: [vpp-dev] CPU usage for vpp

2022-07-20 Thread Pim van Pelt
Xiaodong, That tip about LCP is a good one - the tap interfaces you created (or that linux-cp created for you) will be in polling mode. virtio/tap does allow for adaptive as well. And indeed, even if my physical interfaces (Intel X710 10G and Intel i810 100G) are showing adaptive mode, the tap is

Re: [vpp-dev] CPU usage for vpp

2022-07-20 Thread Mohsin Kazmi via lists.fd.io
Hi Xiaodong, What is the output of show int rx-placement -br Mohsin From: on behalf of Xiaodong Xu Reply-To: "vpp-dev@lists.fd.io" Date: Wednesday, July 20, 2022 at 8:44 PM To: "vpp-dev@lists.fd.io" Subject: [vpp-dev] CPU usage for vpp Hi, When I start vpp, the CPU usage will be close to 1

Re: [vpp-dev] CPU usage for vpp

2022-07-20 Thread Xiaodong Xu
Hi Jim, Thanks for the reply. I checked the source code and the change is included. Do we have a list for the NIC drivers that support interrupt mode? Regards, Xiaodong On Wed, Jul 20, 2022 at 1:16 PM Jim Thompson via lists.fd.io wrote: > the other thing to note is that not all NIC drivers sup

Re: [vpp-dev] CPU usage for vpp

2022-07-20 Thread Xiaodong Xu
Hi Pim, Thanks for the quick reply. I did set the interfaces up before changing the rx-mode. I tried 'adaptive' mode and it didn't make any difference either. BTW, I'm using Linux control plane plugin and created a tap interface for each DPDPK interface. Another issue I'm having is that 'show har

Re: [vpp-dev] CPU usage for vpp

2022-07-20 Thread Jim Thompson via lists.fd.io
the other thing to note is that not all NIC drivers support setting interrupt and/or adaptive mode. You should also ensure that you have I2e502306e27bd98f8037d1a0a396201e099b50b5 On Wed, Jul 20, 2022 at 2:06 PM Pim van Pelt wrote: > > Hoi Xiaodong, > > One thing to note, is that the interface mu

Re: [vpp-dev] CPU usage for vpp

2022-07-20 Thread Pim van Pelt
Hoi Xiaodong, One thing to note, is that the interface must be state 'up' before changes are affected. If I set to 'adaptive' (best of both worlds, interrupts in low load, polling in higher load': DBGvpp# set interface rx-mode GigabitEthernet3/0/0 adaptive DBGvpp# set interface state GigabitEt