Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
One cpu constantly occupied by X
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
LonelyStar
Guru
Guru


Joined: 06 Dec 2005
Posts: 390

PostPosted: Fri May 21, 2010 4:52 pm    Post subject: One cpu constantly occupied by X Reply with quote

Hi,

When I login to X, at the beginning everything is fine. After a while, one of my cores (I have a dual core laptop) is constantly occupied (100%).

top reaveals:
Code:

 1754 root      20   0  243m  72m  20m R   98  4.9  42:31.71 X                 
12145 ls        20   0  474m  44m  18m R    4  3.0   0:39.45 claws-mail         
10720 ls        20   0  615m  74m  23m S    2  5.0   2:52.64 chrome             
10901 ls        20   0  914m  40m  21m S    1  2.7   0:02.93 chrome             
  991 root      20   0     0    0    0 S    0  0.0   0:03.43 phy0               
 9936 ls        20   0 56964 6624 2864 S    0  0.4   0:44.01 python2.6         
 9937 ls        20   0 33100 3388 2904 S    0  0.2   0:20.07 dzen2             
 9941 ls        20   0  146m  10m 6644 S    0  0.7   0:00.46 urxvtd             
 9965 ls        20   0  189m  12m 9660 R    0  0.8   0:01.28 notification-da   
10004 ls        20   0  672m  64m  33m S    0  4.3   1:15.96 chrome             
10656 ls        20   0  896m  42m  14m S    0  2.9   0:29.68 chrome             
17886 ls        20   0  198m  51m  13m S    0  3.5   4:22.44 emacs             
    1 root      20   0  3888  628  524 S    0  0.0   0:00.43 init               
    2 root      20   0     0    0    0 S    0  0.0   0:00.00 kthreadd           
    3 root      RT   0     0    0    0 S    0  0.0   0:00.01 migration/0


It is X! just X. I tried closing all programs, still there.
What could it be, what can I do?

Some info:

emerge --info xorg-server
Code:


Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11.1-r0, 2.6.34-gentoo x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 21 May 2010 00:15:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-python/pycrypto: 2.1.0
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -ftree-vectorize -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=core2 -ftree-vectorize -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch usersync"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://de-mirror.org/distro/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://de-mirror.org/distro/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp6.uni-erlangen.de/pub/mirrors/gentoo "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi afterimage alsa amd64 avfs bash-completion berkdb bluetooth branding bzip2 cairo cdda cddb cdparanoia cdr cern cleartype cli consolekit cracklib crypt cscope cups custom-optimization cxx dbus device-mapper directfb djvu dri dts dvd dvdr emboss encode exif extra extras fam ffmpeg firefox flac fortran gcj gdbm gif gimp git gnuplot gnutls gpm graphics graphviz gtk hlapi iconv id3tag imap ipv6 jpeg kde kpathsea laptop latex lcms libnotify mad matplotlib mbrola mikmod mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib ncurses netbeans nls nptl nptlonly nsplugin numpy offensive ogg opengl openmp pam pango pcre pdf perl phonon pmu png policykit ppds pppd preview-latex pstricks python qt3support qt4 readline reflection science scipy screenshot sdl secure-delete semantic-desktop session sidebar spell spl sse sse2 sse3 ssl ssse3 startup-notification stroke subversion svg sysfs tcpd theora thinkpad threads tiff timidity tk tools trayer truetype unicode usb utils vim-syntax vim-with-x vorbis webkit x264 xcb xcomposite xft xinerama xml xorg xrandr xulrunner xv xvid zlib" ALSA_CARDS="hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

x11-base/xorg-server-1.8.1-r1 was built with the following:
USE="ipv6 (multilib) nptl udev xorg -dmx -doc -hal -kdrive -minimal -static-libs -tslib"
LDFLAGS="-Wl,-O1 -Wl,-z,lazy"
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Fri May 21, 2010 5:37 pm    Post subject: Reply with quote

pstree will show you child processes.
Back to top
View user's profile Send private message
LonelyStar
Guru
Guru


Joined: 06 Dec 2005
Posts: 390

PostPosted: Mon May 24, 2010 5:37 pm    Post subject: Reply with quote

Hey,

It took a while, until the problem reproduced. But now it happened:
pstree output:

Code:

