From owner-freebsd-net@FreeBSD.ORG Mon Sep 14 15:10:33 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 CDBB7106568D for ; Mon, 14 Sep 2009 15:10:33 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: from n7.bullet.mail.ac4.yahoo.com (n7.bullet.mail.ac4.yahoo.com [76.13.13.235]) by mx1.freebsd.org (Postfix) with SMTP id 6F9D38FC0C for ; Mon, 14 Sep 2009 15:10:33 +0000 (UTC) Received: from [76.13.13.25] by n7.bullet.mail.ac4.yahoo.com with NNFMP; 14 Sep 2009 15:10:32 -0000 Received: from [76.13.10.168] by t4.bullet.mail.ac4.yahoo.com with NNFMP; 14 Sep 2009 15:10:32 -0000 Received: from [127.0.0.1] by omp109.mail.ac4.yahoo.com with NNFMP; 14 Sep 2009 15:10:32 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 865260.54288.bm@omp109.mail.ac4.yahoo.com Received: (qmail 70535 invoked by uid 60001); 14 Sep 2009 15:10:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1252941032; bh=VMy40UaX1VRWKjow0ffaXXuXRQnEbulRR7FkGdlMPvk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=XUafLIEp5BfITwTMdMzb5J9Lj/1/y/SdrF9qAKnsse9zr9kYhSs7dJ19dHCMNQ22/ldxfaOqUi8YVeqjuHugG/7SegQxfwbUf6SlUd9V9vmjUfSOlEivZTIimpOkj1RJ2j23BgVBlhM6D5SVS7Yihs69KcPAZSIWwxUa2RRo1IU= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=U3/F4AyE7D7/uDxFzJNWisGeXoXnx6AlooWqRI66ilbTQDZU3ibe5MTasuUOmVIGPipWXF8Gu0PWHBvA1EwMdDBwmuRDFQfariPFFZhSqn5Jnc+AcXMx4qivOowuIbCVxR0nu/uySlZoZCiLt8W6EBmt51VpvXJKnXnAdzYT2+E=; Message-ID: <409746.70532.qm@web63901.mail.re1.yahoo.com> X-YMail-OSG: .W31bTQVM1n8D0A2gD1JXE5.dYJIF29jMg2qZ4YUvyWcubAdRVSkf42ZPT8JBCOcGRGLGGfhe6ENGgzz2uFnyOLt_fGEmMFSAqmjiH5zPhGPOHEfO.P390tgv_5PUbsrNFeLcnpqC1oaSffO4F.TZ1oUoeAfKbejGUTkVCcFWHCJqOI1IovS6qR.U.grvrTNLnKm7gPDTcSnwlrFVMQXdFWO3_RGj6rX.M6ITTZIRYAThGfVOn5_pMsRvVaLRnrW3zxtqxP43pelOpIz1xG.41rABTNPeMiPpoqZPglm52osXOLiR6UsqD8H9aJ7zJ0xPzv0sw-- Received: from [98.203.21.152] by web63901.mail.re1.yahoo.com via HTTP; Mon, 14 Sep 2009 08:10:32 PDT X-Mailer: YahooMailClassic/6.1.2 YahooMailWebService/0.7.347.2 Date: Mon, 14 Sep 2009 08:10:32 -0700 (PDT) From: Barney Cordoba To: rihad In-Reply-To: <4AAE27B8.6050006@mail.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@FreeBSD.org Subject: Re: [POLLING] strange interrupt/system load 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: Mon, 14 Sep 2009 15:10:33 -0000 =0A=0A--- On Mon, 9/14/09, rihad wrote:=0A=0A> From: rihad = =0A> Subject: Re: [POLLING] strange interrupt/system load=0A= > To: "Barney Cordoba" =0A> Cc: freebsd-net@FreeB= SD.org=0A> Date: Monday, September 14, 2009, 7:23 AM=0A> Barney Cordoba wro= te:=0A> > =0A> >> Without polling (current load around 190-200=0A> mbit/s, = around=0A> >> 24-26 kpps):=0A> >>=0A> >> top:=0A> >> CPU:=A0 0.0% user,=A0 = 0.0% nice,=A0 8.4%=0A> >> system,=A0 0.0% interrupt, 91.6% idle=0A> >>=0A> = >> Interrupts/s: 18322 total=0A> >> 28 mpt0 irq16=0A> >> 1999 cpu0: time=0A= > >> 6906 em0 irq256=0A> >> 3392 em1 irq257=0A> >> 1999 cpu1: time=0A> >> 1= 999 cpu2: time=0A> >> 1999 cpu3: time=0A> > =0A> > You really need to look = at the taskq usage as=0A> averaging on a 4 core=0A> CPU:=A0 0.0% user,=A0 0= ..0% nice, 10.0% system,=A0=0A> 0.0% interrupt, 90.0% idle=0A> =A0 =A0 27 ro= ot=A0 =A0 =A0 =A0 1=0A> -68=A0 =A0 -=A0 =A0=A0=A00K=A0 =A0=0A> 16K -=A0 =A0= =A0 1 137:47 40.28% em0 taskq=0A> =A0 =A0 28 root=A0 =A0 =A0 =A0 1=0A> -68= =A0 =A0 -=A0 =A0=A0=A00K=A0 =A0=0A> 16K -=A0 =A0 =A0 2=A0=A0=A05:05=A0=0A> = 0.88% em1 taskq=0A> =0A> > You'll do a lot better setting your ITR to 2000 = or so.=0A> You really don't=0A> > need an interrupt every 4 packets at thos= e traffic=0A> levels.=0A> =0A> Sorry, how would I do that? And how do I fin= d the current=0A> ITR value?=0A> =0AI made mine a sysctl long ago, so I'm n= ot sure what the current state=0Aof em is. It used to be a macro MAX_INTS_P= ER_SEC=0A=0ABarney=0A=0A=0A