On Tue, 2 Feb 2016 15:44:50 -0500
Jiaqi Zheng <jiaqi...@gmail.com> wrote:

> According to my understanding, switch should have a input queue for
> each input port, and output queue for each output port. Is it right ?

When a packet is received by a netdev device, it is identified as part
of OVS and pushed for data path processing and in the end the actions
are executed. If the action is to send out in a port, that happens
immediately.  The device transmitting the packet might queue in the
qdisc. Look at ovs_vport_output() -> ovs_vport_send() ->
send() = dev_queue_xmit().  Here the it gets into qdisc [tc(8)].

That queue is outside of OVS and after that the packet hits the wire.

You could tune the NIC increasing the number of receiving buffers
available [ethtool(8) -g].  Usually NICs can do 4k, but the default is
256 buffers.

--
fbl


> 
> On Tue, Feb 2, 2016 at 3:43 PM, Ben Pfaff <b...@ovn.org> wrote:
> 
> > Which input and output queues?
> >
> > On Tue, Feb 02, 2016 at 03:41:48PM -0500, Jiaqi Zheng wrote:  
> > > You mean input queue and output queue? OVS can configure which ?
> > >
> > > Best,
> > > Jiaqi
> > >
> > > On Tue, Feb 2, 2016 at 3:39 PM, Ben Pfaff <b...@ovn.org> wrote:
> > >  
> > > > On Tue, Feb 02, 2016 at 03:24:57PM -0500, Jiaqi Zheng wrote:  
> > > > > Is there any command to set switch queue size ? i.e. buffer
> > > > > size.  
> > Larger  
> > > > > queue size can accommodate more packets when congestion
> > > > > occurs.  
> > > >
> > > > Which queues are you talking about?
> > > >  
> >  

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

Reply via email to