Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 838238 - net-p2p/go-ipfs Resource Usage
Summary: net-p2p/go-ipfs Resource Usage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: David Roman
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-04-13 18:53 UTC by Horea Christian
Modified: 2022-06-30 20:25 UTC (History)
3 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 Horea Christian 2022-04-13 18:53:27 UTC
With the default settings the ipfs service used about 20% of CPU, stalled my network, and eventually crashed my router. This was reproducible, and none of my hardware is particularly antiquated, just your average desktop set-up.

Reporting the issue upstream, apparently this is common enough to warrant them shipping a special config: https://discuss.ipfs.io/t/high-bandwidth-and-cpu-usage-from-ipfs/13982

I am wondering whether this (i.e. `ipfs config profile apply lowpower`) or at least the fact that this software may crash your router shouldn't be mentioned in elog/einfo/ewarn.

Reproducible: Always

Steps to Reproduce:
1. emerge go-ipfs
2. cd /var/lib/ipfs
3. su -s /bin/sh -c "ipfs init -e" ipfs
4. /etc/init.d/ipfs start
5. wait and be amazed
Actual Results:  
router crashes

Expected Results:  
share and download files
Comment 1 David Roman 2022-05-03 17:41:31 UTC
I think a good approach would be to add a USE flag like "lowpower" and a message describing the potential issue. I don't think it should be applied by default though (for the reasons stated in the link).
Comment 2 David Roman 2022-06-13 20:53:21 UTC
It turns out that having a USE flag is harder than I thought. Sometimes migration should be done before settings could be apply so it may or may nor work depending on this. For this reason I fallback to print a warning with a suggested workaround
Comment 3 Larry the Git Cow gentoo-dev 2022-06-30 20:25:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de362e13b3af2976bce18b2031cf5b0d5c3c479d

commit de362e13b3af2976bce18b2031cf5b0d5c3c479d
Author:     David Roman <davidroman96@gmail.com>
AuthorDate: 2022-06-13 20:10:21 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-30 20:23:45 +0000

    net-p2p/go-ipfs: add 0.13.0
    
    Closes: https://bugs.gentoo.org/838238
    Signed-off-by: David Roman <davidroman96@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/25884
    Signed-off-by: Sam James <sam@gentoo.org>

 net-p2p/go-ipfs/Manifest              |  1 +
 net-p2p/go-ipfs/go-ipfs-0.13.0.ebuild | 69 +++++++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+)