From owner-freebsd-current@FreeBSD.ORG Thu Mar 12 22:40:37 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F40EC1065676 for ; Thu, 12 Mar 2009 22:40:36 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: from web63907.mail.re1.yahoo.com (web63907.mail.re1.yahoo.com [69.147.97.122]) by mx1.freebsd.org (Postfix) with SMTP id B4C928FC18 for ; Thu, 12 Mar 2009 22:40:36 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: (qmail 60396 invoked by uid 60001); 12 Mar 2009 22:40:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1236897636; bh=kWaT1DjYJKdIIVu9Jhld4qPFjYxxtaT8Vlwe+BtOua4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=FLpxig5AEMAW2yTVfAcpBsA7mXrMoLiZLroTdCqy31vIVCwgwQY459RRHoTDHuVPHL4fcTfd00pZ79JIfi6SlyhmN0glPs5P8YRx5DGuyXU8jEf9rKkk0PpYhDDP2v3BvnIXBdl+Bh1E1Kbt2GYNYEXITeDLR3WduxBRXR88wF4= 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:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=nJd9kTywQtiKF+15GKG/eawjNXx0qs5t13CD9+/w5xAhYq3Lja0g4zgwt/Co9fe5WDXJn5A3aP8Aw2AHADZR7YIgSVysXi59c4uyJTx3GfWqrAIAlDT5JyHMcqWoEdj+MG6wnUaHLrYvSHBdBOgARGzIAOaU9/wSs+bt68SPRCY=; Message-ID: <87164.59627.qm@web63907.mail.re1.yahoo.com> X-YMail-OSG: SzyQC.UVM1mHug5YHXEYjW6SHXeVs8XXmun5ljgshn3Ftq_.didFgVaoAHX1wcx_4HCRLE6MQI7QztxiGHKzHNgcPQ4aHxD50AxHHVxJCfAEI0AeFkbQxtDfk0gUvndEE3_snypDK6TevnQhzwGIw5CBicnGC9O9f2.1SoQew.0BCHmRfKfIn3naaYT_1jY- Received: from [98.242.222.229] by web63907.mail.re1.yahoo.com via HTTP; Thu, 12 Mar 2009 15:40:36 PDT X-Mailer: YahooMailWebService/0.7.289.1 Date: Thu, 12 Mar 2009 15:40:36 -0700 (PDT) From: Barney Cordoba To: current@freebsd.org, Chris Ruiz In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: Re: Interrupt routine usage not shown by top in 8.0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: barney_cordoba@yahoo.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Mar 2009 22:40:37 -0000 --- On Thu, 3/12/09, Chris Ruiz wrote: > From: Chris Ruiz > Subject: Re: Interrupt routine usage not shown by top in 8.0 > To: current@freebsd.org > Date: Thursday, March 12, 2009, 5:17 PM > On Mar 12, 2009, at 3:23 PM, Barney Cordoba wrote: > > > > > I'm fireing 400Kpps at a udp blackhole port. > I'm getting 6000 > > interrupts > > per second on em3: > > > > testbox# vmstat -i; sleep 1; vmstat -i > > interrupt total rate > > irq1: atkbd0 1 0 > > irq6: fdc0 1 0 > > irq17: uhci1+ 2226 9 > > irq18: uhci2 ehci+ 9 0 > > cpu0: timer 470507 1993 > > irq256: em0 665 2 > > irq259: em3 1027684 4354 > > cpu1: timer 470272 1992 > > cpu3: timer 470273 1992 > > cpu2: timer 470273 1992 > > Total 2911911 12338 > > > > interrupt total rate > > irq1: atkbd0 1 0 > > irq6: fdc0 1 0 > > irq17: uhci1+ 2226 9 > > irq18: uhci2 ehci+ 9 0 > > cpu0: timer 472513 1993 > > irq256: em0 668 2 > > irq259: em3 1033703 4361 > > cpu1: timer 472278 1992 > > cpu3: timer 472279 1992 > > cpu2: timer 472279 1992 > > Total 2925957 12345 > > > > > > top -SH shows: > > > > PID STATE C TIME CPU COMMAND > > 10 CPU3 3 7:32 100.00% idle > > 10 CPU2 2 7:32 100.00% idle > > 10 RUN 0 7:31 100.00% idle > > 10 CPU1 1 7:31 100.00% idle > > > > This implies that CPU usage is substantially > under-reported in general > > by the system. Note that I've modified > em_irq_fast() to call > > em_handle_rxtx() directly rather than scheduling a > task to illustrate > > the problem > > > > Barney > > The version of top in the base system is known to provide > incorrect > metrics. > > Chris Does that imply that there exists a version that provides correct information? Barney