xfce4 using 100% cpu
tech-lists
tech-lists at zyxst.net
Mon Apr 6 16:23:56 UTC 2020
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20200406/dcbee295/attachment.sig>
More information about the freebsd-x11
mailing list