From owner-freebsd-net@FreeBSD.ORG Thu Jun 5 13:13:11 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 11D0037B401 for ; Thu, 5 Jun 2003 13:13:11 -0700 (PDT) Received: from mwinf0604.wanadoo.fr (smtp3.wanadoo.fr [193.252.22.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED2AC43FA3 for ; Thu, 5 Jun 2003 13:13:09 -0700 (PDT) (envelope-from vjardin@wanadoo.fr) Received: from venus.vincentjardin.net (unknown [193.253.255.175]) by mwinf0604.wanadoo.fr (SMTP Server) with ESMTP id 831D22800146; Thu, 5 Jun 2003 22:13:08 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" From: Vincent Jardin To: Julian Elischer , Michael Shiu Date: Thu, 5 Jun 2003 22:13:35 +0200 User-Agent: KMail/1.4.3 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200306052213.35422.vjardin@wanadoo.fr> cc: freebsd-net@freebsd.org Subject: Re: 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 20:13:11 -0000 Maybe one giant2thread node could be introduced into the graphs. It could= put=20 the messages and the mbufs into a queue from a giant context, then they c= ould=20 be processed from a thread. Is it a possible architecture or do I forget something ? Regards, Vincent Le Jeudi 5 Juin 2003 13:38, Julian Elischer a =E9crit : > On Thu, 5 Jun 2003, Michael Shiu wrote: > > Dear all, > > > > Just like to know if the netgraph code running 5.x SMP kernel require= s > > the GIANT lock? > > Netgraph has lovking built into it but I have not > had teh time yet to "thrown the switch" and run it without > giant. (actually it would only have giant if the edge node that > introduces the packet has giant, or if it's running > as a net thread.) > > What is your graph like? > > > 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 > > > > _______________________________________________ > > freebsd-net@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-net > > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org= " > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"