From owner-freebsd-stable Tue Nov 19 5: 9:58 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B9D7F37B401 for ; Tue, 19 Nov 2002 05:09:56 -0800 (PST) Received: from mail.iskon.hr (inje.iskon.hr [213.191.128.16]) by mx1.FreeBSD.org (Postfix) with SMTP id 02C4943E88 for ; Tue, 19 Nov 2002 05:09:46 -0800 (PST) (envelope-from zec@tel.fer.hr) Received: (qmail 6800 invoked from network); 19 Nov 2002 14:09:33 +0100 Received: from zg04-031.dialin.iskon.hr (HELO tel.fer.hr) (213.191.137.32) by mail.iskon.hr with SMTP; 19 Nov 2002 14:09:33 +0100 Message-ID: <3DDA380A.37355A33@tel.fer.hr> Date: Tue, 19 Nov 2002 14:09:30 +0100 From: Marko Zec X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Sergey Solyanik Cc: Dmitry Morozovsky , stable@freebsd.org Subject: Re: DEVICE_POLLING and kern.hz References: <20021118221514.I34951-100000@woozle.rinet.ru> <3DD945D4.2020104@sumy.net> Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Sergey Solyanik wrote: > Dmitry Morozovsky wrote: > > we have FreeBSD router with 4 fxp's and moderately high traffic (up to 15 Mbps > > at upstream port). There is about 2k5-3k5 interrupts per second, about 1k-1k5 > > of them are from fxp0. > > > > Would it be useful to turn on DEVICE_POLLING on this machine? > > Wouldn't be useful just to load microcode into fxpX ? > Try ifconfig fxpX link0 The fxp microcode puts the card into the interrupt coalescing mode, which can be useful for end nodes, but is definitely a BAD THING on routers. Contrary to interrupt coalescing, which can introduce significant delays and thereby cause unnecessary problems with TCP throughput, device polling approach seems to be much better suited for packet forwarding applications, as it won't introduce any additional delay under normal operating conditions. Nevertheless, at traffic rates not regularly exceeding 10.000 packets per second, which seems to be the case in your environment, I don't see any need for employing either interrupt coalescing or device polling at all. Best regards, Marko To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message