init-+-acpid
     |-6*[agetty]
     |-console-kit-dae---63*[{console-kit-da}]
     |-cupsd
     |-3*[dbus-daemon]
     |-2*[dbus-launch]
     |-dhcpcd
     |-gconfd-2
     |-gpm
     |-gvfsd
     |-kdm-+-X
     |     `-kdm---fvwm-+-2*[FvwmButtons]
     |                  |-FvwmCommandS
     |                  |-2*[FvwmEvent]
     |                  |-2*[FvwmIconMan]
     |                  |-FvwmPager
     |                  `-FvwmScript
     |-notification-da
     |-parcellite
     |-sshd
     |-syslog-ng---syslog-ng
     |-udevd---2*[udevd]
     |-urxvtd
     |-urxvtd---zsh---pstree
     |-wicd-+-dhcpcd
     |      `-wicd-monitor
     |-wicd-client
     |-xfce4-volumed---2*[{xfce4-volumed}]
     |-xfconfd
     `-xfsettingsd


I tried logging out, logging into KDE (X still taking 100% of one cpu) and got:

Code:

init-+-acpid
     |-6*[agetty]
     |-console-kit-dae---63*[{console-kit-da}]
     |-cupsd
     |-3*[dbus-daemon]
     |-2*[dbus-launch]
     |-dhcpcd
     |-gam_server
     |-gconfd-2
     |-gnome-keyring-d---2*[{gnome-keyring-}]
     |-gpm
     |-gvfsd
     |-kaccess
     |-kded4
     |-kdeinit4-+-gnome-do---mono---3*[{mono}]
     |          |-kio_trash
     |          |-klauncher
     |          |-ksmserver-+-kwin
     |          |           `-{ksmserver}
     |          |-nm-applet
     |          `-wicd-client
     |-kdm-+-X
     |     `-kdm---startkde---kwrapper4
     |-kglobalaccel
     |-klipper
     |-kmix
     |-knotify4---{knotify4}
     |-krunner-+-urxvt---zsh---pstree
     |         `-6*[{krunner}]
     |-nepomukserver-+-nepomukservices-+-virtuoso-t---4*[{virtuoso-t}]
     |               |                 `-5*[{nepomukservice}]
     |               |-nepomukservices---{nepomukservice}
     |               |-4*[nepomukservices]
     |               `-2*[{nepomukserver}]
     |-plasma-desktop
     |-sshd
     |-start_kdeinit
     |-syslog-ng---syslog-ng
     |-udevd---2*[udevd]
     |-3*[urxvtd]
     `-wicd-+-dhcpcd
            `-wicd-monitor


Any advise?

Thanks!
Nathan
Back to top
View user's profile Send private message
LonelyStar
Guru
Guru


Joined: 06 Dec 2005
Posts: 390

PostPosted: Wed May 26, 2010 2:40 pm    Post subject: Reply with quote

bump.

No one any Idea what I could do to further investigate this?
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Thu May 27, 2010 4:40 pm    Post subject: Reply with quote

Did you restart the X server?
Code:
eselect rc restart xdm
Back to top
View user's profile Send private message
LonelyStar
Guru
Guru


Joined: 06 Dec 2005
Posts: 390

PostPosted: Thu May 27, 2010 5:01 pm    Post subject: Reply with quote

Well, that always solves the problem for the moment. Until cpu of xorg-server goes up again ...
It also means that I have to close all applications.
Back to top
View user's profile Send private message
Iguana8649
n00b
n00b


Joined: 27 Jan 2005
Posts: 37

PostPosted: Thu May 27, 2010 11:08 pm    Post subject: Reply with quote

Try xrestop.

Can't guarantee it will work, but better than nothing though. Ebuild is x11-misc/xrestop
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Thu May 27, 2010 11:25 pm    Post subject: Reply with quote

Really always?

It's normal for akonadi to hog resources for a few minutes at startup but all smooths out again in a while.

Do you have desktop effects running? Any crazy applets?

Post your emerge --info so we can see what your box should be able to handle.
Back to top
View user's profile Send private message
LonelyStar
Guru
Guru


Joined: 06 Dec 2005
Posts: 390

PostPosted: Fri May 28, 2010 3:40 am    Post subject: Reply with quote

My emerge --info is in the original post.
Restarting xorg (for example by restarting xdm/kdm) always solves the problem when it occures.

Just logging out of the WM and logging in again does not help. I also tried logging into other WMs when the problem occured, to make sure my WM (fvwm-crystal) is not part of the problem - the high cpu usage stays.
Back to top
View user's profile Send private message
LonelyStar
Guru
Guru


Joined: 06 Dec 2005
Posts: 390

PostPosted: Fri May 28, 2010 5:58 pm    Post subject: Reply with quote

OK, I ran xrestop and get:
Code:


xrestop - Display: localhost:0
          Monitoring 30 clients. XErrors: 1
          Pixmaps:   40101K total, Other:     113K total, All:   40214K total

