Hi,

i followed the Install.DPDK.md initially, thats where i got

ovs-vsctl set Interface vhost-user-2 options:n_rxq=<requested queues>

to set the rx queues for vhost-user interfaces. Im using libvirt, so im not 
passing any cli arguments, rather my xml snippet looks like this:

    <interface type='vhostuser'>
      <mac address='52:54:00:e3:eb:b2'/>
      <source type='unix' path='/usr/local/var/run/openvswitch/vhost-user-0' 
mode='client'/>
      <model type='virtio'/>
      <driver queues='2'/>
    </interface>
    <interface type='vhostuser'>
      <mac address='52:54:00:26:50:09'/>
      <source type='unix' path='/usr/local/var/run/openvswitch/vhost-user-1' 
mode='client'/>
      <model type='virtio'/>
      <driver queues='2'/>
    </interface>

I also tried with an additional name parameter like so:

<driver name='vhost' queues='2'/>

as stated for "running ovs-vswitchd with DPDK backend inside a VM" (which im 
not doing right now), but this also did not change anything.

Best regards
Felix


-----Ursprüngliche Nachricht-----
Von: Loftus, Ciara [mailto:ciara.lof...@intel.com] 
Gesendet: Montag, 4. April 2016 12:01
An: Felix Brucker <fbruc...@xantaro.net>
Cc: discuss@openvswitch.org
Betreff: RE: [ovs-discuss] [OVS-DPDK] vhost-user with multiple queues does not 
work

> 
> Hi,
> 
> setting
> 
> ovs-vsctl set Open_vSwitch . other_config:n-dpdk-rxqs=2
> 
> did not create two queues inside the guest, from the name of the 
> command i guess it sets the number of rx queues for the pmd host 
> interface to 2, but not the vhost-user interface for the vm.
> Im using branch-2.5 because a bug i encountered regarding vhost-thread 
> was fixed 6 days ago on that branch.
> 
> Best regards
> Felix

Can you share the command line you are using to start the VM? Do you have the 
necessary fields set correctly? eg.

qemu-system-x86_64 ...
-chardev socket,id=char0,path=/my/sock
-netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=2
-device 
virtio-net-pci,mac=00:00:00:00:00:01,netdev=mynet1,mrg_rxbuf=off,mq=on,vectors=6

There's more info in INSTALL.DPDK.md on configuring multiqueue.

Thanks,
Ciara

> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Loftus, Ciara [mailto:ciara.lof...@intel.com]
> Gesendet: Montag, 4. April 2016 11:29
> An: Felix Brucker <fbruc...@xantaro.net>; discuss@openvswitch.org
> Betreff: RE: [ovs-discuss] [OVS-DPDK] vhost-user with multiple queues 
> does not work
> 
> >
> > Hi,
> >
> > when configuring OVS vhost-user interfaces with multiple queues like so:
> >
> > ovs-vsctl set Interface vhost-user-0 options:n_rxq=2 ovs-vsctl set 
> > Interface vhost-user-1 options:n_rxq=2
> >
> > i get the following warnings when starting ovs-vswitchd:
> >
> > 2016-04-04T08:53:28Z|00038|netdev|WARN|vhost-user-0: arguments 
> > provided to device that is not configurable
> > 2016-04-04T08:53:28Z|00039|netdev|WARN|vhost-user-1: arguments 
> > provided to device that is not configurable
> >
> > The guest vm also does not have multiple queues enabled as they are 
> > not set in ovs.
> > Im using OVS 2.5 from git -> branch-2.5 -> commit
> > e099c86ca432d1daeaf8edb66225e7edf061c0b0
> 
> Hi,
> 
> If you are using branch-2.5 you cannot use the n_rxq field. Instead 
> you need to set multiple queues like so:
> ovs-vsctl set Open_vSwitch . other_config:n-dpdk-rxqs=4
> 
> This sets the number of rxqs for all devices to 4.
> 
> Thanks,
> Ciara
> 
> >
> > Someone had a similar issue or knows a fix?
> >
> > Best regards
> > Felix

_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to