From owner-freebsd-net@FreeBSD.ORG Tue Nov 24 19:59:23 2009 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 08E9C106566C for ; Tue, 24 Nov 2009 19:59:23 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by mx1.freebsd.org (Postfix) with ESMTP id 88F8F8FC15 for ; Tue, 24 Nov 2009 19:59:22 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 22so1742208eye.9 for ; Tue, 24 Nov 2009 11:59:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=luGrQp/T1G6oE3jMaWPZ6K22OLRU3JDlHRJ3H7z3R1Y=; b=qzt0lTuL7EJl3s/C+oW6wj1myRjpshO3fIdqy+Yvj4/be3o9ye3AQeUQcnQ8dFCb8V myzJvN+oFn9KY+3RVH/dAsoBbsbbyXGJ0DueEDY2REItjK1iyvfnrLvfYN3qTPux9jO8 aKs8QRShuuV0hBOz6bt+L1jPFGKcSNT77S+Nw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=MhgwQiCCAiiFUGSJg85LQtr78gZ2VOro/8Gz77oHrpsJAruFB0+EKiOy0EdGSUMXgK QqpiwOJz1X5T51ny9pSLrusuLvksG5gqnnZdQk4NOQPtngBU5Tf+6R4QecvK9DzedDKl AlSyxINVEhEEb7ps3YwBGA+j/9N+Sjz1fm7Po= MIME-Version: 1.0 Received: by 10.216.87.3 with SMTP id x3mr2181420wee.132.1259092761126; Tue, 24 Nov 2009 11:59:21 -0800 (PST) In-Reply-To: <20091124194025.GA1116@michelle.cdnetworks.com> References: <1258998140.3015.34.camel@stormi-desktop> <20091124194025.GA1116@michelle.cdnetworks.com> Date: Tue, 24 Nov 2009 11:59:21 -0800 Message-ID: <2a41acea0911241159u3b2dab36p66f29724f8cac13@mail.gmail.com> From: Jack Vogel To: pyunyh@gmail.com Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "Yuriy A. Korobko" , freebsd-net@freebsd.org Subject: Re: Reducing number of interrupts from intel pro 1000 et adapter X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Nov 2009 19:59:23 -0000 There are significant changes to igb forthcoming, I believe I have fixed the multiqueue problems that exist in it now, and I am working to improve the AIM code so it handles TX and RX (this is still experimental right now though). I hope it addresses your problems. Jack On Tue, Nov 24, 2009 at 11:40 AM, Pyun YongHyeon wrote: > On Mon, Nov 23, 2009 at 07:42:20PM +0200, Yuriy A. Korobko wrote: > > Hi, > > > > I'd like to know a way to control tx interrupts on intel pro 1000 et > > adapter with igb driver. Just installed one in the router and systat > > shows 8-9k rx interrupts and 20k tx interrupts from igb0 and igb1 > > adapters. Box is a router running freebsd 7.2 release, I've tried > > default driver from kernel source and latest from intel site, effect is > > the same with automatic interrupt moderation enabled and disabled. I > > I'm also aware of this issue. Here is patch I'm currently > experimenting. It seems igb(4) wants to dynamically adjust > interrupt moderation on Rx traffic such that this seems to cause > lots of Tx interrupts under heavy Rx traffic. I simply disabled > that feature and fixed Rx handler not to generate more interrupts. > Without Rx handler fix the igb(4) took all CPU cycles under heady > load(64 bytes UDP torture test) I couldn't even type a character > on console. You can get my patch at the following URL. > http://people.freebsd.org/~yongari/igb/igb.buf.patch5 > > The patch also includes other changes I made so it's somewhat big. > Note, please don't apply the patch on production servers it needs > more testing. > > > have the same box with intel pro 1000 pt adapter which have > > tx(rx)_int_delay sysctls in em driver, I was able to reduce number of > > tx/rx interrupts to 7-8k per interface and got much more cpu idle > > because of less context switches with same pps. > > > > I guess you sacrificed latencies. > _______________________________________________ > 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" >