From owner-freebsd-net@FreeBSD.ORG Wed Dec 3 08:17:47 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DC4B106564A for ; Wed, 3 Dec 2008 08:17:47 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id A71DF8FC1D for ; Wed, 3 Dec 2008 08:17:46 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from orphanage.alkar.net (account mav@alkar.net [212.86.226.11] verified) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPA id 228675719; Wed, 03 Dec 2008 10:17:45 +0200 Message-ID: <493640A9.8080701@FreeBSD.org> Date: Wed, 03 Dec 2008 10:17:45 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.14 (X11/20080612) MIME-Version: 1.0 To: "Vladimir V. Kobal" References: <1228234984.00043656.1228222202@10.7.7.3> In-Reply-To: <1228234984.00043656.1228222202@10.7.7.3> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Multiple netgraph threads 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: Wed, 03 Dec 2008 08:17:47 -0000 Hi. Vladimir V. Kobal wrote: > I'm interested in the information of further development of Subject. I have > a bottleneck: swi_net limited by one CPU core time. There was a thread > http://lists.freebsd.org/pipermail/freebsd-net/2008-March/017447.html . > Patch http://people.freebsd.org/~mav/netgraph.threads.patch is not available > :(. Could somebody mail it to me. Are there any other similar patches? I have uploaded that patch back. Not sure is it correct at this moment, there was some changes, but that time it worked fine. I have measured some benefit on my tests with Core2Quad using NetPerf cluster. But even having all 4 cores busy, I have got just only about 20% performance benefit on that test setup (routing between three Gigabit PPTP links). I suppose it was result of constant cache trashing, when the same netgraph nodes write-accessed by different CPUs. But may be on more diverse workload, or with some heavy compression/encryption used benefit can be bigger. -- Alexander Motin