From owner-freebsd-net@FreeBSD.ORG Wed Oct 1 21:15:57 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 037D74C6; Wed, 1 Oct 2014 21:15:57 +0000 (UTC) Received: from mail-lb0-x236.google.com (mail-lb0-x236.google.com [IPv6:2a00:1450:4010:c04::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 13F55AD6; Wed, 1 Oct 2014 21:15:55 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id z11so1095411lbi.41 for ; Wed, 01 Oct 2014 14:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=DJpZfu1yTveOa0uaYljaIJaMmnEIyA3W6dw0O7qqb1Q=; b=RYmSHryKAHuKwTOjhiGMQXQCmIG2+u/bvWi/az0VXwY7/GmdibzlaccNojwxUUsAD7 V0MAIF6Hehp4nZo5rYCR+OBi3FyQn0YGT22X2evBAoOiWOltX165T6UiDIi33jcCc+Ux 7pvSdjKWwMsBUrUOa+u39+WpwTIrR5rvoTQKo7VFDKvPZvYECmjo9G8gNG1Q/OOx+oou 8XvUy4fRD837836S05X6cmK4+/QNxr9tHkiePVG3cmpH/qfddT+bHybnaM3gSXDhxtwQ tdBLS8Z/XzZZ/a2TkVRlHfwMdKX9SiVdaBQTu1WknHsa3S3r+efCjsZtX1fhC8BHqlj1 Wajg== MIME-Version: 1.0 X-Received: by 10.112.12.5 with SMTP id u5mr8173090lbb.87.1412198153894; Wed, 01 Oct 2014 14:15:53 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.114.26.37 with HTTP; Wed, 1 Oct 2014 14:15:53 -0700 (PDT) In-Reply-To: <2FAAD083-7EAF-4E5F-A3D5-0AFB08C4ED9D@westryn.net> References: <2FAAD083-7EAF-4E5F-A3D5-0AFB08C4ED9D@westryn.net> Date: Wed, 1 Oct 2014 23:15:53 +0200 X-Google-Sender-Auth: Onhbc4lw0XEFl14E1c5pHrx7MRQ Message-ID: Subject: Re: individual queue blocking entire rx unit on ixgbe (Re: How do I balance bandwidth over several virtual NICs?) From: Luigi Rizzo To: Kim Shrier Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-net@freebsd.org" , Adrian Chadd , Elof Ofel , "Alexander V. Chernikov" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Oct 2014 21:15:57 -0000 On Wed, Oct 1, 2014 at 11:12 PM, Kim Shrier wrote: > Not sure if this is related. I was testing on 10.1 beta3 and I was copyi= ng > approximately 250 GB of data to the test machine, I noticed that the > network would periodically slow down to about 4 mbits/sec or it would > pause for about 20 seconds and then continue at full speed. > > The ethernet interface on the test machine is: > > bge0: 0x57766001> mem 0xa0400000-0xa040ffff,0xa0410000-0xa041ffff irq 16 at > device 0.0 on pci1 > bge0: CHIP ID 0x57766001; ASIC REV 0x57766; CHIP REV 0x577660; PCI-E > =E2=80=8Bno that seems totally unrelated to this thread. We are talking specifically about the ixgbe / 82599 cheers luigi =E2=80=8B > > > The machine I am transferring from is using the em0 interface: > > em0: port 0xdc00-0xdc1f mem > 0xfb5e0000-0xfb5fffff,0xfb5dc000-0xfb5dffff irq 16 at device 0.0 on pci2 > > > I haven=E2=80=99t noticed any slow down when transferring between machine= s where > both sides are using the em driver. > > During the slow downs and pauses, when I had a top command running, > the process state would show up as =E2=80=9Cdp->dp=E2=80=9D or =E2=80=9Cr= l->l_=E2=80=9D instead of > something > normal like =E2=80=9Cselect=E2=80=9D or CPUn. > > If this is related, then maybe the problem is somewhere other than the > device > driver. > > Kim > > On Oct 1, 2014, at 3:48 AM, Luigi Rizzo wrote: > > > reviving this thread: > > > > i am just running experiments on 10.1 beta3 and even > > setting dev.ix.*.fc=3D0 and flipping the interface up and down > > does not seem to help: if i read only from a subset of the > > queues, the entire rx unit stalls eventually. > > > > I need to drain all queues to keep moving. > > > > Just tested this with 8 instances of netmap-ipfw running > > on an 8-core machine (8 queues enabled). > > > > netmap-ipfw netmap:ix0-0 netmap:ix1-0 > > netmap-ipfw netmap:ix0-1 netmap:ix1-1 > > ... > > > > and the source on another box is blasting on multiple queues with > > > > pkt-gen -f tx -i ix0 -d 10.0.10.0-10.0.10.255 > > > > > > I going to look at the driver's code now to see if/how > > this issue can be addressed. > > > > cheers > > luigi > > > > > > On Tue, Sep 23, 2014 at 6:00 PM, Adrian Chadd > wrote: > > > >> Ah, this behaviour. > >> > >> It's called DROP_EN on the intel igb / ixgbe hardware. Grep the > >> drivers for that particular register bit/setting. > >> > >> Set that bit for an RX queue and it'll instruct the MAC to drop frames > >> destined if that RX ring is full to it and keep receiving on the other > >> rings. Otherwise yes, receiving on that ring with the ring full cuases > >> the MAC to stop receiving on all rings until that ring has free space. > >> > >> You flip this on with ixgbe and igb by disabling tx/rx flowcontrol > >> (sysctl dev.ix|igb.X.fc=3D0) before configuring the interface. > >> > >> > >> > >> -a > >> > > > > > > > > -- > > -----------------------------------------+-----------------------------= -- > > Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione > > http://www.iet.unipi.it/~luigi/ . Universita` di Pisa > > TEL +39-050-2211611 . via Diotisalvi 2 > > Mobile +39-338-6809875 . 56122 PISA (Italy) > > -----------------------------------------+-----------------------------= -- > > _______________________________________________ > > freebsd-net@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-net > > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > --=20 -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2211611 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+-------------------------------