Replies: 42 comments 2 replies
-
I ran back to v5. The CPU usage is fine again. |
Beta Was this translation helpful? Give feedback.
-
@lzutao Did you build compton with
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the fast reply.
Yes, I did.
I will. |
Beta Was this translation helpful? Give feedback.
-
Here is the perf-data.zip that I run with |
Beta Was this translation helpful? Give feedback.
-
@lzutao can you also attach the compton executable as well? |
Beta Was this translation helpful? Give feedback.
-
Here is it. GitHub doesn't support xz file so you might want to unzip first. |
Beta Was this translation helpful? Give feedback.
-
Hmm, I don't understand why paint_preprocess is taking that much time. Do you have a lot of windows open? |
Beta Was this translation helpful? Give feedback.
-
I only had 5 windows opened. |
Beta Was this translation helpful? Give feedback.
-
What does |
Beta Was this translation helpful? Give feedback.
-
xwininfo -root -children% xwininfo -root -children
xwininfo: Window id: 0x114 (the root window) (has no name)
Root window id: 0x114 (the root window) (has no name)
Parent window id: 0x0 (none)
95 children:
0x3400047 "Firefox": ("Popup" "Firefox") 1920x371+0+85 +0+85
0x34000df "Ubuntu Manpage: clang-format - manual page for clang-format 8": ("Popup" "Firefox") 362x33+1557+45 +1557+45
0x3400234 "Firefox": ("Popup" "Firefox") 320x24+1256+148 +1256+148
0x3400826 "Firefox": ("Popup" "Firefox") 386x1080+1204+0 +1204+0
0x3400822 "Firefox": ("Popup" "Firefox") 250x715+1585+76 +1585+76
0x340023e "Firefox": ("Popup" "Firefox") 248x104+473+415 +473+415
0x34000e3 "goto source code": ("Popup" "Firefox") 108x33+1186+234 +1186+234
0x340069e "Firefox": ("Popup" "Firefox") 227x50+0+88 +0+88
0x4a06d60 "Sublime Text": ("sublime_text" "Sublime_text") 209x423+579+130 +579+130
0x4a06b85 "Sublime Text": ("sublime_text" "Sublime_text") 209x447+439+609 +439+609
0x320285d "Xfce Terminal": ("xfce4-terminal" "Xfce4-terminal") 153x296+69+721 +69+721
0x3a00001 "/usr/lib/firefox/firefox": ("/usr/lib/firefox/firefox" "/usr/lib/firefox/firefox") 10x10+10+10 +10+10
0x3400364 "Firefox": ("Popup" "Firefox") 168x304+129+33 +129+33
0x4a0027b "Sublime Text": () 10x10+-100+-100 +-100+-100
0x4a00009 (has no name): () 1x1+-1+-1 +-1+-1
0x4a00001 "Sublime Text": ("sublime_text" "Sublime_text") 10x10+10+10 +10+10
0x2200022 "Whisker Menu": ("wrapper-2.0" "Wrapper-2.0") 400x500+0+550 +0+550
0x4800001 "/usr/lib/firefox/firefox": ("/usr/lib/firefox/firefox" "/usr/lib/firefox/firefox") 10x10+10+10 +10+10
0x4600001 "/usr/lib/firefox/firefox": ("/usr/lib/firefox/firefox" "/usr/lib/firefox/firefox") 10x10+10+10 +10+10
0x4400001 "/usr/lib/firefox/firefox": ("/usr/lib/firefox/firefox" "/usr/lib/firefox/firefox") 10x10+10+10 +10+10
0x4200001 "/usr/lib/firefox/firefox": ("/usr/lib/firefox/firefox" "/usr/lib/firefox/firefox") 10x10+10+10 +10+10
0x3400372 "Firefox": ("Popup" "Firefox") 386x128+1149+952 +1149+952
0x3400368 "Firefox": ("Popup" "Firefox") 386x979+1534+101 +1534+101
0x3800001 "/usr/lib/firefox/firefox": ("/usr/lib/firefox/firefox" "/usr/lib/firefox/firefox") 10x10+10+10 +10+10
0x3c00001 "/usr/lib/firefox/firefox": ("/usr/lib/firefox/firefox" "/usr/lib/firefox/firefox") 10x10+10+10 +10+10
0x3400316 "Firefox": ("Popup" "Firefox") 278x634+1642+77 +1642+77
0x3400308 "Firefox": ("Popup" "Firefox") 386x778+243+104 +243+104
0x340030c "Firefox": ("Popup" "Firefox") 386x178+628+230 +628+230
0x340028f "Firefox": ("Popup" "Firefox") 200x200+0+0 +0+0
0x140009d "xfdesktop": () 10x10+-100+-100 +-100+-100
0x34001bc "Firefox": ("firefox" "Firefox") 1x1+-99+-99 +-99+-99
0xe0015e "Thunar": ("Thunar" "Thunar") 1x1+-100+-100 +-100+-100
0xe00149 "Thunar": ("Thunar" "Thunar") 1x1+-100+-100 +-100+-100
0xe00063 (has no name): () 1x1+-1+-1 +-1+-1
0xe00029 "Thunar": () 10x10+-100+-100 +-100+-100
0x3400146 "Firefox": ("Popup" "Firefox") 200x200+0+0 +0+0
0x3600001 "/usr/lib/firefox/firefox": ("/usr/lib/firefox/firefox" "/usr/lib/firefox/firefox") 10x10+10+10 +10+10
0x340005b "Firefox": ("Popup" "Firefox") 200x200+0+0 +0+0
0x10001c1 "xfce4-panel": ("xfce4-panel" "Xfce4-panel") 1x1+-100+-100 +-100+-100
0x10001be "xfce4-panel": ("xfce4-panel" "Xfce4-panel") 1x1+-100+-100 +-100+-100
0x1000185 "xfce4-panel": ("xfce4-panel" "Xfce4-panel") 1x1+-100+-100 +-100+-100
0x3400017 (has no name): ("Toplevel" "Firefox") 100x100+0+0 +0+0
0x3400014 "Firefox": () 10x10+-100+-100 +-100+-100
0x2e00001 "/usr/lib/firefox/firefox": ("/usr/lib/firefox/firefox" "/usr/lib/firefox/firefox") 10x10+10+10 +10+10
0x3400011 "Firefox": () 10x10+-100+-100 +-100+-100
0x3400001 "Firefox": ("firefox" "Firefox") 10x10+10+10 +10+10
0x3200241 "Xfce Terminal": () 10x10+-100+-100 +-100+-100
0x260001a "wrapper-2.0": ("wrapper-2.0" "Wrapper-2.0") 258x472+1575+584 +1575+584
0x3200009 (has no name): () 1x1+-1+-1 +-1+-1
0x3200001 "Xfce Terminal": ("xfce4-terminal" "Xfce4-terminal") 10x10+10+10 +10+10
0x1400026 (has no name): () 1x1+-1+-1 +-1+-1
0x2800008 (has no name): () 1x1+-1+-1 +-1+-1
0x1600004 (has no name): () 10x10+0+0 +0+0
0x2c00008 (has no name): () 1x1+-1+-1 +-1+-1
0x220000d (has no name): () 1x1+-1+-1 +-1+-1
0x2600008 (has no name): () 1x1+-1+-1 +-1+-1
0x240004e (has no name): () 1x1+-1+-1 +-1+-1
0x1000038 (has no name): () 1x1+-1+-1 +-1+-1
0x2c00001 "wrapper-2.0": ("wrapper-2.0" "Wrapper-2.0") 10x10+10+10 +10+10
0x2800001 "wrapper-2.0": ("wrapper-2.0" "Wrapper-2.0") 10x10+10+10 +10+10
0x2600001 "wrapper-2.0": ("wrapper-2.0" "Wrapper-2.0") 10x10+10+10 +10+10
0x2400026 "wrapper-1.0": () 10x10+-100+-100 +-100+-100
0x2400001 "wrapper-1.0": ("wrapper-1.0" "Wrapper-1.0") 10x10+10+10 +10+10
0x1800003 (has no name): () 1x1+-1+-1 +-1+-1
0x2200001 "wrapper-2.0": ("wrapper-2.0" "Wrapper-2.0") 10x10+10+10 +10+10
0xc002c2 (has no name): () 1x1+-1+-1 +-1+-1
0xc002be (has no name): () 1920x1049+0+0 +0+0
0x1000031 (has no name): () 10x10+0+0 +0+0
0x2000002 "light-locker": () 10x10+-100+-100 +-100+-100
0x1200002 "xcompmgr": ("compton" "xcompmgr") 1x1+0+0 +0+0
0x1800001 "xfce4-notifyd": ("xfce4-notifyd" "Xfce4-notifyd") 10x10+10+10 +10+10
0x2000001 "light-locker": ("light-locker" "Light-locker") 10x10+10+10 +10+10
0x1e00001 "polkit-gnome-authentication-agent-1": ("polkit-gnome-authentication-agent-1" "Polkit-gnome-authentication-agent-1") 10x10+10+10 +10+10
0x1c00001 "xfce4-power-manager": ("xfce4-power-manager" "Xfce4-power-manager") 10x10+10+10 +10+10
0xc000ae "Xfwm4": ("xfwm4" "Xfwm4") 5x5+-1000+-1000 +-1000+-1000
0xc000ad (has no name): () 10x10+-100+-100 +-100+-100
0x1600003 (has no name): () 1x1+-1+-1 +-1+-1
0x1600001 "xfsettingsd": ("xfsettingsd" "Xfsettingsd") 10x10+10+10 +10+10
0x1400001 "xfdesktop": ("xfdesktop" "Xfdesktop") 10x10+10+10 +10+10
0x1000001 "xfce4-panel": ("xfce4-panel" "Xfce4-panel") 10x10+10+10 +10+10
0xe00001 "Thunar": ("Thunar" "Thunar") 10x10+10+10 +10+10
0xc00001 "xfwm4": ("xfwm4" "Xfwm4") 10x10+10+10 +10+10
0xa00003 (has no name): () 1x1+1+1 +1+1
0xa00001 "xfce4-session": ("xfce4-session" "Xfce4-session") 10x10+10+10 +10+10
0x80000c (has no name): () 1x1+-1+-1 +-1+-1
0x800001 "NetworkManager Applet": ("nm-applet" "Nm-applet") 10x10+10+10 +10+10
0xc00188 (has no name): () 1x1080+-1+0 +-1+0
0xc00189 (has no name): () 1x1080+1920+0 +1920+0
0xc0018a (has no name): () 1920x1+0+-1 +0+-1
0xc0018b (has no name): () 1920x1+0+1080 +0+1080
0xc00293 (has no name): () 1920x31+0+1049 +0+1049
0xc00319 (has no name): () 1920x1049+0+0 +0+0
0xc00555 (has no name): () 1920x1049+0+0 +0+0
0xc02d37 (has no name): () 1920x1049+0+0 +0+0
0xc002c7 (has no name): () 1920x1080+0+0 +0+0 |
Beta Was this translation helpful? Give feedback.
-
Hi, is there an update to this? I have the same issue with the latest version on master and it's fine on v5.1 |
Beta Was this translation helpful? Give feedback.
-
@Hespian Can you do a |
Beta Was this translation helpful? Give feedback.
-
Here is my perf file: perf.zip Edit: Actually, here is one where cpu usage goes up by just scrolling on a website in chrome. perf2.zip |
Beta Was this translation helpful? Give feedback.
-
@Hespian does v5.1's cpu usage not go up if you scroll in chrome? |
Beta Was this translation helpful? Give feedback.
-
Actually it does. But not quite as high. So it seems like I can't reproduce the issues I had earlier. |
Beta Was this translation helpful? Give feedback.
-
@Mark42XLII are you using DRI2 by any chance? can you try enabling DRI3 and see if that helps? |
Beta Was this translation helpful? Give feedback.
-
one way to find out is by running
in the output |
Beta Was this translation helpful? Give feedback.
-
@yshui It works! Enabled DRI3, and it totally 235% fixed it! Even with dual kawase blur the performance is amazing. Thank you so much! Edit: something I've noticed is that the CPU usage on the experimental GLX backend is about double the usual. By the way, this happened even while I was still using DRI2, but I forgot to mention it. If I disable blur effects completely, I see ~11% usage when moving windows around with GLX, and 23% when using GLX with About the same happens if I enable dual kawase blur and use ibhagwan's fork (since it allows me to use that blurring effect on all backends). I know it's something entirely separate from this repo, but the issue got carried over there as well, at least with my hardware. I'll try uploading some perf data as soon as I can. Still, I'm already happy enough that there's a solution for the idle CPU usage problem. |
Beta Was this translation helpful? Give feedback.
-
I can confirm that enabling DRI3 fixes CPU issue! |
Beta Was this translation helpful? Give feedback.
-
I have the same issue using nouveau driver for NVIDIA card on a desktop computer. Here is the rough CPU usage from htop:
How do I enable DRI3? Is it even possible? If possible I'd prefer to stick to the open-source driver but I'll give the proprietary one a shot to see if the issue goes away. In any cases, if DRI3 is a requirement, would be great to have picom issue a warning when on DRI2. |
Beta Was this translation helpful? Give feedback.
-
I have a 970 GTX and i'm experiencing the same issue (with nvidia proprietary driver, NVIDIA-SMI 455.45.01 / Driver Version: 455.45.01 / CUDA Version: 11.1). And when I try to run glxgears I get
I started noticing this problem quite recently with arch linux so I guess it's either a picom update or nvidia update that cause the issue (If you need more information to help debug do not hesistate). In the meantime I disabled hardware acceleration on chrome and stopped picom and the CPU stay around 5% while watching a video (25% if picom is started with glx render). |
Beta Was this translation helpful? Give feedback.
-
@Grafikart you don't have a graphics driver installed and is using software rendering, no doubt your CPU usage is high. |
Beta Was this translation helpful? Give feedback.
-
@yshui I have nvidia installed and configured on xorg
|
Beta Was this translation helpful? Give feedback.
-
@Grafikart |
Beta Was this translation helpful? Give feedback.
-
@yshui sorry you were totally right (nvidia inserted his configuration twice and xorg nvidia.conf was errored and ignored). So my problem was not related to this issue. Sorry :( |
Beta Was this translation helpful? Give feedback.
-
I've tried to force DRI3 with nouveau driver and had some screen tearing. I've switched to nvidia driver and everything is back to normal. I have glx backend with low CPU usage (1%). I guess I'll stick to the proprietary drivers. |
Beta Was this translation helpful? Give feedback.
-
I converted this into a discussion, seems more appropriate. @Diaoul yes, DRI3 isn't supported very well by nouveau. it's unfortunate but you'd have to use the proprietary driver |
Beta Was this translation helpful? Give feedback.
-
It's true that Kernel loads are decreasing. But it needs to be a little more optimized. |
Beta Was this translation helpful? Give feedback.
-
i'm using nvidia proprietary drive and I notice cpu usage up to 10%. |
Beta Was this translation helpful? Give feedback.
-
Hello there! |
Beta Was this translation helpful? Give feedback.
-
Platform
GPU, drivers, and screen setup
xf86-video-*
version: Nonemesa-utils
version: 8.4.0-1Environment
xfce4 v4.12.4
Compton version
compton --version
: v7, commit d45ed14Compton configuration:
compton.conf
Steps of reproduction
htop
Expected behavior
I think CPU usage should be lower than that. In the older version (v5 IIRC), the CPU in most times is zero.
Current Behavior
On htop window, I could see that CPU usage is at about 5% +- 2%.
Stack trace
Other details
Beta Was this translation helpful? Give feedback.
All reactions