From owner-freebsd-net@FreeBSD.ORG Thu Jun 5 03:56:59 2003 Return-Path: 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 C59C137B401 for ; Thu, 5 Jun 2003 03:56:59 -0700 (PDT) Received: from smtp01.net-yan.com (smtp01.net-yan.com [210.0.255.210]) by mx1.FreeBSD.org (Postfix) with SMTP id 176E043FAF for ; Thu, 5 Jun 2003 03:56:57 -0700 (PDT) (envelope-from mshiu@net-yan.com) Received: (qmail 84548 invoked from network); 5 Jun 2003 10:56:54 -0000 Received: from unknown (HELO athena) ([203.184.192.193]) (envelope-sender ) by localhost (qmail-ldap-1.03) with SMTP for ; 5 Jun 2003 10:56:54 -0000 Message-ID: <012701c32b51$20068770$650019ac@athena> From: "Michael Shiu" To: Date: Thu, 5 Jun 2003 18:55:33 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Does Netgraph in FBSD 5.x SMP requires GIANT lock? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2003 10:57:00 -0000 Dear all, Just like to know if the netgraph code running 5.x SMP kernel requires the GIANT lock? I have the netgraph doing bridging right now but the performance is limited by the CPU (right now, it is something around 100k pkt/s in 4-STABLE). Does adding another CPU together with upgrading to 5.x be of any help? I guess the bottleneck right now is only one thread is executing in interrupt context with GIANT being held. Am I right? _Michael