Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 849857 - net-p2p/kubo-0.12.2: failed to sufficiently increase receive buffer size
Summary: net-p2p/kubo-0.12.2: failed to sufficiently increase receive buffer size
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: David Roman
URL: https://wiki.gentoo.org/wiki/Ipfs#rec...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-05 16:26 UTC by Tim Mohlmann
Modified: 2022-08-03 22:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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