From owner-freebsd-net@FreeBSD.ORG Tue Dec 1 19:52:56 2009 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12F801065693 for ; Tue, 1 Dec 2009 19:52:56 +0000 (UTC) (envelope-from brett@lariat.net) Received: from lariat.net (lariat.net [66.119.58.2]) by mx1.freebsd.org (Postfix) with ESMTP id 8BED98FC1E for ; Tue, 1 Dec 2009 19:52:55 +0000 (UTC) Received: from anne-o1dpaayth1.lariat.net (IDENT:ppp1000.lariat.net@lariat.net [66.119.58.2]) by lariat.net (8.9.3/8.9.3) with ESMTP id MAA12927 for ; Tue, 1 Dec 2009 12:52:52 -0700 (MST) Message-Id: <200912011952.MAA12927@lariat.net> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Tue, 01 Dec 2009 12:50:33 -0700 To: net@freebsd.org From: Brett Glass Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Question regarding netgraph and threading 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: Tue, 01 Dec 2009 19:52:56 -0000 All: I have several large PPTP servers which are currently using ppp(8) and PoPTop (a userland PPTP server daemon which is, unfortunately, GPLed). They're having trouble under heavy loads, and so I'd like to switch to mpd5. However, even though mpd5 handles network connections in the kernel, via netgraph, I am worried about performance. As far as I can see, all netgraph operations are performed by a single kernel thread named "ng_queue", while ppp(8) and PoPToP use many processes and thus can distribute their work among multiple CPU cores. Is netgraph able to multithread, or is there a way to make it do so? --Brett Glass