From owner-freebsd-net@FreeBSD.ORG Mon Jul 4 08:30:58 2011 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 8BEA81065674 for ; Mon, 4 Jul 2011 08:30:58 +0000 (UTC) (envelope-from gygy@stsnet.ro) Received: from mail.stsnet.ro (mail.stsnet.ro [193.151.31.253]) by mx1.freebsd.org (Postfix) with ESMTP id 426418FC1B for ; Mon, 4 Jul 2011 08:30:58 +0000 (UTC) Received: from mail.stsnet.ro (localhost.localdomain [127.0.0.1]) by mail.stsnet.ro (Postfix) with ESMTP id DA04F16DDA3; Mon, 4 Jul 2011 11:30:51 +0300 (EEST) Received: from localhost.localdomain [127.0.0.1] by BitDefender SMTP Proxy on localhost.localdomain [127.0.0.1] for localhost.localdomain [127.0.0.1]; Mon, 4 Jul 2011 11:30:51 +0300 (EEST) Received: from [192.168.100.46] (PC46.ciurel100.stsnet.ro [192.168.100.46]) (Authenticated sender: gygy) by mail.stsnet.ro (Postfix) with ESMTPSA id 9DD9D16DDA0; Mon, 4 Jul 2011 11:30:51 +0300 (EEST) Message-ID: <4E117A3B.4070400@stsnet.ro> Date: Mon, 04 Jul 2011 11:30:51 +0300 From: Adrian Minta User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110522 Icedove/3.1.10 MIME-Version: 1.0 To: Eugene Grosbein References: <4E10C8F3.2050006@rdtc.ru> <4E10C97C.2030200@rdtc.ru> In-Reply-To: <4E10C97C.2030200@rdtc.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BitDefender-Spam: No (0) X-BitDefender-SpamStamp: v1, build 2.8.97.168801, SQMD Hits: none, bayes score: 500(0), pbayes score: 241(0), neunet score: 0(0), flags: [NN_SLOTS_IPX; NN_LENGTH], SQMD: aa11c5de4362b2d2b26249fd38d2352b.fuzzy.fzrbl.org, total: 0(775) X-BitDefender-CF-Stamp: none X-BitDefender-Scanner: Clean, Agent: BitDefender Smtp Proxy 3.1.0 on mail.stsnet.ro, sigver: 7.38155 Cc: freebsd-net@freebsd.org Subject: Re: FreeBSD 8.2 and MPD5 stability issues - update 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, 04 Jul 2011 08:30:58 -0000 On 07/03/2011 10:56 PM, Eugene Grosbein wrote: >> >> There is internal queue of messages in the mpd-5.5 with length 8129. >> Messages are generated based on various events and enqueued there, then processed. >> >> Mpd uses GRED algorithm to prevent overload: it accepts all new L2TP connections >> when queue has 10 or less slots occupied (unprocessed events). >> >> It drops all connections then it has over 60 slots occupied. > s/all/new incoming/ > >> In between, it drops new message with probability equal to (q-10)*2 percents > s/message/L2TP connection/ > >> where q is number of occupied queue slots. These constants are hardcoded in its src/ppp.h >> >> Each time it decided to ignore incoming L2TP requests it notes that in the log, >> as you have already seen. > Eugene Grosbein > > Hi Eugene, if I undestand corectly, in order to increase the connection rate I need to replace 60 with 600 and 10 with 100 like this: #define SETOVERLOAD(q) do { \ int t = (q); \ if (t > 600) { \ gOverload = 100; \ } else if (t > 100) { \ gOverload = (t - 100) * 2; \ } else { \ gOverload = 0; \ } \ } while (0) Is this enough, or I need to modify something else ? -- Best regards,