bloop icon indicating copy to clipboard operation
bloop copied to clipboard

Extreme CPU usage and temperature when indexing repos

Open mwmdev opened this issue 2 years ago • 3 comments

Describe the bug I'm indexing repositories and I'm getting 100% CPU useage and > 100° temps that end up slowing down and crashing the PC

Expected behavior Indexing smoothly with no excessive CPU use.

To Reproduce How can we reproduce the bug? Helpful information could include:

  • Ubuntu 22.04.1 LTS / kernel 5.15.0-69-generic / AMD Ryzen 5 3600 (12) @ 3.700GHz / 32G RAM
  • bloop v0.3.4
  • index any github or local repository

mwmdev avatar Apr 21 '23 14:04 mwmdev

Thanks for letting us know this!

Bloop currently defaults to using 50% of the available CPU capacity, which in your case means 100% of your physical cores. This can indeed put a lot of pressure on a Ryzen box. However, I run a similar machine for performance testing bloop, and these temperatures look extreme (assuming Celsius), and may indicate issues with overclocking/insufficient cooling.

It's on our roadmap to leverage GPUs for indexing and make the resource use scale dynamically, but I don't have an ETA on this yet.

In the mean time, I'll make an issue to allow manually overriding how many cores bloop can use, if that looks like a good option?

rsdy avatar Apr 21 '23 15:04 rsdy

Sounds great !

I'll also see what I can do in terms of cooling.

mwmdev avatar Apr 21 '23 15:04 mwmdev

I have issue similar to this on win 11 the app crush out of memory without anything when I leave the app open and not use it and all the program in my windows need to be restarted due to this error

SamirMagdyI avatar Dec 26 '23 20:12 SamirMagdyI