[Konsole-devel] [Bug 189756] Konsole: High CPU caused by e.g. mplayer or mencoder status updates

Semo fff at volny.cz
Fri Oct 30 18:28:16 UTC 2009


https://bugs.kde.org/show_bug.cgi?id=189756


Semo <fff at volny.cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fff at volny.cz




--- Comment #5 from Semo <fff volny cz>  2009-10-30 19:28:13 ---
Same problem (with mplayer) in konsole 4.3.1. It is quite common that konsole+X
consume two times more CPU than mplayer itself. With or without compositing,
with or without focus, "smooth fonts" or not, doesn't make any difference. Only
workaround is to minimize konsole window or switch to another tab in konsole
(or option -quiet for mplayer). Konsole 3.5.10 is not affect as well as xterm.

Test case 1 (Athlon64 3200 = 2.0GHz): top with 1s delay running in konsole
(LINES==54, COLUMNS==157) measured with top with 20s delay running in xterm.

 9869 semo      20   0  106m  39m  10m S  4.6  1.3  62:49.74 konsole            
 9765 root      20   0  158m  45m 3104 S  3.7  1.5 125:32.50 X                  
 9846 semo      20   0  309m  30m  15m R  2.1  1.0  56:39.29 kwin               
15536 semo      20   0  187m 132m  19m S  1.7  4.4  14:49.91 opera              
31500 semo      20   0  2696 1180  884 S  1.2  0.0   0:01.04 top

and xterm (with 1s top) measured by xterm (with 20s top)
 9846 semo      20   0  312m  30m  15m S  2.0  1.0  56:43.80 kwin               
 9765 root      20   0  165m  45m 3104 S  2.0  1.5 125:41.21 X                  
15536 semo      20   0  187m 132m  19m R  1.9  4.4  14:53.34 opera              
31532 semo      20   0  2696 1180  884 S  1.2  0.0   0:00.36 top                
 9850 semo      20   0  308m  38m  10m S  0.7  1.3  28:39.43 plasma-desktop     
 9855 semo      20   0  4340  884  348 S  0.6  0.0  20:11.51 ksysguardd         
31502 semo      20   0  9188 3872 2372 S  0.3  0.1   0:00.30 xterm

Test case 2: print string similar to mplayer 25 times per second (just like
mplayer) a see difference in CPU consuming when running in konsole and in
xterm.
=========================
#include <unistd.h>
void main(void) {
    for (;;) {
        usleep(40000);
        puts("A:   1.5 V:   1.5 A-V: -0.000 ct: -0.018  38/ 38 30%  7%  0.4% 4
0");
    }
}
=========================

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list