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 control on device 0 Sep 22 22:54:29 host1 ovs-vswitchd[3504]: ovs|00197|dpif_netdev|INFO|PMD thread on numa_id: 0, core id: 2 destroyed. Sep 22 22:54:29 host1 ovs-vswitchd[3504]: ovs|00198|dpif_netdev|INFO|PMD thread on numa_id: 0, core id: 5 created. Sep 22 22:54:29 host1 ovs-vswitchd[3504]: ovs|00199|dpif_netdev|INFO|There are 2 pmd threads on numa node 0 On Wed, Sep 20, 2017 at 8:59 PM, Flavio Leitner <f...@sysclose.org> wrote: > 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