From owner-freebsd-stable@FreeBSD.ORG Sun Oct 15 19:37:28 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 632A516A47B for ; Sun, 15 Oct 2006 19:37:28 +0000 (UTC) (envelope-from johan@stromnet.org) Received: from pne-smtpout2-sn2.hy.skanova.net (pne-smtpout2-sn2.hy.skanova.net [81.228.8.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1843A43D6A for ; Sun, 15 Oct 2006 19:37:19 +0000 (GMT) (envelope-from johan@stromnet.org) Received: from elfi.stromnet.org (90.224.172.102) by pne-smtpout2-sn2.hy.skanova.net (7.2.075) id 452BAB410011A012 for freebsd-stable@freebsd.org; Sun, 15 Oct 2006 21:37:18 +0200 Received: from localhost (localhost [127.0.0.1]) by elfi.stromnet.org (Postfix) with ESMTP id CADA561DB6 for ; Sun, 15 Oct 2006 21:37:15 +0200 (CEST) X-Virus-Scanned: amavisd-new at stromnet.org Received: from elfi.stromnet.org ([127.0.0.1]) by localhost (elfi.stromnet.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9e6yU4YjNrdM for ; Sun, 15 Oct 2006 21:37:15 +0200 (CEST) Received: from [IPv6:2001:16d8:ff20:2:217:f2ff:fe41:3f1b] (jstrom-mb.wlan.v6.stromnet.org [IPv6:2001:16d8:ff20:2:217:f2ff:fe41:3f1b]) by elfi.stromnet.org (Postfix) with ESMTP id 4701E61DB5 for ; Sun, 15 Oct 2006 21:37:15 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-stable@freebsd.org From: =?ISO-8859-1?Q?Johan_Str=F6m?= Date: Sun, 15 Oct 2006 21:36:51 +0200 X-Mailer: Apple Mail (2.752.3) Subject: Network polling 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: Sun, 15 Oct 2006 19:37:28 -0000 Hi I just tried to enable network polling on my router box, a P2 400MHz with 3 different NICs (one internal, i think its the fxp one): fxp0: port 0x7c60-0x7c7f mem 0xf3dff000-0xf3dfffff,0xf3f00000-0xf3ffffff irq 11 at device 3.0 on pci0 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: [GIANT-LOCKED] rl0: port 0x7400-0x74ff mem 0xf3efef00-0xf3efefff irq 10 at device 16.0 on pci0 miibus1: on rl0 rlphy0: on miibus1 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: [GIANT-LOCKED] sis0: port 0x7800-0x78ff mem 0xf3eff000-0xf3efffff irq 9 at device 20.0 on pci0 sis0: Silicon Revision: DP83815C gw-1 ~$ uname -a FreeBSD gw-1.stromnet.org 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #1: Fri Oct 13 16:59:41 CEST 2006 johan@elfi.stromnet.org:/usr/obj/ usr/src/sys/ROUTER.POLLING i386 Kernel is GENERIC + carp+pfsync+ipsec+polling.. Ok, so when I transfer data between sis0 to rl0 for example, i get very high intererrupt rate, ~40% or so.. Im using openvpn on the box (laptop on rl0), so the packets is maybee shopped up into smaller fragmenst, im not sure.. But anyways, I got the idea that I should try to enable polling on the interface instead. So I did,r ecompiled with polling and enabled polling on all thre if's (man polling says all three should be supported). Any difference? None! still at 40% interrupts when loading ~10MBit (cant seem to get much more since ovpn floors the CPU at that speed). So, shouldnt the interrupts go down somewhat now that i enabled polling? Or did I get this all wrong ;) Thanks Johan