! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
High CPU usage
Status:
RESOLVED: FIXED

Comments

Description zygmund 2019-05-22 23:24:11 CEST
Created attachment 8572 
high one core usage

Hi,

I'm testing lastest git version and I have high CPU usage on every window move with my Nvidia graphic card like in screenshot, below my hw specyfication:

graphics:  Device-1: NVIDIA GK106GLM [Quadro K2100M] driver: nvidia v: 418.74 
           Display: x11 server: X.Org 1.20.4 driver: nvidia resolution: 1920x1080~60Hz 
           OpenGL: renderer: Quadro K2100M/PCIe/SSE2 v: 4.6.0 NVIDIA 418.74

CPU:       Topology: Quad Core model: Intel Core i7-4800MQ bits: 64 type: MT MCP L2 cache: 6144 KiB 
           Speed: 1314 MHz min/max: 800/3700 MHz Core speeds (MHz): 1: 1197 2: 1199 3: 1197 4: 1198 5: 1197 6: 1198 7: 1197 
           8: 1198

System:    Host: test-pc Kernel: 4.19.42-1-MANJARO x86_64 bits: 64 Desktop: Xfce 4.13.4git-master Distro: Manjaro Linux
Comment 1 Olivier Fourdan editbugs 2019-05-23 07:31:53 CEST
Most likely vsync, try disabling vsync.

From a terminal, type:

$ xfwm4 --replace --vsync=off

Note that you'll get a lot of tearing in exchange.
Comment 2 zygmund 2019-05-23 08:28:04 CEST
With Intel graphics is no problem, xfwm4 process has below 1% CPU, so this is problem with xfmw4 because eg. compton + Nvidia works also fine below 1% CPU without tearing.
Comment 3 Olivier Fourdan editbugs 2019-05-23 08:38:15 CEST
You're not replying my question, please try with "xfwm4 --replace --vsync=off" and report.
Comment 4 zygmund 2019-05-23 08:47:21 CEST
Because I can't try it at the moment, I'll try at the evening.
Comment 5 zygmund 2019-05-23 19:18:07 CEST
I tried xfwm4 --replace --vblank=off instead of --vsync=off now xfwm4 CPU is lower max 8% but Xorg is higher to 25% with tearing.
Comment 6 Git Bot editbugs 2019-05-23 21:51:01 CEST
Olivier Fourdan referenced this bugreport in commit d5222bcfee97f2924545eed1a524c3f1e8589511

compositor: Force "GL_MaxFramesAllowed" to 1

https://git.xfce.org/xfce/xfwm4/commit?id=d5222bcfee97f2924545eed1a524c3f1e8589511
Comment 7 Git Bot editbugs 2019-05-23 21:51:05 CEST
Olivier Fourdan referenced this bugreport in commit 89f3ab5db72226aac6cec1c6adf4f03ce16b010e

compositor: Remove glXWaitGL() call

https://git.xfce.org/xfce/xfwm4/commit?id=89f3ab5db72226aac6cec1c6adf4f03ce16b010e
Comment 8 zygmund 2019-05-23 22:24:37 CEST
Good news, now CPU is low like without vsync and xorg also is low.
Comment 9 Olivier Fourdan editbugs 2019-05-23 22:37:30 CEST
So you've tried the current code and it works?
Comment 10 zygmund 2019-05-23 22:41:39 CEST
Yes, I tried on one machine, I have another one with Nvidia and 4K, but 4K is really very bad,
Comment 11 Olivier Fourdan editbugs 2019-05-23 22:47:24 CEST
i'm confused, is it solved?
Comment 12 zygmund 2019-05-23 22:57:15 CEST
Yes on my full hd laptop is solved, other machine with 4K also is solved but overall problem with 4K movies still exists, probably it not depends to window manager, rather linux drivers itself.
Comment 13 Olivier Fourdan editbugs 2019-05-23 23:02:12 CEST
Thank you for testing, closing now.

Bug #15453

Reported by:
zygmund
Reported on: 2019-05-22
Last modified on: 2019-07-20

People

Assignee:
Olivier Fourdan
CC List:
1 user

Version

Version:
unspecified

Attachments

high one core usage (100.30 KB, image/png)
2019-05-22 23:24 CEST , zygmund
no flags

Additional information