Bug#593572: xorg: Xorg consumes about 12% of CPU when gkrellm running and you switch from X to console
Package: xorg
Version: 1:7.5+6
Severity: normal
when I am running gkrellm in Xorg and then switch from Xorg to console,
Xorg consumes about 12 % of CPU.
This happens when gkrellm or firefox displaying web page with flash is
running. I tried the same with application like mplayer or vlc and
problem did not occur. Moreover when I run only mplayer playing some
video and I switch to console, Xorg consumes nearly no CPU time.
When I am in Xorg, gkrellm runs OK, the problem occurs only when I
switch from Xorg to console. Similarly with flash. In case of gkrellm
running, Xorg consumes about 2% of CPU when in Xorg and 12% when in
console. In case of flash, Xorg consumes about 4% of CPU when switched
to Xorg and 24% when switched to console. This CPU usage is
approximately same all the time I am switched to console.
straces of gkrellm seems to be same whether I am in Xorg or in console.
So I tried to strace Xorg process. I don't know what to look for, but
here are some statistics if you are interested.
I ran strace on Xorg for 60 seconds with and without gkrellm running:
without gkrellm:
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
63.27 0.000310 0 3242 ioctl
18.57 0.000091 0 394 setitimer
11.02 0.000054 0 392 195 read
7.14 0.000035 0 635 clock_gettime
0.00 0.000000 0 61 munmap
0.00 0.000000 0 197 select
0.00 0.000000 0 136 writev
------ ----------- ----------- --------- --------- ----------------
100.00 0.000490 5057 195 total
with gkrellm running:
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
99.71 8.556992 87 98452 ioctl
0.28 0.024115 23 1065 select
0.00 0.000294 0 2130 setitimer
0.00 0.000126 0 1726 836 read
0.00 0.000113 0 2504 clock_gettime
0.00 0.000104 2 61 munmap
0.00 0.000060 0 195 writev
0.00 0.000000 0 244 6 sigreturn
------ ----------- ----------- --------- --------- ----------------
100.00 8.581804 106377 842 total
I counted ioctl request codes:
ioctl request code gkrellm not running gkrellm running
------------------ ------------------- ---------------
0xc00c6466 181 1345
0xc010645b 60 60
0xc020645e 60 65
0x400c645f 1440 48858
0x40046460 1440 48062
0x40086409 61 61
You can find whole straces in
http://coulomb.farm.particle.cz/~elias/bug/ if you are interested.
There is also my xorg.conf and some Xorg.log files.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=sk_SK.UTF-8, LC_CTYPE=sk_SK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages xorg depends on:
ii gnome-terminal [x-terminal-em 2.30.2-1 The GNOME terminal emulator applic
ii libgl1-mesa-dri 7.7.1-3 A free implementation of the OpenG
ii libgl1-mesa-glx [libgl1] 7.7.1-3 A free implementation of the OpenG
ii libglu1-mesa 7.7.1-3 The OpenGL utility library (GLU)
ii x11-apps 7.5+5 X applications
ii x11-session-utils 7.5+1 X session utilities
ii x11-utils 7.5+4 X11 utilities
ii x11-xfs-utils 7.4+1 X font server utilities
ii x11-xkb-utils 7.5+5 X11 XKB utilities
ii x11-xserver-utils 7.5+1+b1 X server utilities
ii xauth 1:1.0.4-1 X authentication utility
ii xfonts-100dpi 1:1.0.1 100 dpi fonts for X
ii xfonts-75dpi 1:1.0.1 75 dpi fonts for X
ii xfonts-base 1:1.0.1 standard fonts for X
ii xfonts-scalable 1:1.0.1-1 scalable fonts for X
ii xfonts-utils 1:7.5+2 X Window System font utility progr
ii xinit 1.2.0-2 X server initialisation tool
ii xkb-data 1.8-1 X Keyboard Extension (XKB) configu
ii xorg-docs-core 1:1.5-1 Core documentation for the X.org X
ii xserver-xorg 1:7.5+6 the X.Org X server
ii xterm [x-terminal-emulator] 261-1 X terminal emulator
xorg recommends no packages.
Versions of packages xorg suggests:
ii xorg-docs 1:1.5-1 Miscellaneous documentation for th
-- no debconf information
Reply to: