From owner-freebsd-current@FreeBSD.ORG Sun Mar 1 15:22:01 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 A5D15106566B for ; Sun, 1 Mar 2009 15:22:01 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: from web63904.mail.re1.yahoo.com (web63904.mail.re1.yahoo.com [69.147.97.119]) by mx1.freebsd.org (Postfix) with SMTP id 4F6698FC1B for ; Sun, 1 Mar 2009 15:22:01 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: (qmail 52943 invoked by uid 60001); 1 Mar 2009 15:22:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1235920920; bh=fIogrts0hzS8rOSCzFaqeH+WlDxtmNWpEQTJ3IJLifU=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=RrQpE5hG/hHQy8wRtM4o7YQy3mBeDSdACakGIk3/j4o75G6G2tvaPztGWTfWVuQnh5astkEQNFDBXelyfxb6PzCwA7sGWXj6n+gAL5PrhxAUGKTcfCkO+TmcBKmZqdkccS4Vk5Yp1xX0UrC192fvHWsrZ5N9WlyJqJPixldftak= 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=nG9iEU+W5JhfQyW3+WsEbc2Ly06osTbW3IAxCffxjFTXpa2shwEp+c5pyUTCDJjUoqrGU8aw1DzhaEIIx/N1de1OlN4ZicNH0L+V/4n8MaWBgQBxdHTNxBE9Rh26DdhLg1FlZMLpudJBwNpxIyw+o0vbCgLl7ZZp1GnKBDQZUMg=; Message-ID: <845248.52556.qm@web63904.mail.re1.yahoo.com> X-YMail-OSG: sy3kFesVM1nZmJXdYcP6ycdm5K9xOv5b4UbpJ.z3RUuf3RGU7B7K3JCREX5FuuDKPJfpczMq.Y.YUlzrhtH3VN80C1AxTnh.kN_LSEaSt4CxOoByZ6LgNwaVUpletGUF9VI4IlM8kZJ4R4aQ.toA5cihKYk- Received: from [98.242.222.229] by web63904.mail.re1.yahoo.com via HTTP; Sun, 01 Mar 2009 07:22:00 PST X-Mailer: YahooMailWebService/0.7.289.1 Date: Sun, 1 Mar 2009 07:22:00 -0800 (PST) From: Barney Cordoba To: current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: 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:22:02 -0000 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