From owner-freebsd-net@FreeBSD.ORG Mon May 19 22:25:14 2008 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 84C99106564A for ; Mon, 19 May 2008 22:25:14 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outX.internet-mail-service.net (outx.internet-mail-service.net [216.240.47.247]) by mx1.freebsd.org (Postfix) with ESMTP id 7567E8FC15 for ; Mon, 19 May 2008 22:25:14 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Tue, 20 May 2008 10:31:55 -0700 Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id B73852D6011; Mon, 19 May 2008 15:25:13 -0700 (PDT) Message-ID: <4831FE4A.8010002@elischer.org> Date: Mon, 19 May 2008 15:25:14 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: Einstein Oliveira References: <4831FA6A.1080906@yawl.com.br> In-Reply-To: <4831FA6A.1080906@yawl.com.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Net Subject: Re: Suggestions on a PPPoE server with mpd 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: Mon, 19 May 2008 22:25:14 -0000 Einstein Oliveira wrote: >> Einstein Oliveira wrote: >>> Julian Elischer wrote: >>>> Einstein Oliveira wrote: >>>>> Hi all, >>>>> >>>>> In an attempt to change from pppoed + ppp to mpd I'm having some >>>>> strange behaviour with the later on the same host that usually >>>>> handles 100+ clients with the former. >>>>> >>>>> Basically it's a i386 FreeBSD 6.3 system with mpd-5.1 and 1 GB Ram. >>>>> Users can connect without any problem. >>>>> >>>>> After a few minutes a SECOND mpd process is initiated and this one >>>>> consumes all idle processing of the host. >>>>> >>>>> Whoever is connected before that still remains connected but no new >>>>> user can get in anymore. Also logging stops being generated. >>>>> >>>>> The only solution is a killall -KILL on mpd. >>>>> >>>>> On another host I have the same configuration working as expected >>>>> but with less than 50 clients. >>>>> >>>>> Both configurations are the same from mpd.conf.sample. >>>>> >>>>> So I'm looking for any suggestions that somebody has been using to >>>>> handle that many pppoe connections (100+) with mpd. >>>>> >>>>> >>>>> >>>>> Thanks, >>>>> >>>> >>>> >>>> people have handled many more than 100 I think.. >>>> however there is no reason that a 2nd should start up. >>>> what is teh PPID of the 2nd? >>>> >>>> are you sure that it isn't being started up by whatever starts up >>>> the first? >>>> >>>> >>> >>> The second process has a bigger PID than the first and I'm using the >>> default /usr/local/etc/rc.d/mpd5 as startup script with >>> mpd_enable="YES" on /etc/rc.conf. >> >> what about the PPID? (Parent PID) ps alx shows this. >> >>> > > here is the output of ps -alx: > > 0 12573 1 0 20 0 5424 3468 kserel Ss ?? 0:00.15 > /usr/local/sbin/mpd5 -p /va > 0 12629 12573 283 131 0 5424 3452 - R ?? 0:36.94 > /usr/local/sbin/mpd5 -p /va > 0 12707 11713 0 96 0 1528 868 - R+ p0 0:00.00 > grep mpd5 > > sorry I repeated myself.. hmmm kserel... it's threaded? I didn't know that.. does top -H show a bunch of threads? So the first copy of mpd has spawned another while threaded. have you applied the patch for 6.3 in the 6.3 errata notifications? http://security.freebsd.org/advisories/FreeBSD-EN-08:01.libpthread.asc