From owner-freebsd-net@FreeBSD.ORG Thu Jan 5 15:01:56 2012 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 64D0D106566B for ; Thu, 5 Jan 2012 15:01:56 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id E2EBF8FC13 for ; Thu, 5 Jan 2012 15:01:55 +0000 (UTC) Received: by eekc50 with SMTP id c50so492920eek.13 for ; Thu, 05 Jan 2012 07:01:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Fhybjex9VjbAXYnahIjWVTIwDSuPF4AetGgLQ4GtlVY=; b=fy3hus+2t2Xglm9Qu/n85LGZ1L3oWxdrihPO/oj7LplyBff9+kTqCDJYEkhHF1mEwJ EIjDxlgo434Kwelwk56rophr2uzef+eCGyhoeT87JrpGhnZILdKPbLEgQHckc4xAa090 aQX9hsMcd7+k1R61bgg9nthKIBRzuoA79QwhU= Received: by 10.213.13.10 with SMTP id z10mr543002ebz.63.1325774052125; Thu, 05 Jan 2012 06:34:12 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id b49sm203138214eec.9.2012.01.05.06.34.09 (version=SSLv3 cipher=OTHER); Thu, 05 Jan 2012 06:34:10 -0800 (PST) Sender: Alexander Motin Message-ID: <4F05B4DA.5030606@FreeBSD.org> Date: Thu, 05 Jan 2012 16:34:02 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111112 Thunderbird/8.0 MIME-Version: 1.0 To: Gleb Smirnoff References: <20111227044754.GK8035@FreeBSD.org> <20111227083503.GP8035@glebius.int.ru> <20120105095855.GI34721@glebius.int.ru> <20120105110116.GK34721@glebius.int.ru> <20120105113427.GL34721@glebius.int.ru> <20120105134902.GP34721@glebius.int.ru> In-Reply-To: <20120105134902.GP34721@glebius.int.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@FreeBSD.org, Sami Halabi Subject: Re: ng_mppc_decompress: too many (4094) packets dropped, disabling node 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: Thu, 05 Jan 2012 15:01:56 -0000 On 05.01.2012 15:49, Gleb Smirnoff wrote: > mpd has many open sockets, and each socket allocates that much recvspace > and sendspace. Since there are a lot of them, it hits per-user resource > limits, I suppose. > > We need to: > > 1) Change mpd to use one control socket with many hooks. It is partially done. mpd uses common sockets to connect ppp, ccp and ecp nodes of all links. But some link types still could be improved. > This also requires improving ng_socket, to have a fast hook lookup > method. Agree. > 2) Implement SO_SNDBUF/SO_RCVBUF for AF_NETGRAPH socket, and utilize > it in ngctl, so there would be no need to bump global tunables. It would be nice. The biggest consumer of socket buffers I remember is `ngctl list`. May be it could be reimplemented somehow to transfer information in smaller chunks. By the way about features: there were request recently to allow PPPoE over ng_eiface interface. I think it should not be very difficult to add orphan hook and several control requests to it to behave alike to ng_ether. -- Alexander Motin