You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our company we have a few people using ubuntu on HP laptops and when using vscode-clangd on a large codebase the application often slows down massively, oftentimes so much that it completely freezes up. During this time the CPU fan is spinning like crazy, pointing to a potential overheating issue (that might throttle the CPU). Essentially the feeling is that there are a lot of CPU cycles involved in getting the extension to work properly.
However, our other team members using MAC don't seem to have that problem (at least I never heard of them). So it seems to be kinda linux (or ubuntu) specific. I'm opening this more as collection topic to track this issue since I couldn't find it being tracked elsewhere.
System information
Clangd version (from the log, or clangd --version): 18.1.3
clangd extension version: 0.1.33
Operating system: Ubuntu 22.04
The text was updated successfully, but these errors were encountered:
How big is the codebase (order of magnitude number of entries in compile_commands.json), and how much memory do the affected systems have?
Clangd's background index can use a lot of memory, so ruling out OOM / thrashing issues is a good first step.
If it really is a CPU rather than memory issue, a good diagnostic step would be to attach a debugger to the clangd process at the time of a freeze and get an all-threads backtrace, and post it for further diagnosis.
In our company we have a few people using ubuntu on HP laptops and when using vscode-clangd on a large codebase the application often slows down massively, oftentimes so much that it completely freezes up. During this time the CPU fan is spinning like crazy, pointing to a potential overheating issue (that might throttle the CPU). Essentially the feeling is that there are a lot of CPU cycles involved in getting the extension to work properly.
However, our other team members using MAC don't seem to have that problem (at least I never heard of them). So it seems to be kinda linux (or ubuntu) specific. I'm opening this more as collection topic to track this issue since I couldn't find it being tracked elsewhere.
System information
Clangd version (from the log, or
clangd --version
): 18.1.3clangd extension version: 0.1.33
Operating system: Ubuntu 22.04
The text was updated successfully, but these errors were encountered: