From owner-freebsd-net@FreeBSD.ORG Sun Jul 3 19:54:36 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 B0B9E106564A for ; Sun, 3 Jul 2011 19:54:36 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from eg.sd.rdtc.ru (unknown [IPv6:2a03:3100:c:13::5]) by mx1.freebsd.org (Postfix) with ESMTP id 2461A8FC12 for ; Sun, 3 Jul 2011 19:54:35 +0000 (UTC) Received: from eg.sd.rdtc.ru (localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.14.4/8.14.4) with ESMTP id p63JsWXp004586; Mon, 4 Jul 2011 02:54:32 +0700 (NOVST) (envelope-from egrosbein@rdtc.ru) Message-ID: <4E10C8F3.2050006@rdtc.ru> Date: Mon, 04 Jul 2011 02:54:27 +0700 From: Eugene Grosbein User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; ru-RU; rv:1.9.2.13) Gecko/20110112 Thunderbird/3.1.7 MIME-Version: 1.0 To: Adrian Minta References: In-Reply-To: Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit 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: Sun, 03 Jul 2011 19:54:36 -0000 04.07.2011 02:15, Adrian Minta пишет: > After looking in the mpd log file I found out that this message appear > when calls are dropped: > Jul 3 21:21:21 lns mpd: Daemon overloaded, ignoring request. > Jul 3 21:21:22 lns mpd: Daemon overloaded, ignoring request. > Jul 3 21:21:23 lns mpd: Daemon overloaded, ignoring request. > Jul 3 21:21:23 lns mpd: Daemon overloaded, ignoring request. > Jul 3 21:21:24 lns mpd: Daemon overloaded, ignoring request. > Jul 3 21:21:24 lns mpd: Daemon overloaded, ignoring request. > > Does anybody knows where this limit is set in mpd5 ? > 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. In between, it drops new message with probability equal to (q-10)*2 percents 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