From owner-freebsd-stable@FreeBSD.ORG Thu Jul 20 11:26:18 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org 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 6D02A16A4DE for ; Thu, 20 Jul 2006 11:26:18 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail05.syd.optusnet.com.au (mail05.syd.optusnet.com.au [211.29.132.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id B724A43D46 for ; Thu, 20 Jul 2006 11:26:17 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail05.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k6KBQET7020212 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 20 Jul 2006 21:26:15 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.6/8.13.6) with ESMTP id k6KBQEUr001699; Thu, 20 Jul 2006 21:26:14 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.6/8.13.6/Submit) id k6KBQDuO001698; Thu, 20 Jul 2006 21:26:13 +1000 (EST) (envelope-from peter) Date: Thu, 20 Jul 2006 21:26:13 +1000 From: Peter Jeremy To: Ed Maste Message-ID: <20060720112613.GB716@turion.vk2pj.dyndns.org> References: <20060711190908.GC69272@registro.br> <20060720023856.GA65960@sandvine.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hHWLQfXTYDoKhP50" Content-Disposition: inline In-Reply-To: <20060720023856.GA65960@sandvine.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Cc: freebsd-stable@freebsd.org Subject: Re: How to setup polling on 'bge' interface X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2006 11:26:18 -0000 --hHWLQfXTYDoKhP50 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, 2006-Jul-19 22:38:56 -0400, Ed Maste wrote: >- You may have to adjust some parameters in the kern.polling sysctl > tree - specifically, kern.polling.burst_max, kern.polling.each_burst > and kern.polling.user_frac might need tweaking. Note that increasing kern.polling.burst_max and kern.polling.each_burst will also increase the number of soft interrupts. >- The polling feedback algorithm does not work very well if your > workload is focused largely on per-packet tasks (such as routing or > bridging). You'll find that there is still idle CPU time at the > point you start dropping packets. I have some work in progress to > address this, but it's not yet committed. I thought setting kern.polling.idle_poll would allow the CPU to utilise all idle time. The downside is that the system always shows as 100% utilised so it's very difficult to know how busy the system actually is. >- Polling's major advantage is the avoidance of livelock on UP systems, > and not improved performance. The limited testing I've done on a Sun V20z at work suggests that you can get better routing throughput in interrupt mode than polling mode. YMMV and this is before tweaking the polling parameters. (My testing also suggests that I don't really need to do any tweaking because the limiting factor is the gigabit interfaces rather than the V20z). --=20 Peter Jeremy --hHWLQfXTYDoKhP50 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFEv2hU/opHv/APuIcRAsTAAJ9y5Z/S9h8+yljhGeqhkQ9fWUjJ+gCgjKaC 5hdp6wCuG2qeQwc15NJ2Mb4= =shpx -----END PGP SIGNATURE----- --hHWLQfXTYDoKhP50--