Re: [ovs-discuss] how many CPU cannot allocate for PMD thread?

2017-10-16 Thread BALL SUN
Thank for the share. I think I have missed an important information, our setup is on a VM guest, so not sure it is related. On Mon, Oct 16, 2017 at 7:26 PM, Guoshuai Li wrote: > I can not answer your question, but I can share my environment: > > > I have 32 cpu: > > >

Re: [ovs-discuss] how many CPU cannot allocate for PMD thread?

2017-10-16 Thread Guoshuai Li
I can not answer your question, but I can share my environment: I have 32 cpu: [root@gateway1 ~]# cat /proc/cpuinfo | grep processor | wc -l 32 [root@gateway1 ~]# I config my pmd-cpu-mask with 0xff00. [root@gateway1 ~]# ovs-vsctl get Open_vSwitch . other_config {dpdk-init="true",

Re: [ovs-discuss] how many CPU cannot allocate for PMD thread?

2017-10-16 Thread BALL SUN
sorry for late reply we have reinstall the OVS, but still having the same issue. we tried to set the pmd-cpu-mask=3, but only CPU1 is occupied. %Cpu0 :100.0 us, 0.0 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu1 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si,

Re: [ovs-discuss] how many CPU cannot allocate for PMD thread?

2017-09-22 Thread Flavio Leitner
On Fri, 22 Sep 2017 15:02:20 +0800 Sun Paul wrote: > hi > > we have tried on that. e.g. if we set to 0x22, we still only able to > see 2 cpu is in 100%, why? Because that's what you told OVS to do. The mask 0x22 is 0010 0010 and each '1' there represents a CPU. -- Flavio

Re: [ovs-discuss] how many CPU cannot allocate for PMD thread?

2017-09-22 Thread Per-Erik Westerberg
Hi, Using bit-mask 0x22 is still only two bits set which will result in two CPUs being used, use 0x33 or 0x0f for four CPUs etc.   Regards / Per-Erik On fre, 2017-09-22 at 15:02 +0800, Sun Paul wrote: > hi > > we have tried on that. e.g. if we set to 0x22, we still only able to > see 2 cpu is

Re: [ovs-discuss] how many CPU cannot allocate for PMD thread?

2017-09-22 Thread Sun Paul
hi we have tried on that. e.g. if we set to 0x22, we still only able to see 2 cpu is in 100%, why? # ovs-vsctl get Open_vSwitch . other_config {dpdk-init="true", n-dpdk-rxqs="2", pmd-cpu-mask="0x22"} Sep 22 22:54:29 host1 ovs-vswitchd[3504]: ovs|00196|netdev_dpdk|WARN|Failed to enable flow

Re: [ovs-discuss] how many CPU cannot allocate for PMD thread?

2017-09-20 Thread Flavio Leitner
On Wed, 20 Sep 2017 09:13:55 +0800 Sun Paul wrote: > sorry about that > > # ovs-vsctl get Open_vSwitch . other_config > {dpdk-init="true", n-dpdk-rxqs="2", pmd-cpu-mask="0x6"} Have you tried to change pmd-cpu-mask? Because that is mask of bits representing the CPUs you allow

Re: [ovs-discuss] how many CPU cannot allocate for PMD thread?

2017-09-19 Thread Sun Paul
sorry about that # ovs-vsctl get Open_vSwitch . other_config {dpdk-init="true", n-dpdk-rxqs="2", pmd-cpu-mask="0x6"} On Tue, Sep 19, 2017 at 8:02 PM, Flavio Leitner wrote: > On Tue, 19 Sep 2017 13:43:25 +0800 > Sun Paul wrote: > >> Hi >> >> below is the

Re: [ovs-discuss] how many CPU cannot allocate for PMD thread?

2017-09-19 Thread Flavio Leitner
On Tue, 19 Sep 2017 13:43:25 +0800 Sun Paul wrote: > Hi > > below is the output. currently, I am only able to set to use two CPU for PMD. I was referring to the output of ovs-vsctl get Open_vSwitch . other_config fbl > > # ovs-vsctl show >

Re: [ovs-discuss] how many CPU cannot allocate for PMD thread?

2017-09-18 Thread Sun Paul
Hi below is the output. currently, I am only able to set to use two CPU for PMD. # ovs-vsctl show ea7f2b40-b7b3-4f11-a81f-cf25a56f8172 Bridge "gtp1" Port "dpdk0" Interface "dpdk0" type: dpdk options: {dpdk-devargs=":04:00.2", n_rxq="4"}

Re: [ovs-discuss] how many CPU cannot allocate for PMD thread?

2017-09-18 Thread Flavio Leitner
On Mon, 18 Sep 2017 16:51:33 +0800 Sun Paul wrote: > Hi > > I have two interfaces mapped to DPDK, and run the OVS on top of it. I > tried to set the cpu mask, but I cannot only allocate more than 2 CPU > for pmd thread. any idea? > > # /usr/local/bin/ovs-appctl

[ovs-discuss] how many CPU cannot allocate for PMD thread?

2017-09-18 Thread Sun Paul
Hi I have two interfaces mapped to DPDK, and run the OVS on top of it. I tried to set the cpu mask, but I cannot only allocate more than 2 CPU for pmd thread. any idea? # /usr/local/bin/ovs-appctl dpif-netdev/pmd-rxq-show pmd thread numa_id 0 core_id 1: isolated : false port: dpdk0 queue-id: 0