From owner-freebsd-net@FreeBSD.ORG Sun Dec 11 13:48:09 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 107CA16A426 for ; Sun, 11 Dec 2005 13:48:09 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from thorn.pobox.com (api.pobox.com [208.210.124.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8715243D45 for ; Sun, 11 Dec 2005 13:48:08 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from thorn (localhost [127.0.0.1]) by thorn.pobox.com (Postfix) with ESMTP id E1DCCF7; Sun, 11 Dec 2005 08:48:29 -0500 (EST) Received: from mappit.local.linnet.org (212-74-113-67.static.dsl.as9105.com [212.74.113.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by thorn.sasl.smtp.pobox.com (Postfix) with ESMTP id A961E1E14; Sun, 11 Dec 2005 08:48:28 -0500 (EST) Received: from lists by mappit.local.linnet.org with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1ElRYb-000PX8-AJ; Sun, 11 Dec 2005 13:48:05 +0000 Date: Sun, 11 Dec 2005 13:48:05 +0000 From: Brian Candler To: kamal kc Message-ID: <20051211134805.GB98105@uk.tiscali.com> References: <20051211112650.67553.qmail@web35715.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051211112650.67553.qmail@web35715.mail.mud.yahoo.com> User-Agent: Mutt/1.4.2.1i Cc: 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 13:48:09 -0000 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. If unmodified bridging works, but interrupts are at a normal level, then you have a found a problem with your own code.