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

Constant High CPU Usage on Windows #1872

Closed
mohammedpatla opened this issue Jul 14, 2021 · 11 comments · Fixed by #1876
Closed

Constant High CPU Usage on Windows #1872

mohammedpatla opened this issue Jul 14, 2021 · 11 comments · Fixed by #1876
Labels
need/triage Needs initial labeling and prioritization

Comments

@mohammedpatla
Copy link

  • OS: Windows
  • Version of IPFS Desktop 0.16.1
  • System Specs: Ryzen 5900x (12core,24 thread processor), 32 GB RAM, Windows 10 latest build.

Describe the bug
Consistent high usage of CPU. It can go up to 80% at times, which is a lot of usages. I have only about 50GB of data pinned but not a lot of uploads or download going on either to commission this much usage.

The CPU usage drops some times in a cycle but picks up again and stays high for longer times than needed. Avg usage is about 35% of my CPU power that's 4 Cores running at full power for some reason.

To Reproduce
Steps to reproduce the behavior:

  1. Install the latest version of the software.
  2. Have some big pined data objects.
  3. Leave it running in the background and monitor it through the task manager.

Expected behavior
At most, it should spike the CPU during a lot of usages, but keeping high CPU usage is very weird, as the Network and disk usage are also not followed.

Screenshots
image

Additional context
Add any other context about the problem here.

error.log
combined.log

@mohammedpatla mohammedpatla added the need/triage Needs initial labeling and prioritization label Jul 14, 2021
@SerafDosSantos
Copy link

I second this problem. I paused my instances until the problem is solved. My oldest CPU goes nuts once in a while with version 0.16.1, my newest one also goes high once in a while, but the fans doesn't scream for cooling with the latter.

@unbeatable-101
Copy link

Does this seem like your issue? ipfs/kubo#8256

@mohammedpatla
Copy link
Author

@unbeatable-101 Looks like it, although I can't confirm if the solution quic-go/quic-go#3231 fixes it.

@unbeatable-101
Copy link

unbeatable-101 commented Jul 19, 2021

Try building go-ipfs from source, then tell ipfs desktop to use a custom binary. I'd provide one that I built, but you aren't on mac or linux.

@unbeatable-101
Copy link

ipfs.zip

I tried cross-compiling if you can't build yourself

@mohammedpatla
Copy link
Author

@unbeatable-101 Nope that file does not work and I have not had much success in compiling from source.

@unbeatable-101
Copy link

What issues are you having?

@mohammedpatla
Copy link
Author

@unbeatable-101 On further testing your IPF binary does work, I was just not running the daemon lol.

Just after launching it seems to work well, with no excess CPU usage or memory. Stays about 130 MB RAM usage and around 1% CPU usage with my build. Will let this run overnight and see how its in the morning.

@mohammedpatla
Copy link
Author

I confirmed I don't use more than 300 MB in RAM. And CPU usage is between 0.1%-1.5%

image

Looks like this new binary has to be merged in, or wait until 0.91

@SerafDosSantos
Copy link

ipfs/go-ipfs#8256 fixed it for me, thanks @unbeatable-101 !

@unbeatable-101
Copy link

The fix will be officially released in 0.9.1

@ipfs ipfs deleted a comment from welcome bot Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/triage Needs initial labeling and prioritization
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants