From owner-freebsd-current@FreeBSD.ORG Mon Mar 2 17:19:13 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 6500610656EB for ; Mon, 2 Mar 2009 17:19:13 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: from web63905.mail.re1.yahoo.com (web63905.mail.re1.yahoo.com [69.147.97.120]) by mx1.freebsd.org (Postfix) with SMTP id 1265E8FC15 for ; Mon, 2 Mar 2009 17:19:12 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: (qmail 75070 invoked by uid 60001); 2 Mar 2009 17:19:12 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1236014352; bh=+mWVxsKmiyq0fg42S/LAju8wpnuLJcsG2QuODdun83E=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=vpibM5q6JztYjTTpqd9j5GyjH4yN4hbzlpx3YxidL4FYSV4JYFj04dCyqwONd34H5UsWAnUiac6IuPY/SLyy27qIQSJFmyZRhtRM0NPqaGOtuOtmsObThJgT15r2Kkz2WgAbPl/BAqKoppABu4gecxk0SxKWYnzjkLfBFYqESqc= 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=4To81HFdYqEXuxbHYq1/nyIIft1Hzn9Lp9dNaUB5vCMaKG2/Ymg32SlSAFUlT4XsbFgGiCrzcHBftq8z2j6oJORkOTSlqDHQGos/NeW5Kdlh9PIqyR/pSAJl1rJN6qlUrjOsDeS7DZlE0PvLs23X2k6Dmq5Oo2QgVK4kJ75pHpQ=; Message-ID: <294552.75058.qm@web63905.mail.re1.yahoo.com> X-YMail-OSG: 82BzS1cVM1mLfnI_Kn3D_GBMBUjfr554qTnt5yv92VMWwhBJuGUI31VjO74Rq5bideftI6SXdo8HmfVoqKZg9sxGVhkceqLwr9G_4X_GDXbUACdPY52kfZch9ChNPFZulfHEiG8cxx_YRioCmV2lyB4gzVjoGiFDoKyS.NwUtvJmxeqbNp7KbHcFDuo40UU- Received: from [98.242.222.229] by web63905.mail.re1.yahoo.com via HTTP; Mon, 02 Mar 2009 09:19:12 PST X-Mailer: YahooMailWebService/0.7.289.1 Date: Mon, 2 Mar 2009 09:19:12 -0800 (PST) From: Barney Cordoba To: current@freebsd.org In-Reply-To: <259584.14857.qm@web63903.mail.re1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: Re: CPU usage inaccuracy for taskqueue 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: Mon, 02 Mar 2009 17:19:14 -0000 --- On Sun, 3/1/09, Barney Cordoba wrote: > From: Barney Cordoba > Subject: Re: CPU usage inaccuracy for taskqueue > To: current@freebsd.org > Date: Sunday, March 1, 2009, 10:46 AM > --- On Sun, 3/1/09, Barney Cordoba > wrote: > > > From: Barney Cordoba > > Subject: CPU usage inaccuracy for taskqueue > > To: current@freebsd.org > > Date: Sunday, March 1, 2009, 10:22 AM > > I've been playing with the ige driver and as a > test > > shifted the entire > > receive load to a task instead of doing it in the > msix_rx > > routine by simply > > launching a receive task whenever an interrupt is > > generated. When doing so > > and applying a moderate load, top readings show: > > > > PID USERNAME THR PRI NICE SIZE RES STATE C > TIME > > WCPU COMMAND 11 root 1 171 ki31 0K 8K > RUN > > 3 6:31 100.00% idle: cpu3 12 root 1 171 > ki31 > > 0K 8K CPU2 2 6:30 100.00% idle: cpu2 13 root > > > 1 171 ki31 0K 8K CPU1 1 6:29 100.00% idle: > cpu1 > > 14 root 1 171 ki31 0K 8K CPU0 0 > 6:23 > > 99.17% idle: cpu0 > > 42 root 1 -68 - 0K 8K - 0 > 0:07 > > 7.47% igb1 taskq > > > > clearly the cpu idle thread values aren't correct. > This > > is the case in > > both 7.0 and 7.1. Since the point of my testing is to > > experiment with > > schemes for spreading loads better, I'm not able > to > > learn anything with > > the lack of usable feedback. Is there a simple fix? > > > > Barney > > > Sorry for the ugly post. It looks ok in Yahoo and then gets > all jumbled. > The gist of the top output: > > 100.00% idle: cpu3 > 100.00% idle: cpu2 > 100.00% idle: cpu1 > 99.17% idle: cpu0 > 7.47% igb1 taskq > > The task is show 7.5% usage and < 1% usage is shown by > the cpu idle > threads. > > Barney > Can someone point me to the module / source file where this accounting *should* take place? BC