I just had to kill my xfwm4, because my xfce4 was unresponsive even though memory and cpu time were still available.
Also xfwm4-4.14 seems to use a lot of cpu time, I had this system up for a bit over a day and xfwm used more cpu time than any other program, with over 6h that's almost a fourth of the systems uptime, this seems odd..
01:49:04 up 1 day, 48 min, 2 users, load average: 0,05, 0,38, 0,81
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 3690 4.2 1.5 2030548 127972 tty7 Ssl+ Sep15 62:20 /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
neuron 3826 26.0 1.5 1578884 123848 ? Sl Sep15 385:41 xfwm4 --display :0.0 --sm-client-id 22a5ae37f-deb5-491a-8633-7252e4517781
Version: 4.14.0
Designs
Child items
0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items
0
Link issues together to show that they're related.
Learn more.
I have resolved this issue on my machine with the help of diogenes_ & BeNZ on #xfce.
First we ran the following commands to ensure that I was using the nvidia module was loaded and to see if the llvmpipe (CPU/Software Rendering) was being used:
Before making the change persistent, I navigated into nvidia-settings and checked the value of "Force Composition Pipeline" & "Force Full Composition Pipeline" under X Server Display Configuration. Both of these settings were disabled.
I then enabled "Force Full Composition Pipeline" and rebooted.
My usage now sitting around 1% without having to make any other changes to Xfce.
Also, I did try to disable window composition with "xfconf-query --channel xfwm4 -p /general/use_compositing -s false" and in the xfwm4-tweak-settings UI - but the usage remained high.
The high CPU usage of xfwm4 brought me here. I use:
me[~]> xfwm4 -V
This is xfwm4 version 4.14.0 (revision ed87ef66) for Xfce 4.14
Released under the terms of the GNU General Public License.
Compiled against GTK+-3.22.30, using GTK+-3.22.30.
The high CPU usage of xfwm4 brought me here. I use:
me[~]> xfwm4 -V
This is xfwm4 version 4.14.0 (revision ed87ef66) for Xfce 4.14
Released under the terms of the GNU General Public License.
Compiled against GTK+-3.22.30, using GTK+-3.22.30.
Build configuration and supported features:
Startup notification support: Yes
XSync support: Yes
Render support: Yes
Xrandr support: Yes
Xpresent support: Yes
Embedded compositor: Yes
Epoxy support: Yes
KDE systray proxy (deprecated): No
I'm running it on a Lenovo Thinkpad X1C6. Graphics driver is: Intel
Corporation UHD Graphics 620. Kernel is 5.0.0-29-generic.
I have applied:
xfconf-query -c xfwm4 -p /general/vblank_mode -t string -s off
I'm experiencing the same issue. xfwm4 CPU usage is normally <= 2% when dragging windows, alt-tabbing etc. But, then it starts to climb up when changing focus or moving windows to 15-20%. Window movements are noticable "choppy", and changing focus is slow.
It continues to degrade until I pkill xfwm, and it restarts and works fine for a day or so and the problem repeats.
I am on a ThinkPad T410, Core i5 M, with Intel graphics.
I have tried all 3 vblank modes mentioned (off, xpresent, glx). None seem to help.
I've tried changing my theme mentioned in other posts. Doesn't help.
This happened when I upgraded from 4.12.5-1 -> 4.14.0-1.
This is xfwm4 version 4.14.0 (revision ed87ef66) for Xfce 4.14
Released under the terms of the GNU General Public License.
Compiled against GTK+-3.24.10, using GTK+-3.24.12.
I noticed recently that I don't think the issue is solved for me. xfwm4 CPU usage goes up without any reason. I noticed it when running on battery. Not really sure how to deal with this. Thinking about downgrading to the old xfce4 but would like to avoid it.
Experiencing same issue since upgrading to 4.14.0. After a while Xfwm4 slows down especially with windows that have video, e.g. video calls or Youtube. My temporary solution now is to bind xfwm4 --replace to a shortcut, this fixes all the problems. I am running on Intel integrated graphics.
I find the latest versions of Xfwm4 to be acting very weird. After some time, it starts getting very slow, eg. raising my quake-style terminal takes seconds, and htop shows it is xfwm4 sucking a lot of CPU meanwhile. Restarting Xfwm4 fixes the problem temporarily.
Also, I have noticed that, when I'm looking at some websites with Chrome (sorry I failed to take notes of which), Xfwm4 starts using a lot of CPU. If I switch tabs it stops. Coming back to the same website shows this happening again.
Things I tried:
xfconf-query -c xfwm4 -p /general/vblank_mode -s xpresent && xfwm4 --replace -- xpresent seems to make no difference, and a line appears on the screen during scrolling.
Set vblank_mode to auto, and compiled from Git -- the problem just took longer to appear, I had to restart Xfwm4 after 7 days instead of only 2. But this could also just mean I had a different usage pattern during these days.
I was using Xfwm4 4.14.0 from Xubuntu 19.10, and have been using 4.14.0git.e1f2e340 (revision e1f2e340) for the last week.
Well, that page makes chrome itself eat 100% CPU here, not xfwm4.
I also found that very weird, but it was xfwm4 eating a lot of CPU too, besides Chrome, on 4.14.0git.e1f2e340. I downgraded Xfwm4 and now only Chrome does. Probably related to hardware acceleration enabled on Chrome with the compositor enabled.
I've noticed that xfwm4 has begun hanging when either the whisker menu or the Visual Studio Code "are you sure you want to discard Git changes" dialog box appear. The hangs last ~10-30 seconds. Disabling compositing fixes them.
Same issue here. Everything runs fine with my machine (Xeon W3680 and GTX 1060 on Arch with XFCE/XFWM 4.14.0-1) unless I leave it on overnight. When I come back to it the next day, it's basically unusable due to major lag, stutter, and freezing. It happens no matter what I'm doing, anything from switching windows, displaying window animations, and when trying to play video games (anything from the original Doom to Subnautica and everything in between) or watch a video (with VLC, parole, Hulu, Netflix, Chromium or Firefox, doesn't matter). I don't mean slight hiccups; they're 0.5 - 5+ second delays. Video playback is a constant desync and stutterfest, sometimes like watching some kind of slideshow and the guy with the controls had way too much coffee or something.
I just noticed CPU use is indeed rising to when moving or resizing windows from ~0-1% to ~10%+ usage. So without hyperthreading, that would mean it's using 20% of a hexacore processor, or I guess 100% if it were one core, which seems bit excessive and perhaps is part of the issue.
xfwm --replace works just like as a reboot would and stops all the stutter and high CPU use. Well it fixes it for now, anyway; I'm guessing the issue will recur with sufficient uptime.