On Wed, 20 Sep 2017 09:13:55 +0800
Sun Paul <paul...@gmail.com> 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 PMDs to be created.  In this case,
you are saying '0x6' (binary mask: 0110), so only two CPUs.

Also check ovs-vswitchd.conf.db(5) man-page:

       other_config : pmd-cpu-mask: optional string
              Specifies  CPU  mask for setting the cpu affinity of PMD (Poll 
Mode
              Driver) threads. Value should be in the form of hex string, 
similar
              to  the  dpdk  EAL ’-c COREMASK’ option input or the ’taskset’ 
mask
              input.

              The lowest order bit corresponds to the first CPU core. A  set  
bit
              means  the corresponding core is available and a pmd thread will 
be
              created and pinned to it. If the input does not  cover  all  
cores,
              those uncovered cores are considered not set.

              If not specified, one pmd thread will be created for each numa 
node
              and pinned to any available core on the numa node by default.

fbl

> 
> On Tue, Sep 19, 2017 at 8:02 PM, Flavio Leitner <f...@sysclose.org> wrote:
> > On Tue, 19 Sep 2017 13:43:25 +0800
> > Sun Paul <paul...@gmail.com> 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
> >> ea7f2b40-b7b3-4f11-a81f-cf25a56f8172
> >>     Bridge "gtp1"
> >>         Port "dpdk0"
> >>             Interface "dpdk0"
> >>                 type: dpdk
> >>                 options: {dpdk-devargs="0000:04:00.2", n_rxq="4"}
> >>         Port "gtp1"
> >>             Interface "gtp1"
> >>                 type: internal
> >>         Port "dpdk1"
> >>             Interface "dpdk1"
> >>                 type: dpdk
> >>                 options: {dpdk-devargs="0000:04:00.3", n_rxq="4"}
> >>
> >>
> >>
> >> On Tue, Sep 19, 2017 at 4:09 AM, Flavio Leitner <f...@sysclose.org> wrote: 
> >>  
> >> > On Mon, 18 Sep 2017 16:51:33 +0800
> >> > Sun Paul <paul...@gmail.com> 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 dpif-netdev/pmd-rxq-show
> >> >> pmd thread numa_id 0 core_id 1:
> >> >> isolated : false
> >> >> port: dpdk0 queue-id: 0
> >> >> pmd thread numa_id 0 core_id 2:
> >> >> isolated : false
> >> >> port: dpdk1 queue-id: 0  
> >> >
> >> > Could you post the DPDK configuration and what do you want?
> >> >
> >> > Thanks,
> >> > --
> >> > Flavio
> >> >  
> >
> >
> >
> > --
> > Flavio
> >  



-- 
Flavio

_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to