Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 849857

Summary: net-p2p/kubo-0.12.2: failed to sufficiently increase receive buffer size
Product: Gentoo Linux Reporter: Tim Mohlmann <muhlemmer>
Component: Current packagesAssignee: David Roman <davidroman96>
Status: RESOLVED OBSOLETE    
Severity: minor CC: hurikhan77+bgo, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://wiki.gentoo.org/wiki/Ipfs#receive_buffer_size
Whiteboard:
Package list:
Runtime testing required: ---

Description Tim Mohlmann 2022-06-05 16:26:08 UTC
When starting the IPFS service daemon, it fails to sufficiently increase receive buffer size.


Reproducible: Always

Steps to Reproduce:
1. emerge net-p2p/go-ipfs
2. su -s /bin/sh -c "ipfs init -e" ipfs
3. systemctl enable --now ipfs.service
4. journalctl -u ipfs.service
Actual Results:  
Error in logs:

failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.

Expected Results:  
ipfs-go daemon to be able to increase the receive buffer size and not print above log message.

https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size

Workaround:

sysctl -w 'net.core.rmem_max=2500000'
echo "net.core.rmem_max=2500000" > /etc/sysctl.d/40-ipfs.conf

This can probably be fixed for all users by packing the `/etc/sysctl.d/40-ipfs.conf` file with `net.core.rmem_max=2500000` contents. If that is not desirable, instructions can be printed during emerge.
Comment 1 David Roman 2022-06-14 19:38:14 UTC
Just a note. In go-ipfs-0.13.0 setting Swarm.ResourceMgr.Enabled to true avoids this problem. This setting will be enabled by default in the future