From owner-freebsd-current@FreeBSD.ORG Sun Mar 1 15:46:24 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 7100E106564A for ; Sun, 1 Mar 2009 15:46:24 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: from web63903.mail.re1.yahoo.com (web63903.mail.re1.yahoo.com [69.147.97.118]) by mx1.freebsd.org (Postfix) with SMTP id AB1C98FC15 for ; Sun, 1 Mar 2009 15:46:23 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: (qmail 15092 invoked by uid 60001); 1 Mar 2009 15:46:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1235922383; bh=+zMWbEjCZeR88jEAZ9V3Ny7YPr+kUkQdqc3hGdaC8bA=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=Q5X+SlKnNOwKBq6EqE5qZ2pZzMGYE+Suv5W5E8hkE4XkirA0EuC9X8xwsuIANY4yLgMyOGlG89onfELf9JZi7KtwXyGg6d8vi56dqIArRNuNKjBhakGW9Ym/3qz3QFW6msuyz3Ypein3AECct31kxEG84Lv0DYJO8ipLg1yJisg= 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:MIME-Version:Content-Type; b=t9qMgqyL2GsGYoFMufcDosCqtXf/9xQq+Lb0Gz47O3SfZf3jIkva389K6OaQj0SjiTu7gQ0zzKBNttrZTr90/HXQlaMKuD0DlMolBaKFMxMb2RjPnwTTdAwWxY8uAtMnnWByQe5bOs3crHm7ZuJBuoED+OZ5fv9+5wfjFQKhPsg=; Message-ID: <259584.14857.qm@web63903.mail.re1.yahoo.com> X-YMail-OSG: AQIdYBYVM1lTnQZ1kvzKUrwab88Ne4fQ8S_.OElmQb4sDI.GI_S_Y8eHGfvaf7ipISBvu3eC41wUZK4z8jG5HXvl0UMeeyqZaI1WI5piT96qFXTytYaptvlFz5M_2Rtal9fuNLzXJj1CYhE0sxbGXvM0mHVB1hpTJC3v_jjy3CDpkezwIfh.NeSmtlzbrnU- Received: from [98.242.222.229] by web63903.mail.re1.yahoo.com via HTTP; Sun, 01 Mar 2009 07:46:23 PST X-Mailer: YahooMailWebService/0.7.289.1 Date: Sun, 1 Mar 2009 07:46:23 -0800 (PST) From: Barney Cordoba To: current@freebsd.org 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: Sun, 01 Mar 2009 15:46:24 -0000 --- 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