xborder icon indicating copy to clipboard operation
xborder copied to clipboard

High CPU usage

Open turutupa opened this issue 2 years ago • 6 comments

I really haven't identified the cause, but if I run picom by itself my PC will run fine. But the minute I run xborders with it, it starts running burning hot. I have shadows and rounded corners applied in my picom config.

I know this is not enough info to learn why its behaving like that, but perhaps you might have some pointers?

turutupa avatar Jan 19 '23 05:01 turutupa

Can you confirm it's xborders is causing this? In a process viewer can you report xborders' CPU and memory usage. Also let me know what your computer's specs are

deter0 avatar Jan 19 '23 14:01 deter0

This is my laptop: https://www.amazon.com/ASUS-Entertainment-5900HS-2560x1440-Fingerprint/dp/B097DDZ2MV Specs summary: CPU AMD Ryzen 9 5900HS 8-Core RAM 32GB RAM SSD 1TB SSD GPU Nvidia RTX 3080 Max-Q

As per usage, in htop doesn't seem to show high numbers, around 0.7~1.2 CPU% and 0.2 MEM%.

I do see a change in picom numbers, going from 0 CPU% and 0.3 MEM% to 2.6 ~ 3.3 CPU% and MEM% stays the same.

I know this is still little information... could it be GPU related?

turutupa avatar Jan 19 '23 14:01 turutupa

600 MB of memory usage seems high. Does the memory keep increasing is it stable, or in other words is it a memory leak. As for your specs, they seem really good and you shouldn't be experiencing any lag. You can also check your GPU usage by installing a terminal utility for Nvdia cards called 'nvtop.'

deter0 avatar Jan 19 '23 14:01 deter0

Switched to Integrated mode on laptop (disabled GPU completely) and numbers look the same for now, but I think it might not be getting as hot. I see picom get up to 6 CPU% tho, which seems high.

Edit: seems to stabilize around 4.5 CPU%

turutupa avatar Jan 19 '23 15:01 turutupa

After running xborders for a while, in sensors I see high temps 74C ~ 79C and high fan RPMs, 3200 CPU RPM and 3400 GPU RPM (meaning GPU was not disabled properly after all) and after stopping xborders I get temps down to 61C and 2400 CPU RPM and 2500 GPU RPM

turutupa avatar Jan 19 '23 16:01 turutupa

This is weird, it could be a bug in a library we're using. Will investigate further.

deter0 avatar Oct 11 '23 18:10 deter0