From owner-freebsd-questions@FreeBSD.ORG Wed Sep 22 21:57:33 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30EAE16A4CE for ; Wed, 22 Sep 2004 21:57:33 +0000 (GMT) Received: from imo-d23.mx.aol.com (imo-d23.mx.aol.com [205.188.139.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id C188E43D46 for ; Wed, 22 Sep 2004 21:57:32 +0000 (GMT) (envelope-from TM4525@aol.com) Received: from TM4525@aol.com by imo-d23.mx.aol.com (mail_out_v37_r3.7.) id n.67.3411dd28 (17377) for ; Wed, 22 Sep 2004 17:57:30 -0400 (EDT) From: TM4525@aol.com Message-ID: <67.3411dd28.2e834f4a@aol.com> Date: Wed, 22 Sep 2004 17:57:30 EDT To: freebsd-questions@freebsd.org MIME-Version: 1.0 X-Mailer: 9.0 for Windows sub 5112 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Device polling question - Freebsd 4.9 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 21:57:33 -0000 I'm a bit confused about device polling. I put a counter in em_poll(), and then enabled device polling for 10 seconds and read back the counter, and it was called 1.5million times. This is with virtually no network activity and HZ set to the default of 100. The docs seem to imply that the polling function gets called once per clock tick, but that doesn't seem to be the case at all. I'm trying to figure the reasoning behind mucking with the HZ value, which may affect some other things and also seems to defeat the purpose of trying to reduce overhead. With the HZ value at 100 the system easily passes 90K pps, but Im concerned about what variations occur when the system is under load, or if there are time-consuming activities (like extensive firewall rules). Also, when using device polling, even under heavy network load "top" shows the system to be almost completely idle. How can I gauge system usage when using polling instead of interrupts? Its difficult to compare the 2 methods when one of them can't be measured. TIA Tommy Mato