Bug 231019

Summary: Background threads block typing, low responsiveness
Product: [Unmaintained] kmail Reporter: ralfgesellensetter <ralf>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bjoern
Priority: NOR    
Version: 1.12.4   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description ralfgesellensetter 2010-03-16 20:39:07 UTC
Version:           1.12.4 (using 4.3.4 (KDE 4.3.4), Debian packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.32-3.slh.3-sidux-686

For a week or so, kmail turned very busy in the background.
I hardly can read messages on the mailing lists, because I have to wait 10 seconds
before the message body is displayed (after clicking on its header).

Kmail eats up 14% of my CPU (AMD 2400+) all the time, how can I find out what background threads/processes slow down the GUI?

Regards
Ralf
Comment 1 ralfgesellensetter 2010-03-16 20:46:09 UTC
dpkg -l xserv* |grep ii
ii  xserver-common                                  2:1.7.5-1                       common files used by various X servers
ii  xserver-xorg                                    1:7.5+5                         the X.Org X server                    
ii  xserver-xorg-core                               2:1.7.5-1                       Xorg X server - core server           
ii  xserver-xorg-input-all                          1:7.5+5                         the X.Org X server -- input driver metapacka
ii  xserver-xorg-input-evdev                        1:2.3.2-4                       X.Org X server -- evdev input driver        
ii  xserver-xorg-input-mouse                        1:1.5.0-1                       X.Org X server -- mouse input driver        
ii  xserver-xorg-input-synaptics                    1.2.1-1                         Synaptics TouchPad driver for X.Org server  
ii  xserver-xorg-input-vmmouse                      1:12.6.5-3                      X.Org X server -- VMMouse input driver to us
ii  xserver-xorg-input-wacom                        0.10.3+20100109-1               X.Org X server -- Wacom input driver        
ii  xserver-xorg-video-all                          1:7.5+5                         the X.Org X server -- output driver metapack
ii  xserver-xorg-video-apm                          1:1.2.2-1                       X.Org X server -- APM display driver        
ii  xserver-xorg-video-ark                          1:0.7.2-1                       X.Org X server -- ark display driver        
ii  xserver-xorg-video-ati                          1:6.12.191-1                    X.Org X server -- ATI display driver wrapper
ii  xserver-xorg-video-chips                        1:1.2.2-1                       X.Org X server -- Chips display driver      
ii  xserver-xorg-video-cirrus                       1:1.3.2-1                       X.Org X server -- Cirrus display driver     
ii  xserver-xorg-video-fbdev                        1:0.4.1-2                       X.Org X server -- fbdev display driver      
ii  xserver-xorg-video-geode                        2.11.7-1                        X.Org X server -- Geode GX2/LX display drive
ii  xserver-xorg-video-i128                         1:1.3.3-1                       X.Org X server -- i128 display driver       
ii  xserver-xorg-video-i740                         1:1.3.2-1                       X.Org X server -- i740 display driver       
ii  xserver-xorg-video-intel                        2:2.9.1-2                       X.Org X server -- Intel i8xx, i9xx display d
ii  xserver-xorg-video-mach64                       6.8.2-2                         X.Org X server -- ATI Mach64 display driver
ii  xserver-xorg-video-mga                          1:1.4.11.dfsg-2                 X.Org X server -- MGA display driver
ii  xserver-xorg-video-neomagic                     1:1.2.4-2                       X.Org X server -- Neomagic display driver
ii  xserver-xorg-video-nv                           1:2.1.17-1                      X.Org X server -- NV display driver
ii  xserver-xorg-video-openchrome                   1:0.2.904+svn827-1              X.Org X server -- VIA display driver
ii  xserver-xorg-video-r128                         6.8.1-2                         X.Org X server -- ATI r128 display driver
ii  xserver-xorg-video-radeon                       1:6.12.4-3                      X.Org X server -- ATI Radeon display driver
ii  xserver-xorg-video-radeonhd                     1.3.0-2                         X.Org X server -- AMD/ATI r5xx, r6xx display
ii  xserver-xorg-video-rendition                    1:4.2.3-1                       X.Org X server -- Rendition display driver
ii  xserver-xorg-video-s3                           1:0.6.3-1                       X.Org X server -- legacy S3 display driver
ii  xserver-xorg-video-s3virge                      1:1.10.4-1                      X.Org X server -- S3 ViRGE display driver
ii  xserver-xorg-video-savage                       1:2.3.1-1                       X.Org X server -- Savage display driver
ii  xserver-xorg-video-siliconmotion                1:1.7.3-1                       X.Org X server -- SiliconMotion display driv
ii  xserver-xorg-video-sis                          1:0.10.2-1                      X.Org X server -- SiS display driver
ii  xserver-xorg-video-sisusb                       1:0.9.3-1                       X.Org X server -- SiS USB display driver
ii  xserver-xorg-video-tdfx                         1:1.4.3-1                       X.Org X server -- tdfx display driver
ii  xserver-xorg-video-trident                      1:1.3.3-1                       X.Org X server -- Trident display driver
ii  xserver-xorg-video-tseng                        1:1.2.3-1                       X.Org X server -- Tseng display driver
ii  xserver-xorg-video-v4l                          1:0.2.0-4                       X.Org X server -- Video 4 Linux display driv
ii  xserver-xorg-video-vesa                         1:2.3.0-1                       X.Org X server -- VESA display driver
ii  xserver-xorg-video-vmware                       1:10.16.9-1                     X.Org X server -- VMware display driver
ii  xserver-xorg-video-voodoo                       1:1.2.3-1                       X.Org X server -- Voodoo display driver


glxinfo 
name of display: :0.0    
IRQ's not enabled, falling back to busy waits: 2 0
display: :0  screen: 0                            
direct rendering: Yes                             
server glx vendor string: SGI                     
server glx version string: 1.2                    
server glx extensions:                            
    GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,     
    GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGIS_multisample,     
    GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group         
client glx vendor string: Mesa Project and SGI                                
client glx version string: 1.4                                                
client glx extensions:                                                        
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,    
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,     
    GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control,                          
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control,     
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,      
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,                
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap                 
GLX version: 1.2                                                              
GLX extensions:                                                               
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,    
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,     
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_SGI_make_current_read, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,                 
    GLX_SGIX_visual_select_group                                               
OpenGL vendor string: Tungsten Graphics, Inc.                                  
OpenGL renderer string: Mesa DRI R100 (RV100 5159) 20090101 AGP 4x x86/MMX+/3DNow!+/SSE NO-TCL
OpenGL version string: 1.3 Mesa 7.6.1                                                         
OpenGL extensions:                                                                            
    GL_ARB_draw_buffers, GL_ARB_imaging, GL_ARB_multisample,                                  
    GL_ARB_multitexture, GL_ARB_texture_border_clamp,                                         
    GL_ARB_texture_compression, GL_ARB_texture_cube_map,                                      
    GL_ARB_texture_env_add, GL_ARB_texture_env_combine,                                       
    GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3,                                     
    GL_ARB_texture_mirrored_repeat, GL_ARB_texture_rectangle,                                 
    GL_ARB_transpose_matrix, GL_ARB_vertex_buffer_object, GL_ARB_window_pos,                  
    GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_logic_op,                      
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_compiled_vertex_array,                 
    GL_EXT_convolution, GL_EXT_copy_texture, GL_EXT_draw_range_elements,                      
    GL_EXT_fog_coord, GL_EXT_histogram, GL_EXT_multi_draw_arrays,                             
    GL_EXT_packed_depth_stencil, GL_EXT_packed_pixels, GL_EXT_polygon_offset,                 
    GL_EXT_rescale_normal, GL_EXT_secondary_color,                                            
    GL_EXT_separate_specular_color, GL_EXT_stencil_wrap, GL_EXT_subtexture,                   
    GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_edge_clamp,                              
    GL_EXT_texture_env_add, GL_EXT_texture_env_combine,                                       
    GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic,                               
    GL_EXT_texture_lod_bias, GL_EXT_texture_mirror_clamp,                                     
    GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_vertex_array,                     
    GL_APPLE_packed_pixels, GL_ATI_texture_env_combine3,                                      
    GL_ATI_texture_mirror_once, GL_IBM_multimode_draw_arrays,                                 
    GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat,                                    
    GL_MESA_ycbcr_texture, GL_MESA_window_pos, GL_NV_blend_square,                            
    GL_NV_light_max_exponent, GL_NV_texture_rectangle,                                        
    GL_NV_texgen_reflection, GL_OES_read_format, GL_SGI_color_matrix,                         
    GL_SGI_color_table, GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp,                
    GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_SUN_multi_draw_arrays                 

8 GLX Visuals
   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x21 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x22 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x9d 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x9e 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x9f 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0xa0 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0xa1 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0xa2 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow

8 GLXFBConfigs:
   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x95  0 tc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x96  0 tc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x97  0 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x98  0 tc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x99  0 dc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x9a  0 dc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x9b  0 dc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x9c  0 dc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
Comment 2 ralfgesellensetter 2010-03-16 20:50:08 UTC
# dmesg |grep radeon
[drm] radeon defaulting to userspace modesetting.
[drm] Initialized radeon 1.31.0 20080528 for 0000:01:00.0 on minor 0
platform radeon_cp.0: firmware: requesting radeon/R100_cp.bin


# modinfo radeon
filename:       /lib/modules/2.6.32-3.slh.3-sidux-686/kernel/drivers/gpu/drm/radeon/radeon.ko
license:        GPL and additional rights                                                    
description:    ATI Radeon                                                                   
author:         Gareth Hughes, Keith Whitwell, others.                                       
firmware:       radeon/R520_cp.bin                                                           
firmware:       radeon/RS600_cp.bin                                                          
firmware:       radeon/RS690_cp.bin                                                          
firmware:       radeon/R420_cp.bin                                                           
firmware:       radeon/R300_cp.bin                                                           
firmware:       radeon/R200_cp.bin                                                           
firmware:       radeon/R100_cp.bin                                                           
firmware:       radeon/RV710_me.bin                                                          
firmware:       radeon/RV710_pfp.bin                                                         
firmware:       radeon/RV730_me.bin                                                          
firmware:       radeon/RV730_pfp.bin                                                         
firmware:       radeon/RV770_me.bin                                                          
firmware:       radeon/RV770_pfp.bin                                                         
firmware:       radeon/RS780_me.bin                                                          
firmware:       radeon/RS780_pfp.bin                                                         
firmware:       radeon/RV670_me.bin                                                          
firmware:       radeon/RV670_pfp.bin                                                         
firmware:       radeon/RV635_me.bin                                                          
firmware:       radeon/RV635_pfp.bin                                                         
firmware:       radeon/RV620_me.bin                                                          
firmware:       radeon/RV620_pfp.bin                                                         
firmware:       radeon/RV630_me.bin                                                          
firmware:       radeon/RV630_pfp.bin                                                         
firmware:       radeon/RV610_me.bin                                                          
firmware:       radeon/RV610_pfp.bin                                                         
firmware:       radeon/R600_me.bin                                                           
firmware:       radeon/R600_pfp.bin                                                          
license:        GPL                                                                          
firmware:       radeon/R520_cp.bin                                                           
firmware:       radeon/RS600_cp.bin                                                          
firmware:       radeon/RS690_cp.bin                                                          
firmware:       radeon/R420_cp.bin                                                           
firmware:       radeon/R300_cp.bin                                                           
firmware:       radeon/R200_cp.bin                                                           
firmware:       radeon/R100_cp.bin                                                           
firmware:       radeon/RV710_me.bin                                                          
firmware:       radeon/RV710_pfp.bin                                                         
firmware:       radeon/RV730_me.bin                                                          
firmware:       radeon/RV730_pfp.bin                                                         
firmware:       radeon/RV770_me.bin                                                          
firmware:       radeon/RV770_pfp.bin                                                         
firmware:       radeon/RS780_me.bin                                                          
firmware:       radeon/RS780_pfp.bin                                                         
firmware:       radeon/RV670_me.bin                                                          
firmware:       radeon/RV670_pfp.bin                                                         
firmware:       radeon/RV635_me.bin                                                          
firmware:       radeon/RV635_pfp.bin                                                         
firmware:       radeon/RV620_me.bin                                                          
firmware:       radeon/RV620_pfp.bin
firmware:       radeon/RV630_me.bin
firmware:       radeon/RV630_pfp.bin
firmware:       radeon/RV610_me.bin
firmware:       radeon/RV610_pfp.bin
firmware:       radeon/R600_me.bin
firmware:       radeon/R600_pfp.bin
srcversion:     E592C04FA033DEED3DE2F5A
depends:        drm,drm_kms_helper,ttm,i2c-core,i2c-algo-bit
vermagic:       2.6.32-3.slh.3-sidux-686 SMP preempt mod_unload modversions 686
parm:           no_wb:Disable AGP writeback for scratch registers (int)
parm:           modeset:Disable/Enable modesetting (int)
parm:           dynclks:Disable/Enable dynamic clocks (int)
parm:           r4xx_atom:Enable ATOMBIOS modesetting for R4xx (int)
parm:           vramlimit:Restrict VRAM for testing (int)
parm:           agpmode:AGP Mode (-1 == PCI) (int)
parm:           gartsize:Size of PCIE/IGP gart to setup in megabytes (32,64, etc)
 (int)
parm:           benchmark:Run benchmark (int)
parm:           test:Run tests (int)
parm:           connector_table:Force connector table (int)
parm:           tv:TV enable (0 = disable) (int)
Comment 3 Björn Ruberg 2010-03-17 10:09:20 UTC
Sound as if you have a problem with index regeneration starting again and again

*** This bug has been marked as a duplicate of bug 166653 ***
Comment 4 ralfgesellensetter 2010-03-17 16:30:02 UTC
Might also have been an issue of radeon X driver - anyway, today it goes smoother (after upgrading some ati related stuff) after all:

diff  on "dpkg -l xserv* |grep ii":

13c13,14
< ii  xserver-xorg-video-ati                          1:6.12.191-1                   X.Org X server -- ATI display driver wrapper
---
> ii  xserver-xorg-video-ati                          1:6.12.192-1                    X.Org X server -- AMD/ATI display driver wra
> ii  xserver-xorg-video-ati-dbg                      1:6.12.192-1                    X.Org X server -- AMD/ATI display driver wra
21a23
> ii  xserver-xorg-video-mach64-dbg                   6.8.2-2                         X.Org X server -- ATI display driver (debugg
27c29,31
< ii  xserver-xorg-video-radeon                       1:6.12.4-3                     X.Org X server -- ATI Radeon display driver
---
> ii  xserver-xorg-video-r128-dbg                     6.8.1-2                         X.Org X server -- ATI r128 display driver (d
> ii  xserver-xorg-video-radeon                       1:6.12.192-1                    X.Org X server -- AMD/ATI Radeon display dri
> ii  xserver-xorg-video-radeon-dbg                   1:6.12.192-1                    X.Org X server -- AMD/ATI Radeon display dri
28a33
> ii  xserver-xorg-video-radeonhd-dbg                 1.3.0-2                         X.Org X server -- AMD/ATI r5xx, r6xx display

But maybe you were right, and eventually indices are fixed.

I dare not rebuild indices, because mails that are tagged as important would lose that tag and partly be deleted (because expired by local policy).