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.
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