From owner-freebsd-net@FreeBSD.ORG Wed Dec 2 01:36:04 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 D08A51065670 for ; Wed, 2 Dec 2009 01:36:04 +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 6C5A38FC0A for ; Wed, 2 Dec 2009 01:36:04 +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 SAA17434; Tue, 1 Dec 2009 18:35:58 -0700 (MST) Message-Id: <200912020135.SAA17434@lariat.net> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Tue, 01 Dec 2009 18:35:44 -0700 To: Julian Elischer From: Brett Glass In-Reply-To: <4B15AFE9.5070606@elischer.org> References: <200912011952.MAA12927@lariat.net> <4B1580E2.4080006@elischer.org> <200912012333.QAA16055@lariat.net> <4B15AFE9.5070606@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: net@freebsd.org Subject: Re: 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: Wed, 02 Dec 2009 01:36:04 -0000 At 05:08 PM 12/1/2009, Julian Elischer wrote: >in the netgraph code I see: > > /* Autoconfigure number of threads. */ > if (numthreads <= 0) > numthreads = mp_ncpus; Ah.... Found this in /sys/netgraph/ng_base.c. Yes, it does seem to have a pool of worker threads. This is good. It means that if there's a single thread or single CPU bottleneck for a busy PPTP server, it would not be the netgraph traffic but rather the one process handling the TCP control connections for the PPTP sessions. I'll give it a try and see if this causes any problems. Still wondering about that boot time message, though. --Brett