From owner-freebsd-net@FreeBSD.ORG Sun Dec 11 14:02:45 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD6C516A41F for ; Sun, 11 Dec 2005 14:02:45 +0000 (GMT) (envelope-from pete@he.iki.fi) Received: from rms06.rommon.net (rms06.rommon.net [212.54.5.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12C5143D5C for ; Sun, 11 Dec 2005 14:02:44 +0000 (GMT) (envelope-from pete@he.iki.fi) Received: from [127.0.0.1] (dyn234.helenius.fi [193.64.42.234]) by rms06.rommon.net (Postfix) with ESMTP id 6063733C1B; Sun, 11 Dec 2005 16:02:37 +0200 (EET) Message-ID: <439C317C.3060707@he.iki.fi> Date: Sun, 11 Dec 2005 16:02:36 +0200 From: Petri Helenius User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Brian Candler References: <20051211112650.67553.qmail@web35715.mail.mud.yahoo.com> <20051211134805.GB98105@uk.tiscali.com> In-Reply-To: <20051211134805.GB98105@uk.tiscali.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kamal kc , freebsd Subject: Re: high interrupts by network interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2005 14:02:45 -0000 Brian Candler wrote: >On Sun, Dec 11, 2005 at 03:26:50AM -0800, kamal kc wrote: > > >>i modified the bridge.c file and added a routine to >>compress/decompress >>ip packet. i put my code in bdg_forward(). And ran the >>pc in bridge mode. >> >>The modified kernel is deployed in network where the >>datarate is >>about 4 to 6 Mbps. One thing to be noted is that the >>pc receives >>continues data at 4 to 6 Mbps rather than sudden burst >>at intervals. >> >>Now the problem is, I am getting very high interrupts >>from the network >>interfaces. the cpu utilization by the interrupts is >>high due to which there >>is latency added to the packets forwarded by the pc. >>The pc attempts to >>compress/decompress all tcp packets. >> >> > >Suggestion: start with a standard kernel, without your custom modifications. > >If unmodified bridging works, and you get the high interrupt level, then you >have found a problem with in FreeBSD. > Or you have found that hardware using "rl" driver is not as good as some other hardware. Read the source to get some more information. Pete