Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Jan 2012 16:34:02 +0200
From:      Alexander Motin <mav@FreeBSD.org>
To:        Gleb Smirnoff <glebius@FreeBSD.org>
Cc:        freebsd-net@FreeBSD.org, Sami Halabi <sodynet1@gmail.com>
Subject:   Re: ng_mppc_decompress: too many (4094) packets dropped, disabling node
Message-ID:  <4F05B4DA.5030606@FreeBSD.org>
In-Reply-To: <20120105134902.GP34721@glebius.int.ru>
References:  <20111227044754.GK8035@FreeBSD.org> <CAEW%2BogY_iHUb=n=G45d5U_r5XfD39YDwgNkowu1QN%2BeWL5K5Fw@mail.gmail.com> <20111227083503.GP8035@glebius.int.ru> <CAEW%2BogYHtvPFqMAM17_fHWzvKAiSqEOyQ3dtQRwmD6DJSHsrEA@mail.gmail.com> <20120105095855.GI34721@glebius.int.ru> <CAEW%2BogYLToV4dtW=Y-yQvY1C_YdbqQfEnr87F8dt%2BF57FxZgkw@mail.gmail.com> <20120105110116.GK34721@glebius.int.ru> <CAEW%2BogYQXRbWCwx41rwUMSoh5hDM6eAZcG=-BjzqZj6rBzWGRg@mail.gmail.com> <20120105113427.GL34721@glebius.int.ru> <CAEW%2BogaXqHss41LCMCp5nXz3rBTpw4mEijy6h_XSgyCwcSBNUQ@mail.gmail.com> <20120105134902.GP34721@glebius.int.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F05B4DA.5030606>