Re: [xubuntu-users] Xorg with 99% CPU
On Fri 2018-10-19 (19:28), Ulli Horlacher wrote: > I am running xubuntu 16.04. > Xorg eats up one CPU: > > top - 19:24:43 up 10 min, 4 users, load average: 1.18, 1.03, 0.62 > Tasks: 297 total, 2 running, 294 sleeping, 0 stopped, 1 zombie > %Cpu(s): 11.7 us, 1.2 sy, 0.0 ni, 87.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 > st > KiB Mem : 16256752 total, 14530104 free, 404704 used, 1321944 buff/cache > KiB Swap: 16777212 total, 16777212 free,0 used. 15464540 avail Mem > > PID USER PR NIVIRTRESSHR S %CPU %MEM TIME+ COMMAND > 3095 framstag 20 0 218696 47332 36188 R 99.7 0.3 9:15.09 Xorg > 3205 framstag 20 0 369688 22404 12384 S 5.0 0.1 0:31.11 > xfsettingsd > 3881 framstag 20 0 44208 4272 3580 R 0.3 0.0 0:00.70 top > > > When I do a "strace -p 3095" the system freezes and I have to press the > power button :-( Meanwhile I am running Xubuntu 18.04 (and testet also 20.04), but the problem is still there: Tasks: 287 total, 2 running, 186 sleeping, 0 stopped, 1 zombie %Cpu(s): 8.6 us, 2.2 sy, 0.0 ni, 88.3 id, 0.3 wa, 0.0 hi, 0.5 si, 0.0 st KiB Mem : 16277796 total, 7861192 free, 608548 used, 7808056 buff/cache KiB Swap: 16777212 total, 16740396 free,36816 used. 15253496 avail Mem PID USER PR NIVIRTRESSHR S %CPU %MEM TIME+ COMMAND 20669 framstag 20 0 893812 58432 41584 R 100.0 0.4 0:05.85 Xorg 1 root 20 0 78208 9480 6732 S 0.0 0.1 0:24.77 systemd 2 root 20 0 0 0 0 S 0.0 0.0 0:00.02 kthreadd Also all xfce hot keys like Ctrl-F2 Alt-F4 Alt-F6 ... do not work. But some time (1..3 minutes) after login everything seems ok! The Xorg process is idle and all xfce hot keys work as expected. But when I change the console with Ctrl-Alt-F1 and back with Ctrl-Alt-F7 the problems described above are back ... and do not vanish, until I terminate the X-server and re-login. I have a second (test-) user named "tux" who has no problems at all! So, it MUST be an configuration error with my main user "framstag". I have tested: mv ~/.config/xfce4 ~/.config/xfce4_saved [logout] [login] But the problem is still there :-( I have thousends of config files in my $HOME and I do not want to remove $HOME/.??* Any suggesstions how I can debug this problem? -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: horlac...@tik.uni-stuttgart.de Allmandring 30aTel:++49-711-68565868 70569 Stuttgart (Germany) WWW:http://www.tik.uni-stuttgart.de/ REF:<20181019172839.ga4...@rus.uni-stuttgart.de> -- xubuntu-users mailing list xubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
Re: [xubuntu-users] Xorg with 99% CPU
Great detective work Ulli! Thanks for taking the time and letting us all know! --El On Sun, Oct 28, 2018 at 1:00 PM Ulli Horlacher < frams...@rus.uni-stuttgart.de> wrote: > On Mon 2018-10-22 (15:55), Ulli Horlacher wrote: > > > I have also another BIG problem: > > Alt-F1 ... Alt-F10 is switching to the VT console 1 .. 10 > > Without using the control key! > > So, I cannot use the XFCE functions on Alt-F1 ... Alt-F10 any more :-( > > > > For example: Alt-F6 should maximize a window vertically, but it switches > > to the VT (text) console 6! > > > > Though I have: > > > > framstag@diaspora:~: xmodmap -pke | grep F6 > > keycode 72 = F6 NoSymbol F6 > > > > BUT this beviour only appears some time after login! > > Shortly after login Alt-F6 works as expected. > > Something is messing up my keyboard, but what and why? > > I HAVE IT! > > It is "udevadm trigger" which was in my usbmount script! > This command resets all USB devices and because I have an USB keyboard, > this device has been also reseted! > > I have now deleted "udevadm trigger" from my usbmount script and now > everything seems ok ... so far :-} > > > -- > Ullrich Horlacher Server und Virtualisierung > Rechenzentrum TIK > Universitaet Stuttgart E-Mail: horlac...@tik.uni-stuttgart.de > Allmandring 30aTel:++49-711-68565868 > 70569 Stuttgart (Germany) WWW:http://www.tik.uni-stuttgart.de/ > REF:<20181022135533.ga8...@rus.uni-stuttgart.de> > > -- > xubuntu-users mailing list > xubuntu-users@lists.ubuntu.com > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/xubuntu-users > -- El LaGrew http://godchose.blogspot.com/ -- xubuntu-users mailing list xubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
Re: [xubuntu-users] Xorg with 99% CPU
On Mon 2018-10-22 (15:55), Ulli Horlacher wrote: > I have also another BIG problem: > Alt-F1 ... Alt-F10 is switching to the VT console 1 .. 10 > Without using the control key! > So, I cannot use the XFCE functions on Alt-F1 ... Alt-F10 any more :-( > > For example: Alt-F6 should maximize a window vertically, but it switches > to the VT (text) console 6! > > Though I have: > > framstag@diaspora:~: xmodmap -pke | grep F6 > keycode 72 = F6 NoSymbol F6 > > BUT this beviour only appears some time after login! > Shortly after login Alt-F6 works as expected. > Something is messing up my keyboard, but what and why? I HAVE IT! It is "udevadm trigger" which was in my usbmount script! This command resets all USB devices and because I have an USB keyboard, this device has been also reseted! I have now deleted "udevadm trigger" from my usbmount script and now everything seems ok ... so far :-} -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: horlac...@tik.uni-stuttgart.de Allmandring 30aTel:++49-711-68565868 70569 Stuttgart (Germany) WWW:http://www.tik.uni-stuttgart.de/ REF:<20181022135533.ga8...@rus.uni-stuttgart.de> -- xubuntu-users mailing list xubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
Re: [xubuntu-users] Xorg with 99% CPU
On Sat 2018-10-20 (11:59), Ralf Mardorf wrote: > On Sat, 20 Oct 2018 11:03:31 +0200, Ulli Horlacher wrote: > > >The xmodmap command itself is fast, produces no messages at all and > >terminates with exit code 0. > > > >Xorg is running on high CPU for several minutes, as before. > > > >What is going on there? > > Is it a large $HOME/.Xmodmap? Yes: https://fex.rus.uni-stuttgart.de/fop/DivoPzOd/_.Xmodmap framstag@diaspora:~: wc .Xmodmap 269 1632 10452 .Xmodmap > Btw. my Ubuntu (not Xubuntu) does use > lightdm and openbox (no DE) and has got no X rc file in $HOME. You > aren't doing something double and triple? I have configured my X keyboard heavily, but it has worked for many, many years - until now :-( I have also another BIG problem: Alt-F1 ... Alt-F10 is switching to the VT console 1 .. 10 Without using the control key! So, I cannot use the XFCE functions on Alt-F1 ... Alt-F10 any more :-( For example: Alt-F6 should maximize a window vertically, but it switches to the VT (text) console 6! Though I have: framstag@diaspora:~: xmodmap -pke | grep F6 keycode 72 = F6 NoSymbol F6 BUT this beviour only appears some time after login! Shortly after login Alt-F6 works as expected. Something is messing up my keyboard, but what and why? -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: horlac...@tik.uni-stuttgart.de Allmandring 30aTel:++49-711-68565868 70569 Stuttgart (Germany) WWW:http://www.tik.uni-stuttgart.de/ REF:<20181020115921.4a051825@utnubu> -- xubuntu-users mailing list xubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
Re: [xubuntu-users] Xorg with 99% CPU
On Sat, 20 Oct 2018 11:03:31 +0200, Ulli Horlacher wrote: >The xmodmap command itself is fast, produces no messages at all and >terminates with exit code 0. > >Xorg is running on high CPU for several minutes, as before. > >What is going on there? Is it a large $HOME/.Xmodmap? Btw. my Ubuntu (not Xubuntu) does use lightdm and openbox (no DE) and has got no X rc file in $HOME. You aren't doing something double and triple? [rocketmouse@archlinux moonstudio]$ sudo systemd-nspawn -q lsb_release -rc Release:16.04 Codename: xenial [rocketmouse@archlinux moonstudio]$ cat home/weremouse/.Xmodmap add mod3 = Scroll_Lock [rocketmouse@archlinux moonstudio]$ ls home/weremouse/.x{session,init}rc ls: cannot access 'home/weremouse/.xsessionrc': No such file or directory ls: cannot access 'home/weremouse/.xinitrc': No such file or directory [rocketmouse@archlinux moonstudio]$ -- xubuntu-users mailing list xubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
Re: [xubuntu-users] Xorg with 99% CPU
On Sat 2018-10-20 (10:36), Ulli Horlacher wrote: > On Fri 2018-10-19 (19:28), Ulli Horlacher wrote: > > > I am running xubuntu 16.04. > > Xorg eats up one CPU: > > This was @work, meanwhile I am @home and my xubuntu here has a similar > problem: Xorg runs with 100% CPU after login, but after a few minutes it > goes under 1% > The xubuntu @work is constantly running with 99-100% for hours. I can reproduce the Xorg high CPU without (re)login! When I call "xmodmap .Xmodmap" (which is done via xsessionrc) I get: top - 10:56:51 up 1:24, 7 users, load average: 0.82, 0.47, 0.24 Tasks: 211 total, 3 running, 153 sleeping, 0 stopped, 1 zombie %Cpu(s): 23.4 us, 2.5 sy, 0.0 ni, 74.1 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem : 7973572 total, 6357300 free, 884768 used, 731504 buff/cache KiB Swap: 16777212 total, 16777212 free,0 used. 6677456 avail Mem PID USER PR NIVIRTRESSHR S %CPU %MEM TIME+ COMMAND 5551 framstag 20 0 409296 41508 31916 R 99.0 0.5 5:03.67 Xorg 5660 framstag 20 0 370112 16988 14092 S 5.0 0.2 0:15.79 xfsettingsd https://fex.rus.uni-stuttgart.de/fop/DivoPzOd/_.Xmodmap The xmodmap command itself is fast, produces no messages at all and terminates with exit code 0. Xorg is running on high CPU for several minutes, as before. What is going on there? -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: horlac...@tik.uni-stuttgart.de Allmandring 30aTel:++49-711-68565868 70569 Stuttgart (Germany) WWW:http://www.tik.uni-stuttgart.de/ REF:<20181020083623.gb11...@rus.uni-stuttgart.de> -- xubuntu-users mailing list xubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
Re: [xubuntu-users] Xorg with 99% CPU
On Fri 2018-10-19 (20:53), Ralf Mardorf wrote: > On Fri, 19 Oct 2018 19:28:39 +0200, Ulli Horlacher wrote: > > >Any idea what is going on and how to debug it? > > Is anything related in the log files? > > $ less /var/log/Xorg.0.log > $ journalctl -b > $ dmesg | less > $ less ~/.xsession-errors I cannot see any suspicious: https://fex.rus.uni-stuttgart.de/fop/LqCZ4y36/Xorg.0.log https://fex.rus.uni-stuttgart.de/fop/PzUX7iln/journalctl.log https://fex.rus.uni-stuttgart.de/fop/uv5RbL4q/dmesg.log ~/.xsession-errors : Xsession: X session started for framstag at Sat Oct 20 10:23:30 CEST 2018 localuser:framstag being added to access control list + exec -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: horlac...@tik.uni-stuttgart.de Allmandring 30aTel:++49-711-68565868 70569 Stuttgart (Germany) WWW:http://www.tik.uni-stuttgart.de/ REF:<20181019205352.4c089055@utnubu> -- xubuntu-users mailing list xubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
Re: [xubuntu-users] Xorg with 99% CPU
On Fri 2018-10-19 (19:28), Ulli Horlacher wrote: > I am running xubuntu 16.04. > Xorg eats up one CPU: This was @work, meanwhile I am @home and my xubuntu here has a similar problem: Xorg runs with 100% CPU after login, but after a few minutes it goes under 1% The xubuntu @work is constantly running with 99-100% for hours. > When I do a "strace -p 3095" the system freezes and I have to press the > power button :-( Only Xorg freezes! I repeated the strace on a text console I got the output: recvmsg(27, {msg_name(0)=NULL, msg_iov(1)=[{"!\0\4\0\257\0\0\0@\0)\1\1)\3\0!\0\4\0\257\0\0\0P\0)\1\1\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 244 clock_gettime(CLOCK_MONOTONIC, {231, 847780016}) = 0 clock_gettime(CLOCK_MONOTONIC, {231, 847861103}) = 0 clock_gettime(CLOCK_MONOTONIC, {231, 847978927}) = 0 clock_gettime(CLOCK_MONOTONIC, {231, 848062878}) = 0 clock_gettime(CLOCK_MONOTONIC, {231, 848179095}) = 0 clock_gettime(CLOCK_MONOTONIC, {231, 848256899}) = 0 clock_gettime(CLOCK_MONOTONIC, {231, 848372139}) = 0 clock_gettime(CLOCK_MONOTONIC, {231, 848449594}) = 0 clock_gettime(CLOCK_MONOTONIC, {231, 848562669}) = 0 clock_gettime(CLOCK_MONOTONIC, {231, 848640823}) = 0 clock_gettime(CLOCK_MONOTONIC, {231, 848756132}) = 0 clock_gettime(CLOCK_MONOTONIC, {231, 848839105}) = 0 clock_gettime(CLOCK_MONOTONIC, {231, 848963075}) = 0 clock_gettime(CLOCK_MONOTONIC, {231, 849041787}) = 0 clock_gettime(CLOCK_MONOTONIC, {231, 849158005}) = 0 writev(27, [{"\1\1\6\247\0\0\0\0$\0@\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 32}], 1) = 32 clock_gettime(CLOCK_MONOTONIC, {231, 849268356}) = 0 (...) https://fex.rus.uni-stuttgart.de/fop/gHa0bGP2/Xorg.log I also noticed xfsettingsd constantly at 5% CPU and this is the strace output: poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}]) writev(3, [{"!\0\4\0\257\0\0\0@\0A\1\1)\3\0!\0\4\0\257\0\0\0P\0A\1\1\0\0\0"..., 244}, {NULL, 0}, {"", 0}], 3) = 244 poll([{fd=3, events=POLLIN}], 1, -1)= 1 ([{fd=3, revents=POLLIN}]) recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\1\1O\256\0\0\0\0$\0@\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32 recvmsg(3, 0x7fffd76d42d0, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(3, 0x7fffd76d42d0, 0) = -1 EAGAIN (Resource temporarily unavailable) (...) https://fex.rus.uni-stuttgart.de/fop/q9zllzle/xfsettingsd.log -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: horlac...@tik.uni-stuttgart.de Allmandring 30aTel:++49-711-68565868 70569 Stuttgart (Germany) WWW:http://www.tik.uni-stuttgart.de/ REF:<20181019172839.ga4...@rus.uni-stuttgart.de> -- xubuntu-users mailing list xubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
Re: [xubuntu-users] Xorg with 99% CPU
On Fri 2018-10-19 (16:30), Steve Litt wrote: > > I am running xubuntu 16.04. > > Xorg eats up one CPU: > > > > What browsers are you using None. The Xorg 100% CPU happens directly after login. Only one xterm is running, nothing else (besides the standard XFCE daemons). -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: horlac...@tik.uni-stuttgart.de Allmandring 30aTel:++49-711-68565868 70569 Stuttgart (Germany) WWW:http://www.tik.uni-stuttgart.de/ REF:<20181019163031.3de89...@mydesk.domain.cxm> -- xubuntu-users mailing list xubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
Re: [xubuntu-users] Xorg with 99% CPU
On Sat, 20 Oct 2018 10:10:34 +0200, Ralf Mardorf wrote: >On Fri, 19 Oct 2018 16:30:31 -0400, Steve Litt wrote: >>What browsers are you using, and how many tabs do you use in each. My >>experience is that piggy browsers like Firefox and Chrome/Chromium >>make X swell up. When X' usage exceeds 90%, do killall -9 on all web >>browsers. Most of the time the problem subsides. > >A minute ago, with just one tab opened, Firefox has froozen my openbox >session. Just Ctrl+Alt+F2 was responsive for a killall -9. After >returning with Ctrl+Alt+F7 everything was ok again. > >I guess the Mozilla team could do better, IMO everything should become >unresponsive, even the reset and power buttons of the computer, so >that it is required to to pull the plug. They shouldn't do things by >halves. PS: I forgot to mention that the tab crashed. A crashing tab is one of Firefox's features. It's a practice alarm, to learn how to "Duck and cover". -- xubuntu-users mailing list xubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
Re: [xubuntu-users] Xorg with 99% CPU
On Fri, 19 Oct 2018 16:30:31 -0400, Steve Litt wrote: >What browsers are you using, and how many tabs do you use in each. My >experience is that piggy browsers like Firefox and Chrome/Chromium make >X swell up. When X' usage exceeds 90%, do killall -9 on all web >browsers. Most of the time the problem subsides. A minute ago, with just one tab opened, Firefox has froozen my openbox session. Just Ctrl+Alt+F2 was responsive for a killall -9. After returning with Ctrl+Alt+F7 everything was ok again. I guess the Mozilla team could do better, IMO everything should become unresponsive, even the reset and power buttons of the computer, so that it is required to to pull the plug. They shouldn't do things by halves. -- xubuntu-users mailing list xubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
Re: [xubuntu-users] Xorg with 99% CPU
On Fri, 19 Oct 2018 19:28:39 +0200 Ulli Horlacher wrote: > I am running xubuntu 16.04. > Xorg eats up one CPU: > > top - 19:24:43 up 10 min, 4 users, load average: 1.18, 1.03, 0.62 > Tasks: 297 total, 2 running, 294 sleeping, 0 stopped, 1 zombie > %Cpu(s): 11.7 us, 1.2 sy, 0.0 ni, 87.0 id, 0.0 wa, 0.0 hi, 0.0 > si, 0.0 st KiB Mem : 16256752 total, 14530104 free, 404704 used, > 1321944 buff/cache KiB Swap: 16777212 total, 16777212 free,0 > used. 15464540 avail Mem > > PID USER PR NIVIRTRESSHR S %CPU %MEM TIME+ > COMMAND 3095 framstag 20 0 218696 47332 36188 R 99.7 0.3 > 9:15.09 Xorg 3205 framstag 20 0 369688 22404 12384 S 5.0 > 0.1 0:31.11 xfsettingsd 3881 framstag 20 0 44208 4272 3580 > R 0.3 0.0 0:00.70 top > > When I do a "strace -p 3095" the system freezes and I have to press > the power button :-( > > Any idea what is going on and how to debug it? > > What browsers are you using, and how many tabs do you use in each. My experience is that piggy browsers like Firefox and Chrome/Chromium make X swell up. When X' usage exceeds 90%, do killall -9 on all web browsers. Most of the time the problem subsides. SteveT Steve Litt September 2018 featured book: Quit Joblessness: Start Your Own Business http://www.troubleshooters.com/startbiz -- xubuntu-users mailing list xubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
Re: [xubuntu-users] Xorg with 99% CPU
On Fri, 19 Oct 2018 19:28:39 +0200, Ulli Horlacher wrote: >Any idea what is going on and how to debug it? Is anything related in the log files? $ less /var/log/Xorg.0.log $ journalctl -b $ dmesg | less $ less ~/.xsession-errors -- xubuntu-users mailing list xubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users