Page 1 of 5 123 ... LastLast
Results 1 to 10 of 41

Thread: Xorg High CPU Usage, Sluggish Performance on Fresh Install

  1. Default Xorg High CPU Usage, Sluggish Performance on Fresh Install

    Since a recent reinstall of 12.2 I've noticed a constant tendency for Xorg over time to allocate more memory, up to 1g virt, and tie up a core at 80-99% constant usage - which then of course makes the entire system very sluggish to respond. If I logout / login restarting X, everything is fine for a while again.

    Code:
    xorg-x11-server-7.6_1.12.3-1.17.1.x86_64
    Nvidia binary driver: 3.10.19
    3.4.11-2.16-desktop #1 SMP PREEMPT Wed Sep 26 17:05:00 UTC 2012 (259fc87) x86_64 x86_64 x86_64 GNU/Linux
    I've applied all Suse updates and updated the Nvidia (binary) driver to the latest version with no result. There does not have to by any other applications running for this to occur - just Kwin and Plasma. No plasma widgets are being used.

    I see there are some older issues (11.x days) where this was the case, but not much for recent threads on this.

    Any ideas? It's getting pretty old having such a sluggish system on a fresh install.

    Code:
    # top -p 21740 -n 50
    top - 12:01:12 up 4 days, 17:01,  9 users,  load average: 0.23, 0.38, 0.37
    Tasks:   1 total,   1 running,   0 sleeping,   0 stopped,   0 zombie
    %Cpu(s):  9.8 us,  0.4 sy,  0.0 ni, 89.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
    KiB Mem:   4046208 total,  3282440 used,   763768 free,      300 buffers
    KiB Swap:  4193276 total,    44080 used,  4149196 free,  2524228 cached
    
      PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND                                                                                            
    21740 root      20   0  339m 248m  37m R  79.2  6.3  79:48.30 Xorg
    xrestop output:

    Code:
    xrestop - Display: localhost:0
              Monitoring 42 clients. XErrors: 0
              Pixmaps:   24197K total, Other:    3309K total, All:   27507K total
    
    res-base Wins  GCs Fnts Pxms Misc   Pxm mem  Other   Total   PID Identifier    
    2000000    32    2    1  403  611    15586K     16K  15602K 22030 kwin
    5200000    37   42    1  370  548     7333K     15K   7349K 30043 Applications - Post New Thread - Mozilla Firefox
    2400000    36   36    1   42 138381      305K   3245K   3551K 22049 plasma-desktop
    2a00000     6    1    0   74   98      197K      2K    200K 22074 krunner
    4c00000     6    5    0   18   17      171K    672B    171K 22288 klipper
    4600000     6    6    1   18   31      147K      2K    149K 22200 /home/user : bash
    3c00000    15    6    0    8   32       96K      1K     97K 22156 kmix
    1000000     5    4    0    4   21       48K    720B     48K 21954 kded4
    1600000     4    4    0    4   15       48K    552B     48K 21964 kactivitymanagerd
    2800000     2    2    0    4   13       48K    408B     48K 22062 kaccess
    1400000     3    3    0    2  555       24K     13K     37K 21959 kglobalaccel
    3600000     3    3    0    2   12       24K    432B     24K 22143 akonadi_nepomuk_feeder
    4e00000     3    3    0    2   11       24K    408B     24K 30065 kmozillahelper
    3a00000     3    3    0    2   11       24K    408B     24K 22142 akonadi_mailfilter_agent
    3800000     3    3    0    2   11       24K    408B     24K 22145 nepomukcontroller
    3400000     3    3    0    2   11       24K    408B     24K 22141 akonadi_maildispatcher_agent
    1800000     3    3    0    2   11       24K    408B     24K 22047 knotify4
    1200000     3    3    0    2   11       24K    408B     24K 21962 kwalletd
    4a00000     0    1    0    2    8       24K    216B     24K   ?   <unknown>
    0000000     2    0    2    0  112        0B      4K      4K   ?   <unknown>
    1c00000     4    3    0    1   11        0B    432B    432B 22028 Qt-subapplication
    2600000     3    3    0    1   11        0B    408B    408B 22054 kuiserver
    4400000     0    1    0    0    5        0B    144B    144B   ?   <unknown>
    4200000     0    1    0    0    5        0B    144B    144B   ?   <unknown>
    4000000     0    1    0    0    5        0B    144B    144B   ?   <unknown>
    3e00000     0    1    0    0    5        0B    144B    144B   ?   <unknown>
    3200000     0    1    0    0    5        0B    144B    144B   ?   <unknown>
    3000000     0    1    0    0    5        0B    144B    144B   ?   <unknown>
    2e00000     0    1    0    0    5        0B    144B    144B   ?   <unknown>
    2c00000     0    1    0    0    5        0B    144B    144B   ?   <unknown>
    0800000     0    1    0    0    5        0B    144B    144B   ?   <unknown>
    5000000     1    1    0    0    0        0B     48B     48B   ?   xrestop
    2200000     1    1    0    0    0        0B     48B     48B   ?   <unknown>
    1a00000     1    1    0    0    0        0B     48B     48B   ?   <unknown>

  2. #2

    Default Re: Xorg High CPU Usage, Sluggish Performance on Fresh Install

    I have the exact same problem. It was true in 12.1 and I've just upgraded to 12.2 a week or so ago and it remains true.

    I just installed the absolute latest NVidia driver from their Web site - the one which was just put up last week. For a short while it seemed the issue was gone, but today it's back again - 50-90% CPU. Only a reboot solves the problem temporarily.

  3. #3
    Join Date
    Nov 2010
    Location
    BEIJING,CHINA; SHANGHAI,CHINA
    Posts
    664

    Default 回复: Xorg High CPU Usage, Sluggish Performance on Fresh Install

    Can you shut nepomuk down completely for a while to see if it helps?

    openSUSE 12.1 – Taming Akonadi & Nepomuk » TweakHound

    And are you using btrfs while don't have the latest kernel (3.6 series) installed?

    For my monitoring sub-forum (Chinese sub-forum), it's the common reasons for a slow performance...

    PS:

    Your logs are not enough for us to help debugging.

    maybe you need to paste /var/log/messages, /var/log/X11.0.log and /var/log/X11.0.log.old somewhere.

  4. #4

    Default Re: Xorg High CPU Usage, Sluggish Performance on Fresh Install

    Quote Originally Posted by LewsTherinTelemon View Post
    Since a recent reinstall of 12.2 I've noticed a constant tendency for Xorg over time to allocate more memory, up to 1g virt, and tie up a core at 80-99% constant usage - which then of course makes the entire system very sluggish to respond. If I logout / login restarting X, everything is fine for a while again.
    ...

    I've applied all Suse updates and updated the Nvidia (binary) driver to the latest version with no result. There does not have to by any other applications running for this to occur - just Kwin and Plasma. No plasma widgets are being used.

    I see there are some older issues (11.x days) where this was the case, but not much for recent threads on this.

    Any ideas?
    Interesting. About 10 days ago, I noticed a slow down on the desktop under a heavy usage scenario and then later, well after the fact, noticed that I actually had used some swap space. That was the first time I've used swap in about [mild exaggeration] 200 years [/mild exaggeration].

    Since then, I have not observed anything further that might suggest a memory leak occurring. However, I have on a number of occasions seen Xorg eating up about 15% more then what it should be. I have no further ideas on it yet.

    (PS - I didn't see any mention from others about similar circumstances)

  5. #5

    Default Re: 回复: Xorg High CPU Usage, Sluggish Performance on Fresh Install

    Quote Originally Posted by MargueriteSu View Post
    Can you shut nepomuk down
    Ah, yes, fresh install, good point. I'd have to agree that its likely indexing related that you are observing. ... why the server though in that regard as opposed to the nepomuk process ??

  6. Default Re: 回复: Xorg High CPU Usage, Sluggish Performance on Fresh Install

    Quote Originally Posted by MargueriteSu View Post
    Can you shut nepomuk down completely for a while to see if it helps?

    openSUSE 12.1 – Taming Akonadi & Nepomuk » TweakHound

    And are you using btrfs while don't have the latest kernel (3.6 series) installed?

    For my monitoring sub-forum (Chinese sub-forum), it's the common reasons for a slow performance...

    PS:

    Your logs are not enough for us to help debugging.

    maybe you need to paste /var/log/messages, /var/log/X11.0.log and /var/log/X11.0.log.old somewhere.
    Hi MargueriteSu and Tyler_K,

    Thanks for the help. I have disabled nepomuk to see if that helps - should have thought of that, though I also did not see nepomuk indexing processes running when the high XOrg CPU usage was present. I've certainly seen this in the past, but it does not appear to be related in this case.

    I Just had to restart X again, and the /var/log/Xorg.0.log.old is at SUSE Paste

    I am using btrfs with btrfsprogs-0.19-47.1.2.x86_64, kernel is the Suse Desktop version 3.4.11-2.16-desktop #1 SMP PREEMPT Wed Sep 26 17:05:00 UTC 2012 (259fc87) x86_64 x86_64 x86_64 GNU/Linux

    I can certainly compile a 3.5.7 or 3.6.7 kernel and test that, it just seemed like this should work with the 3.4.11 Suse kernel. I do not have this issue on my other two systems (Suse 12.1 and 12.2) with kernel 3.4 series on them.

    Thanks again.

    LewsTherin

  7. #7

    Default Re: Xorg High CPU Usage, Sluggish Performance on Fresh Install

    In my case, I am not running Nepomuk nor btrfs.

    I've pasted my xorg logs and xorg conf files here:
    SUSE Paste

    I'll repeat that the system seems OK after a reboot. At that point xorg will be consuming between 3% and 20% CPU.

    After some unspecified time, however, the system will start to be sluggish in terms of window handling in Firefox (file save dialog that pops up when an image file is being saved will go away slowly). A check with top at that point will show xorg going to 50-90% CPU. Swap memory is NOT affected, in fact it hasn't been touched. Virtual memory is 203m. The longer I run without a reboot, the worse it gets with all applications involving window changes such as Dolphin becoming slower. The system never actually freezes, it just gets progressively more annoying.

  8. #8
    Join Date
    Nov 2010
    Location
    BEIJING,CHINA; SHANGHAI,CHINA
    Posts
    664

    Default 回复: Re: 回复: Xorg High CPU Usage, Sluggish Performance on Fresh Install

    > I am using btrfs with btrfsprogs-0.19-47.1.2.x86_64, kernel is the Suse Desktop version 3.4.11-2.16-desktop #1 SMP PREEMPT Wed Sep 26 17:05:00 UTC 2012 (259fc87) x86_64 x86_64 x86_64 GNU/Linux

    1. another question to make sure if you're facing the same situation I faced:

    when didn't you get your btrfs partitions created? and what's your kernel version (should be < 3.4) at that time?

    Kernel 3.4 introduced a new btrfs API which need to rebuild btrfs cache. or you'll get a very slow startup and runtime performance. That was my case.

    2. According to your X11.0.log, the only error happens here:

    Code:
    (EE) Failed to load /usr/lib64/xorg/modules/libglamoregl.so:  /usr/lib64/xorg/modules/libglamoregl.so: undefined symbol:  _glapi_tls_Context
    which may be related to: https://bugzilla.novell.com/show_bug.cgi?id=766513

    and it repeatedly reports:

    Code:
    1. [ 31.360] (WW) NVIDIA(GPU-0): The EDID for HP w2207 (DFP-1) contradicts itself: mode
    2. [ 31.360] (WW) NVIDIA(GPU-0): "720x480" is specified in the EDID; however, the EDID's
    3. [ 31.360] (WW) NVIDIA(GPU-0): valid HorizSync range (24.000-83.000 kHz) would exclude
    4. [ 31.360] (WW) NVIDIA(GPU-0): this mode's HorizSync (15.7 kHz); ignoring HorizSync check
    5. [ 31.360] (WW) NVIDIA(GPU-0): for mode "720x480".
    6. [ 31.360] (WW) NVIDIA(GPU-0): The EDID for HP w2207 (DFP-1) contradicts itself: mode
    7. [ 31.360] (WW) NVIDIA(GPU-0): "720x576" is specified in the EDID; however, the EDID's
    8. [ 31.360] (WW) NVIDIA(GPU-0): valid HorizSync range (24.000-83.000 kHz) would exclude
    9. [ 31.360] (WW) NVIDIA(GPU-0): this mode's HorizSync (15.6 kHz); ignoring HorizSync check
    10. [ 31.360] (WW) NVIDIA(GPU-0): for mode "720x576".
    which may be related to:

    1. https://bbs.archlinux.org/viewtopic.php?id=120939
    2. [kubuntu] [SOLVED] Incorrect default monitor resolution [Archive] - Ubuntu Forums

    By the way, are you using a dual display card laptop without using bumblebee?

    Marguerite
    Last edited by MargueriteSu; 26-Nov-2012 at 07:09.

  9. #9
    Join Date
    Nov 2010
    Location
    BEIJING,CHINA; SHANGHAI,CHINA
    Posts
    664

    Default 回复: Re: Xorg High CPU Usage, Sluggish Performance on Fresh Install

    Quote Originally Posted by richardstevenhack View Post
    In my case, I am not running Nepomuk nor btrfs.

    I've pasted my xorg logs and xorg conf files here:
    SUSE Paste

    I'll repeat that the system seems OK after a reboot. At that point xorg will be consuming between 3% and 20% CPU.

    After some unspecified time, however, the system will start to be sluggish in terms of window handling in Firefox (file save dialog that pops up when an image file is being saved will go away slowly). A check with top at that point will show xorg going to 50-90% CPU. Swap memory is NOT affected, in fact it hasn't been touched. Virtual memory is 203m. The longer I run without a reboot, the worse it gets with all applications involving window changes such as Dolphin becoming slower. The system never actually freezes, it just gets progressively more annoying.
    You two seem to face a same situation:

    Code:
    1. [571680.645] (II) LoadModule: "glamoregl"
    2. [571680.645] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
    3. [571680.663] (EE) Failed to load /usr/lib64/xorg/modules/libglamoregl.so: /usr/lib64/xorg/modules/libglamoregl.so: undefined symbol: _glapi_tls_Context
    4. [571680.663] (II) UnloadModule: "glamoregl"
    5. [571680.663] (II) Unloading glamoregl
    6. [571680.663] (EE) Failed to load module "glamoregl" (loader failed, 7)
    so googling "libglamoregl.so: undefined symbol: _glapi_tls_Context" might help.

  10. #10

    Default Re: 回复: Re: 回复: Xorg High CPU Usage, Sluggish Performance on Fresh Install

    Quote Originally Posted by MargueriteSu View Post
    2. According to your X11.0.log, the only error happens here:

    Code:
    (EE) Failed to load /usr/lib64/xorg/modules/libglamoregl.so:  /usr/lib64/xorg/modules/libglamoregl.so: undefined symbol:  _glapi_tls_Context
    which may be related to: https://bugzilla.novell.com/show_bug.cgi?id=766513

    ...

    You two seem to face a same situation:
    Code:
    1. [571680.645] (II) LoadModule: "glamoregl"
    2. [571680.645] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
    3. [571680.663] (EE) Failed to load /usr/lib64/xorg/modules/libglamoregl.so: /usr/lib64/xorg/modules/libglamoregl.so: undefined symbol: _glapi_tls_Context
    4. [571680.663] (II) UnloadModule: "glamoregl"
    5. [571680.663] (II) Unloading glamoregl
    6. [571680.663] (EE) Failed to load module "glamoregl" (loader failed, 7)
    so googling "libglamoregl.so: undefined symbol: _glapi_tls_Context" might help.
    Regarding this error, and further to the suggestions in the Bugzilla thread, check this out:
    http://forums.opensuse.org/english/g...ml#post2506351
    Failed with messages: [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Failed to load /usr/lib64/xorg/modules/libglamoregl.so: /usr/lib64/xorg/modules/libglamoregl.so: undefined symbol: _glapi_tls_Context AND [ERROR]Aborting because fallback start is disabled.

    Found possible solution on Github Bumblebee Project Forum Issue #262 in post by dliw [https://github.com/Bumblebee-Project...ee/issues/262] (final post in thread, undated, unnumbered) who helpfully advised: "I had the same issue recently and solved this problem by replacing Option "ConnectedMonitor" "DFB" -> Option "ConnectedMonitor" "CRT" in the file "xorg.conf.nvidia"... [ie. -> XorgConfFile=/etc/bumblebee/xorg.conf.nvidia]"

    Amended xorg.conf.nvidia as suggested by dliw and this seems to have solved the error described above.

Page 1 of 5 123 ... LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •