From owner-freebsd-net@FreeBSD.ORG Sun Jan 3 22:42:22 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80C471065695 for ; Sun, 3 Jan 2010 22:42:22 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-qy0-f176.google.com (mail-qy0-f176.google.com [209.85.221.176]) by mx1.freebsd.org (Postfix) with ESMTP id 30BA98FC21 for ; Sun, 3 Jan 2010 22:42:21 +0000 (UTC) Received: by qyk6 with SMTP id 6so6223921qyk.3 for ; Sun, 03 Jan 2010 14:42:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=eYJHIKegx5fh9SsvFFKefzf93kGdW9Y5vYOYIluiYCA=; b=v77/+BXoEUts+H5evSP1yOpEa9LTDQ5jVcQY5RaYeJHwEFJv6R0sfGXZbkRfIsF/aU yKMgO3FxZoMZK07Nmz3zwONXiycd6jwiIVFMa3H8o+GG1O/SDo6nUFa9E5/emvZ1G49A xj/yYliTXre7CoRca1u7mMtd/VKhgky7S751E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=My0ik/X4se59jsC6TeET38GotR2wWOZYvsBCJ0s51O+CppkHuhg4yO/1KONZgZW6oC zCv63Eory26ObI+9TWpAGdBVdP4OvvPZ9DgtYHq7RBsNehUnnSAISR0tC8aRR78XY9N0 Y1mhETDHAAhRyr9lmn+nj1Px11J5dpl+r67p4= Received: by 10.224.44.211 with SMTP id b19mr3647156qaf.45.1262558534250; Sun, 03 Jan 2010 14:42:14 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id 5sm47240743qwg.28.2010.01.03.14.42.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 03 Jan 2010 14:42:12 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Sun, 3 Jan 2010 14:41:07 -0800 From: Pyun YongHyeon Date: Sun, 3 Jan 2010 14:41:07 -0800 To: Michael T?xen Message-ID: <20100103224107.GW1166@michelle.cdnetworks.com> References: <969646.48748.qm@web63905.mail.re1.yahoo.com> <201001031428.o03ESWf2052691@lava.sentex.ca> <715F260A-A537-475E-BDFA-D2B566840500@lurchi.franken.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <715F260A-A537-475E-BDFA-D2B566840500@lurchi.franken.de> User-Agent: Mutt/1.4.2.3i Cc: Barney Cordoba , freebsd-net@freebsd.org, jfvogel@gmail.com, Mike Tancsa Subject: Re: igb interrupt moderation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jan 2010 22:42:22 -0000 On Sun, Jan 03, 2010 at 05:13:41PM +0100, Michael T?xen wrote: > On Jan 3, 2010, at 3:28 PM, Mike Tancsa wrote: > > > At 08:55 AM 1/3/2010, Michael T?xen wrote: > >> Hi Barney, Hi Jack, > >> > >> some comments and some more questions inside... > > > > > > Just a separate datapoint about this driver, unless I apply > > > > http://people.freebsd.org/~yongari/igb/igb.buf.patch6 > > > > the driver is not really usable for me in RELENG_8 on the dual port version of the card > Could you elaborate on what you mean by "not really usable"? > The patch was generated before Jack committed new code in HEAD. At that time I saw several issues like too many interrupts under load, unresponsible system under heavy RX load and spurious watchdog timeouts etc. To fix large number of interrupts I just disabled AIM feature as it seems to cause more TX completion interrupts under heavy RX load (64 bytes UDP frames). It seems the controller can be configured to intelligently generate interrupts based on load but it seems we need some more experimentation. Just disabling AIM yielded about 8-9k interrupts/sec and I was satisfied with the result at that time. I haven't had time to experiment new igb(4) code in HEAD but new code might have fixed some known issues.