ipfs / kubo

An IPFS implementation in Go
https://docs.ipfs.tech/how-to/command-line-quick-start/
Other
16.18k stars 3.01k forks source link

Windows 10: ipfs.exe causing CPU spikes and system go to crawl #7854

Open ruifortes opened 3 years ago

ruifortes commented 3 years ago

Hi!

I'm having trouble with cpu spikes that seam to come from IPFS since it only happens if it's running and stops by closing it. The most debilitating spike is from "system interrupts" process (pc goes to a crawl) but I've notice that sometimes ipfs.exe is also using a lot of resources even if I have no interaction with IPFS and (I think) I don't have any publically accessible content.

Please follow details of what I tried already here https://github.com/ipfs-shipyard/ipfs-desktop/issues/1719:

ipfs.exe just started to consume lots of resources (disk and cpu) without me having any interaction with it. Slows system down but not to has dramatically as "system interrupts"

[..] and now it stopped... there was some activity "bucker refresh" activity in "ipfs stats dht" but I don't think I have any publically accessable resources [..]

Running IPFS desktop without Kaspersky took more time but eventually also got the "system interrupts" problem

PS: I'm an "amateur" developer so... maybe I can deal with some procedures you throw on me to help debug this thing

using: go-ipfs version: 0.7.0 Repo version: 10 System version: amd64/windows Golang version: go1.14.4

through: ipfs-desktop: 0.13.2 on Windows 10

welcome[bot] commented 3 years ago

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

Finally, remember to use https://discuss.ipfs.io if you just need general support.

aschmahmann commented 3 years ago

@ruifortes what type of machine do you have (RAM, CPU) and what does your utilization look like? Antivirus's can cause problems so I'd exempt the the .ipfs folder (or at least the place where the data blocks are stored) from the AV.

ruifortes commented 3 years ago

Windows 10, 8G ram and no AV running (kaspersky has real exit option)

On Fri, Jan 8, 2021, 7:20 PM Adin Schmahmann notifications@github.com wrote:

@ruifortes https://github.com/ruifortes what type of machine do you have (RAM, CPU) and what does your utilization look like? Antivirus's can cause problems so I'd exempt the the .ipfs folder (or at least the place where the data blocks are stored) from the AV.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ipfs/go-ipfs/issues/7854#issuecomment-756947852, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFDVSSXIEMUPUFD3OTTYFTSY5LHJANCNFSM4V2RIN4A .

Jonadabe commented 3 years ago

Hi there everyone,

Thank you everyone for your time and effort. I had spikes to more than 60% of CPU utilization. The cursor and some windows seemed frozzen. Then after some minutes I have 7 to 16%. It was my first time using it, and I'll be honest. The first reaction almost was uninstall it completly. win10;Core i7;8Gb ram and no internet virus running.

ksdhans commented 3 years ago

I'm having this as well. My system: Windows 10 Pro, Core i7-6700HQ, 24 GB memory. I'm running go-ifps 0.8.0

I occasionally see "System Interrupts" listed in the Task Manager with its CPU usage at 100%, so that may be a clue as to the root cause. The entire system is jerky and slow, and the audio also stutters. Disabling the Firefox extension, antivirus software, etc., does nothing.

At the same time, accessing any file on IPFS is agonizingly slow, and frequently fails. Transfer rates tend to be in the 10s to 100s of Kb/s, with occasional spikes up to about ~10 Mb/s. Trying to access Disabling the firewall and setting up port-forwarding on the router has no effect.

I see nothing in the logs that indicates a problem.

Given that interrupts seem to be a problem, are there an excessive number of timer events that it's waiting on?

swdreams commented 3 years ago

Same problem here. I installed IPFS Desktop on windows 10 Pro. 16GB RAM. App version is 0.16.2

But it is always frozen when searching file. I tried to uninstall and to install several times. But no luck.

Please help on this. Is it useless?

image

brendan8c commented 2 years ago

It is normal??

2022-01-17 08_46_34-Window

godcong commented 2 years ago

It is normal??

2022-01-17 08_46_34-Window

It appears that yes, programs accessing the network for the first time will request access rights from the firewall. Is there anything wrong with this please?

brendan8c commented 2 years ago

It is normal?? 2022-01-17 08_46_34-Window

It appears that yes, programs accessing the network for the first time will request access rights from the firewall. Is there anything wrong with this please?

Fine then, I'll give her access.

KidesLeo commented 2 years ago

Having the same problem as OP. Windows 10 Pro, i7-8750H CPU, 16GB RAM, SSD. I'm running ipfs-desktop-0.20.2 Cursor randomly freezing and audio stutters.

Stebalien commented 2 years ago

@KidesLeo please run ipfs diag profile while this is happening and upload the resulting file.

KidesLeo commented 2 years ago

Sorry for the slight delay. Here's the profile zip. Delayed cause the lag wasn't there in the morning but came back tonight. Thanks @Stebalien!

Stebalien commented 2 years ago

Hm. Your node doesn't appear to be under heavy load and IPFS doesn't appear to be doing much at all.

  1. Is IPFS using a lot of CPU? Is something else using a lot of CPU?
  2. Are you using any third-party firewalls? Lots of UDP connections could be making it unhappy.
  3. Are you running a third-party Antivirus?
  4. Is your computer running out of memory.
  5. Is the ipfs-desktop "ui" (the "webui") open?
KidesLeo commented 2 years ago

It was running at about 30% CPU utilization but it says that the CPU is utilized 100% from every process, system interrupts being the second highest.

I do use a third-party firewall. Netlimiter, I'll test it with the firewall off.

No anti-virus and I have plenty memory.

The crawl seems to intensify significantly when I open the desktop gui and it's at its highest when I open the peers tab.

Stebalien commented 2 years ago

Kidus Getachew @.***> writes:

It was running at about 30% CPU utilization but it says that the CPU is utilized 100% from every process, system interrupts being the second highest.

Every process on your system? There's a change that your CPU may be throttled (low power, heat, bug, etc.).

I do use a third-party firewall. Netlimiter, I'll test it with the firewall off.

Thanks!

The crawl seems to intensify significantly when I open the desktop gui and it's at its highest when I open the peers tab.

The peers tab causes IPFS to make a bunch of network requests to lookup parts of the geoip database over IPFS, which causes you to connect to more peers, which causes you to lookup more of the geoip database, etc.

But it shouldn't make your system slow to a crawl.