Re: xfce4 using 100% cpu
tech-lists <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.x11 |
|---|---|
| Message-ID | <[email protected]> |
Hi, I've pasted some truss results inline:
On Thu, Apr 02, 2020 at 11:17:37AM +0200, Guido Falsi wrote:
>On 01/04/20 17:41, tech-lists wrote:
>> Hi
>>
>> context is:
>>
>> 12.1-stable r359156, amd64
>> xorg-7.7_3
>> xorg-server-1.20.8,1
>> xfce4-wm-4.14.0_1
>> xfce4-desktop-4.14.2
>> nvidia-driver-440.64
>>
>> the graphics card is NVIDIA GPU GeForce GT 640 (GK107) with 2GB RAM
>>
>> For some reason, xfce4 (and *only* xfce4) is always at 100% CPU.
>> Other window manager environments don't have this effect. For example
>> windowmaker. When invoking with xinit, top shows Xorg using 100%. So I'm
>> unsure if it's xfce4 alone or some xorg <-> xfce4 interaction.
>>
>> xinit launches xfce4 like this:
>>
>> [snip]
>> exec ck-launch-session startxfce4
>> [/snip]
>>
>> How can I go about fixing or even debugging this? xfce4 is otherwise
>> smooth,
>> fast
>
>I'd try launching xfce usfing a different command: "startxfce4
>--with-ck-launch". In this way it will be xfce launching it's own
>consolekit session. Also not running it through "exec" could slightly
>influence things.
>
>You could also use truss(1) to look at what is happening. It's noisy,
>but very detailed. To launch it you should modify startxfce4 to launch
>the Xorg server through truss and redirect output.
>
>BTW have you had a look at Xorg log files in /var/log? Maybe you could
>find something there too.
>
truss gives the following output, pages and pages of it, the same error over
and over. Problem is I don't know how to interpret the output. I guess this
is the issue, that it can't find some resource:
[snip]
poll({ 3/POLLIN 4/POLLIN 7/POLLIN 16/POLLIN 17/POLLIN },5,-1) = 1 (0x1)
recvmsg(3,{NULL,0,[{"U\^B\M-=\0\^[\M^Ld\^A\^C\^Q\^A\0"...,4096}],1,{},0,0},0)
= 32 (0x20)
recvmsg(3,0x7fffffffe5a0,0) ERR#35 'Resource temporarily
unavailable'
recvmsg(3,0x7fffffffe5d0,0) ERR#35 'Resource temporarily
unavailable'
recvmsg(3,0x7fffffffe580,0) ERR#35 'Resource temporarily
unavailable'
recvmsg(3,0x7fffffffe5b0,0) ERR#35 'Resource temporarily
unavailable'
poll({ 3/POLLIN 4/POLLIN 7/POLLIN 16/POLLIN 17/POLLIN },5,-1) = 1 (0x1)
recvmsg(3,{NULL,0,[{"U\^B\M-=\0k\M^Md\^A\^C\^P\0\0\^P"...,4096}],1,{},0,0},0)
= 32 (0x20)
recvmsg(3,0x7fffffffe5a0,0) ERR#35 'Resource temporarily
unavailable'
recvmsg(3,0x7fffffffe5d0,0) ERR#35 'Resource temporarily
unavailable'
recvmsg(3,0x7fffffffe580,0) ERR#35 'Resource temporarily
unavailable'
recvmsg(3,0x7fffffffe5b0,0) ERR#35 'Resource temporarily
unavailable'
[/snip]
The machine itself has a lot of resources though:
[snip]
last pid: 25697; load averages: 1.17, 1.15, 1.21
up 0+06:31:11 17:16:00
79 processes: 3 running, 76 sleeping
CPU: 13.7% user, 0.0% nice, 0.0% system, 0.0% interrupt, 86.3% idle
Mem: 683M Active, 1259M Inact, 29M Laundry, 5291M Wired, 1487M Buf, 24G Free
ARC: 2324M Total, 965M MFU, 1252M MRU, 320K Anon, 18M Header, 90M Other
1064M Compressed, 2011M Uncompressed, 1.89:1 Ratio
Swap: 3656M Total, 3656M Free
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
25590 [REDACTED] 3 103 0 6263M 70M CPU1 1 11:22 100.24% Xorg
25651 [REDACTED] 3 23 0 58M 40M CPU7 7 1:10 5.96% wrapper-2.0
25668 [REDACTED] 3 20 0 72M 42M select 5 0:02 0.12% xfce4-terminal
25603 [REDACTED] 3 20 0 97M 51M select 3 0:02 0.10% xfwm4
This is after disabling everything in Settings > Session and Startup >
Autostart
thanks for looking at this
--
J.
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAl6LV40ACgkQs8o7QhFz NAVI5BAAjntuLIDzjmpLYKd2wl/SvhRfZzF6pcK6vq4xi6akHXz0jnFK8wtB+BJp bjaGBLzXHXtK9Ccq1+/RAqqLR+qByKAGEl3/UjOCld48SrgNt3U/crs5D3PMtPR1 FopOaUheMTT1qVFCV4g+Xy738FapnUmmWEFWToP1wihMYV1Nd+ElhkIht45WY1D+ xDOnU9QGDq2iplP7eu4WuB8ihllOqYN608B+XXd8yOpy88opAkg6l3IOczRFaADS YEVBSJ1NIlC+mGaZa5DzZzZN/HT3WZOEST4tRcBwHwvvJuBJMuEhk+iBdHbUPd6S fb2lR7wwciZLYjw1hPhHLac9H2952Ov9pM/7BfaCr8ICXqxYg4hGfGctLUTpV0yb tIpqcwMA+htKI4mmlGl8b2eQ2HXTP6GkAwz1wSnabdSoI45oEueFs4cId1w22M39 EAk7RR1fW1FDN7v5YDX9a5f9xAFaDhfv/EH3jSbChbu3oC9xK4gF5d/rmzyrp4YR YrQdzdJk4INEN1ihp1GZALY3WwwxjOCraU426WmI6gGLSPHHStkcsuVUyROLPO59 ZG+U0iP32aGi823LzGwmn8R1Qt3kd5MG78b7RFGbP7awRBo55Av8ez1V2uomz0Jm xlUQ/Mdz3wOxLZ11+UpmCH4l3vW66eZSJ83dqahJrFZU0h2+/U4= =zmW4 -----END PGP SIGNATURE-----