res-base Wins  GCs Fnts Pxms Misc   Pxm mem  Other   Total   PID Identifier   
0c00000     0    3    0    2    0    18900K     72B  18900K   ?   <unknown>
3000000    25   53    1   60  141     7164K      6K   7170K 23403 emacs find in files - Ixquick Web Search - Chromium
1800000     9   39    0    2   13     4733K      1K   4734K 22070 trayer
0000000     1    0    2    0   73     4725K      3K   4728K   ?   <unknown>
1a00000     6    3    1   90  131     2386K      4K   2391K 22124 skype
0a00000   207   28    2  101 2553     1142K     67K   1210K   ?   FVWM
1400000     2   37    0    9    8      540K      1K    541K   ?
1c00000     1    4    0    1   18      236K    552B    236K 22075 dzen title
1600000     2   37    1    9    5       94K      2K     96K   ?
3600000    10    6    1    5   64       69K      2K     72K 22079 urxvt
1200000    35   11    1    2   21       44K      2K     47K   ?   Desk 0
2e00000    15   48    1   20   52       28K      3K     32K 22271 claws-mail
3400000     5   57    1    6   53        9K      3K     12K 27099 emacs@SamZwo.tch.harvard.edu
1000000     1    4    0    2    5       11K    240B     11K   ?   FvwmButtons-Clock
2600000     2    3    0    2    8       10K    312B     10K   ?   FvwmScript-Clock
2200000     2    1    0    0  345        0B      8K      8K   ?   screensaver
0e00000     1    3    0    4    3        4K    168B      4K   ?   FvwmButtons-MainMenu
1e00000     5   38    0    1   24        4B      1K      1K 22080 parcellite
0200000     0    1    1    0    0        0B      1K      1K   ?   <unknown>
2800000     2    3    0    3   35        6B    960B    966B 22101 notification-daemon
2a00000     4   19    0    1   10        4B    792B    796B 22076 wicd-client.py
2000000     3    1    0    0    5        0B    216B    216B 22081 xfsettingsd
2400000     0    0    0    0    3        0B     72B     72B   ?   <unknown>
3a00000     1    1    0    0    0        0B     48B     48B   ?   VIM
3800000     1    1    0    0    0        0B     48B     48B   ?   xrestop
0400000     1    1    0    0    0        0B     48B     48B   ?   <unknown>
3200000     0    1    0    0    0        0B     24B     24B   ?   <unknown>
2c00000     0    1    0    0    0        0B     24B     24B   ?   <unknown>
0800000     0    1    0    0    0        0B     24B     24B   ?   <unknown>


I do not see any useful information, but I must admit I am not sure whatto look for.
Back to top
View user's profile Send private message
Iguana8649
n00b
n00b


Joined: 27 Jan 2005
Posts: 37

PostPosted: Fri May 28, 2010 9:59 pm    Post subject: Reply with quote

I'm assuming it's like top, those who are at the top use more resources. Try finding out what
Code:
0c00000     0    3    0    2    0    18900K     72B  18900K   ?   <unknown>

is. Maybe `sudo xrestop' helps to at least getting a PID and killing it (as usual, save your work first in case the system goes haywire), or equivalent in case you don't have sudo configured.



My `xrestop' just for comparison, on a Ubuntu system:
Code:
xrestop - Display: :0.0
          Monitoring 47 clients. XErrors: 0
          Pixmaps:   64066K total, Other:     235K total, All:   64301K total

res-base Wins  GCs Fnts Pxms Misc   Pxm mem  Other   Total   PID Identifier   
1c00000    47   34    0 4750 4883    21799K    116K  21915K  1688 plasma-desktop
4000000    19    2    0  768  823    18108K     19K  18128K  2951 amarok
4400000    24   52    1   75  166     8516K      6K   8523K  2541 google-chrome
4800000    23    3    0  158  213     2841K      5K   2846K  2948 konversation
1800000    72    1    0  120  254     2444K      7K   2452K  1683 kwin
-snip
Back to top
View user's profile Send private message
ThomasAdam
Guru
Guru


Joined: 20 Mar 2005
Posts: 448
Location: England

PostPosted: Fri May 28, 2010 10:46 pm    Post subject: Reply with quote

LonelyStar wrote:
Well, that always solves the problem for the moment. Until cpu of xorg-server goes up again ...
It also means that I have to close all applications.


I am surprised no one has done the obvious and ask for some logs -- can we see:

/var/log/Xorg.0.log

-- Thomas Adam
Back to top
View user's profile Send private message
LonelyStar
Guru
Guru


Joined: 06 Dec 2005
Posts: 390

PostPosted: Fri Jun 04, 2010 7:27 pm    Post subject: Reply with quote

Hi,

I am sorry for not answering in such a long time, but so far the problem did not occur again.
Thanks for the help so far.
If it comes back, I will come back :).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum