BloopAI / bloop

bloop is a fast code search engine written in Rust.
https://bloop.ai
Apache License 2.0
9.42k stars 573 forks source link

Extreme CPU usage and temperature when indexing repos #405

Open mwmdev opened 1 year ago

mwmdev commented 1 year ago

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:

rsdy commented 1 year ago

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?

mwmdev commented 1 year ago

Sounds great !

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

SamirMagdyI commented 10 months ago

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