Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipfs daemon has high cpu usage #22808

Closed
bridiver opened this issue May 12, 2022 · 5 comments
Closed

ipfs daemon has high cpu usage #22808

bridiver opened this issue May 12, 2022 · 5 comments
Assignees
Labels
closed/wontfix feature/web3/ipfs needs-investigation A bug not 100% confirmed/fixed OS/Desktop perf priority/P4 Planned work. We expect to get to it "soon".

Comments

@bridiver
Copy link
Contributor

bridiver commented May 12, 2022

Description

The ipfs daemon is using 3-10% cpu continuously (m1 mac laptop) even when not in active use to load content.

Steps to Reproduce

  1. Visit an ipfs/ipns url
  2. Choose local node
  3. Check process stats

Actual result:

High cpu usage

Expected result:

Should have minimal cpu usage when not in active use and ideally shutdown after some period of non-use. @bbondy suggested it could have a pref to always run in the background (default to false)

Reproduces how often:

Easily reproduced

Brave version (brave://version info)

1.40.16

Version/Channel Information:

All channels

  • Can you reproduce this issue with the current release? yes
  • Can you reproduce this issue with the beta channel? yes
  • Can you reproduce this issue with the nightly channel? yes
@iefremov iefremov added the perf label May 12, 2022
@jamesmudgett jamesmudgett added priority/P4 Planned work. We expect to get to it "soon". needs-investigation A bug not 100% confirmed/fixed labels Jun 17, 2022
@cypt4
Copy link

cypt4 commented Jul 28, 2022

@bridiver , on which OS do you see this issue?

@bridiver
Copy link
Contributor Author

@bridiver , on which OS do you see this issue?

macos m1

@lidel
Copy link

lidel commented Nov 28, 2022

By default, Kubo daemon will try to use uPnP and hole punching to become publiclly diallable, and if that is successful it will act as DHT server, accepting DHT PUTs from other peers – this introduces overhead of both CPU and additional bandwidth.

This may get better with each small improvement listed below:

@Pandapip1
Copy link

Is it possible to add an option to disable the daemon while it's not actively being used?

@vadimstruts
Copy link
Collaborator

The IPFS local node and scheme has been deprecated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed/wontfix feature/web3/ipfs needs-investigation A bug not 100% confirmed/fixed OS/Desktop perf priority/P4 Planned work. We expect to get to it "soon".
Projects
Archived in project
Development

No branches or pull requests

8 participants