mpd success stories, anyone?

Alex Povolotsky tarkhil at webmail.sub.ru
Thu Feb 22 16:44:29 UTC 2007


Alexander Motin wrote:
> Alex Povolotsky wrote:
>> Thanks, it seems to be more or less stable; however, throughput is 
>> quite little, lots of packets lost and "No buffer space available" on 
>> attempt to ping VPN addresses (only VPN is affected).
>
> Have you tried to disable PPTP windowing in mpd config? ENOBUFS is the 
> errno used by ng_pptp node's windowing code when outgoing window is 
> full. It is not related to any system tunables. Maximum window size in 
> current ng_pptp is 16 packets. It can be small for LFNs and can reduce 
> speed.
>
>> I guess I should tune some kernel tunable, but what specific one?
>
> I can recomend you to set
> net.graph.maxdgram=524288
> net.graph.recvspace=524288
> to make 'ngctl list' command work, but it is not critical.
>
Whoops!

After disabling windowing and setting net.graph's, mpd4 refuses to work

Feb 22 19:41:43 gw mpd: can't create socket node: No buffer space available
Feb 22 19:41:43 gw mpd: pptp0: killing connection with 172.23.115.234 1735
Feb 22 19:41:44 gw mpd: PPTP connection from 172.23.114.214 2955
Feb 22 19:41:44 gw mpd: pptp0: attached to connection with 
172.23.114.214 2955
Feb 22 19:41:44 gw mpd: [pptp7] Accepting PPTP connection
Feb 22 19:41:44 gw mpd: [pptp7] opening link "pptp7"...
Feb 22 19:41:44 gw mpd: [pptp7] link: OPEN event
Feb 22 19:41:44 gw mpd: [pptp7] LCP: Open event
Feb 22 19:41:44 gw mpd: [pptp7] LCP: state change Initial --> Starting
Feb 22 19:41:44 gw mpd: [pptp7] LCP: LayerStart
Feb 22 19:41:44 gw mpd: [pptp7] attaching to peer's outgoing call
Feb 22 19:41:44 gw mpd: [pptp7] can't attach pptpgre node: Bad file 
descriptor
Feb 22 19:41:44 gw mpd: pptp0-0: killing channel
Feb 22 19:41:44 gw mpd: [pptp7] PPTP call cancelled in state CONNECTING
Feb 22 19:41:44 gw mpd: pptp0: closing connection with 172.23.114.214 2955
Feb 22 19:41:44 gw mpd: [pptp7] can't shutdown "bypass.link0": Bad file 
descript
or
Feb 22 19:41:44 gw mpd: [pptp7] link: DOWN event
Feb 22 19:41:44 gw mpd: [pptp7] LCP: Close event
Feb 22 19:41:44 gw mpd: [pptp7] LCP: state change Starting --> Initial
Feb 22 19:41:44 gw mpd: [pptp7] LCP: LayerFinish


and no ng interfaces ever created

lowering both tunables to 128000 solved the problem, will look more.

Alex.




More information about the freebsd-net mailing list