From owner-freebsd-hackers Fri Mar 7 5:11: 1 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 004C937B401 for ; Fri, 7 Mar 2003 05:11:00 -0800 (PST) Received: from grassmarket.ucs.ed.ac.uk (grassmarket.ucs.ed.ac.uk [129.215.166.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15D6E43FBD for ; Fri, 7 Mar 2003 05:10:58 -0800 (PST) (envelope-from bruce@cran.org.uk) Received: from fourtytwo.brucec.backnet (12266209.resnet.ed.ac.uk [10.6.0.100] (may be forged)) by grassmarket.ucs.ed.ac.uk (8.11.6/8.11.6) with ESMTP id h27DAfT21784 for ; Fri, 7 Mar 2003 13:10:56 GMT Received: from fourtytwo.brucec.backnet (localhost.fourtytwo.brucec.backnet [127.0.0.1]) by fourtytwo.brucec.backnet (8.12.8/8.12.6) with ESMTP id h27DAdVY000946 for ; Fri, 7 Mar 2003 13:10:39 GMT (envelope-from bruce@fourtytwo.brucec.backnet) Received: (from bruce@localhost) by fourtytwo.brucec.backnet (8.12.8/8.12.8/Submit) id h27DAdNn000945 for hackers@freebsd.org; Fri, 7 Mar 2003 13:10:39 GMT Date: Fri, 7 Mar 2003 13:10:39 +0000 From: Bruce Cran To: hackers@freebsd.org Subject: High CPU usage when forwarding packets Message-ID: <20030307131038.GA919@fourtytwo.brucec.backnet> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.3i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I've just setup a P75 system as a router, containing fa311 and pcnet network cards. The fa311 is doing nat to my private network, which is served by the pcnet card. However, I've found that it often uses 40% cpu just to send packets from the fa311 (sis) to the pcnet (lnc) cards. natd uses 20%, 10% are interrupts, and 25% is 'system' as shown in top. Also, I'm getting several thousand 'lnc0: Missed packet -- no receive buffer' messages. Could this be the problem, or is the system just not powerful enough do nat? The sis0 card is 100MBit PCI, while the lcn0 is 10MBit ISA. Bruce Cran To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message