[PATCH v1][libnl3] lib/nl: Increase default receive socket buffer size to 128k

Thomas Haller thaller at redhat.com
Fri Feb 12 09:08:07 PST 2016


On Tue, 2015-12-22 at 17:19 +0800, Leno Hou wrote:
> Hi all,
>   
>     Any good ideas to solve this problem permanently ?
> 
> Leno Hou
> E-mail :  lenohou at gmail.com
> 


Hi Leno,

In my previous email I said, NetworkManager might not need to increase
the receive buffer.


I thought about it again and instead went full berserk and increased it
to 8MB.

https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=f00c472ee8d121b1019263267651cbe5cf35dba8

systemd-networkd does that too, and I figure the memory will not be
allocated unless needed.



I still don't think this should be done by default by the library
(which is disputable of course).
I guess, it is best to increase the buffer size according to your own
circumstances.


Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20160212/dd85fb4d/attachment.sig>


More information about the libnl mailing list