xf86-video-intel memory leakage

Stefano Avallone stavallo at unina.it
Thu Feb 12 01:29:22 PST 2009


On Thursday 12 February 2009 10:26:14 Stefano Avallone wrote:
> On Monday 09 February 2009 20:28:14 Johannes Engel wrote:
> > Jesse Barnes wrote:
> > > Interesting, thanks for trying to narrow it down.  I don't see anything
> > > on re-review that would cause huge increases in the amount of memory
> > > used, though the additional alignment we apply in that patch will
> > > increase things somewhat, so might make the problem happen faster.  Are
> > > you using UXA or EXA?
> >
> > You are probably right here, Jesse: Letting Xorg run with UXA on my
> > GM945 turns out to show a similar problem after a couple of hours or
> > similar.
> > sudo lsof | grep "drm mm object" | wc -l
> > shows the incredible number of 2407...
>
> I have a different issue, but I would also call it a memory leakage. I am
> on GM965 using KDE4 with DRI2. I tried both with debian experimental
> packages (xserver 1.5.99.901, mesa 7.3, libdrm 2.4.4+git+20090205) and with
> self- compiled stack from git master as of yesterday. The kernel is from
> airlied's drm-fixes branch up to commit
> d2f59357700487a8b944f4f7777d1e97cf5ea2ed ("drm/i915: select framebuffer
> support automatically").
>
> After a fresh boot and login into KDE4, top shows that Xorg uses 2.1% of
> memory (2 GB). Attached is what xrestop shows (xrestop_2.1_568020k, where
> 568020k is the total memory usage as shown by top). Then, I launch some
> applications and, after a couple of hours, close all of them and top shows
> that Xorg now uses 18.1% of memory. Attached is also what xrestop shows
> now.
>
> It looks like that closing a KDE application does not free memory used by
> Xorg (as shown by top). Also, switching between applications (especially
> using composite effects like present windows) causes an increase in the
> memory usage of Xorg. I have to say that I have another machine with a
> similar setup (except the kernel which is a 2.6.26 kernel) with an ATI card
> (using radeon driver) that does not show such behavior.
>
> Also, when I resume from a suspend to disk, top shows that some swap memory
> is used (while before suspending the swap memory was not used), e.g.,
> 791604k. The swap memory used seems to increase after subsequent
> suspend/resume cycles.
>
> If matters, sudo lsof | grep "drm mm object" | wc -l reports 9944...
>
> Any hint how to debug further and provide more information?
>
> thanks,
> Stefano
>
>

forgot the attachments, sorry :-)

>
>
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg

-------------- next part --------------
0 - Qt-subapplication ( PID: 6862 ):                            
        pixmap bytes  : 13189150                                
        other bytes   : ~10984                                  
        total bytes   : ~13200134                               
1 - <unknown> ( PID:  ?   ):                                    
        pixmap bytes  : 4096000                                 
        other bytes   : ~4544                                   
        total bytes   : ~4100544                                
2 - KWin ( PID: 6855 ):                                         
        pixmap bytes  : 1933362                                 
        other bytes   : ~4264                                   
        total bytes   : ~1937626                                
3 - Yakuake ( PID: 6900 ):                                      
        pixmap bytes  : 1366934                                 
        other bytes   : ~2392                                   
        total bytes   : ~1369326                                
4 - <unknown> ( PID:  ?   ):                                    
        pixmap bytes  : 207920                                  
        other bytes   : ~6520                                   
        total bytes   : ~214440                                 
5 - <unknown> ( PID:  ?   ):                                    
        pixmap bytes  : 173912                                  
        other bytes   : ~2056                                   
        total bytes   : ~175968                                 
6 - klipper ( PID: 6907 ):                                      
        pixmap bytes  : 127720                                  
        other bytes   : ~1792                                   
        total bytes   : ~129512                                 
7 - kmix ( PID: 6905 ):                                         
        pixmap bytes  : 109032                                  
        other bytes   : ~1840                                   
        total bytes   : ~110872                                 
8 - kwalletmanager ( PID: 6967 ):                               
        pixmap bytes  : 73528                                   
        other bytes   : ~1624                                   
        total bytes   : ~75152                                  
9 - korgac ( PID: 6911 ):                                       
        pixmap bytes  : 30384                                   
        other bytes   : ~1384                                   
        total bytes   : ~31768                                  
10 - Run Command ( PID: 6901 ):                                 
        pixmap bytes  : 2048                                    
        other bytes   : ~1408                                   
        total bytes   : ~3456                                   
11 - Document Print Status ( PID: 6902 ):                       
        pixmap bytes  : 80                                      
        other bytes   : ~1408                                   
        total bytes   : ~1488                                   
12 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~1048                                   
        total bytes   : ~1048                                   
13 - system-config-printer-applet ( PID: 6903 ):                
        pixmap bytes  : 0                                       
        other bytes   : ~192                                    
        total bytes   : ~192                                    
14 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~144                                    
        total bytes   : ~144                                    
15 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~96                                     
        total bytes   : ~96                                     
16 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~96                                     
        total bytes   : ~96                                     
17 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~96                                     
        total bytes   : ~96                                     
18 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~96                                     
        total bytes   : ~96                                     
19 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~96                                     
        total bytes   : ~96                                     
20 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~96                                     
        total bytes   : ~96                                     
21 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~96                                     
        total bytes   : ~96                                     
22 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~96                                     
        total bytes   : ~96                                     
23 - xrestop ( PID:  ?   ):                                     
        pixmap bytes  : 0                                       
        other bytes   : ~48                                     
        total bytes   : ~48                                     

-------------- next part --------------
0 - Qt-subapplication ( PID: 6862 ):                            
        pixmap bytes  : 17551820                                
        other bytes   : ~15016                                  
        total bytes   : ~17566836                               
1 - KWin ( PID: 6855 ):                                         
        pixmap bytes  : 5702644                                 
        other bytes   : ~6400                                   
        total bytes   : ~5709044                                
2 - <unknown> ( PID:  ?   ):                                    
        pixmap bytes  : 4096000                                 
        other bytes   : ~4712                                   
        total bytes   : ~4100712                                
3 - Yakuake ( PID: 6900 ):                                      
        pixmap bytes  : 1474170                                 
        other bytes   : ~3160                                   
        total bytes   : ~1477330                                
4 - <unknown> ( PID:  ?   ):                                    
        pixmap bytes  : 190000                                  
        other bytes   : ~6400                                   
        total bytes   : ~196400                                 
5 - <unknown> ( PID:  ?   ):                                    
        pixmap bytes  : 173912                                  
        other bytes   : ~2056                                   
        total bytes   : ~175968                                 
6 - klipper ( PID: 6907 ):                                      
        pixmap bytes  : 152296                                  
        other bytes   : ~1888                                   
        total bytes   : ~154184                                 
7 - kmix ( PID: 6905 ):                                         
        pixmap bytes  : 108064                                  
        other bytes   : ~1840                                   
        total bytes   : ~109904                                 
8 - kwalletmanager ( PID: 6967 ):                               
        pixmap bytes  : 60728                                   
        other bytes   : ~1552                                   
        total bytes   : ~62280                                  
9 - korgac ( PID: 6911 ):                                       
        pixmap bytes  : 30384                                   
        other bytes   : ~1384                                   
        total bytes   : ~31768                                  
10 - Run Command ( PID: 6901 ):                                 
        pixmap bytes  : 5781                                    
        other bytes   : ~1696                                   
        total bytes   : ~7477                                   
11 - Document Print Status ( PID: 6902 ):                       
        pixmap bytes  : 80                                      
        other bytes   : ~1408                                   
        total bytes   : ~1488                                   
12 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~1048                                   
        total bytes   : ~1048                                   
13 - system-config-printer-applet ( PID: 6903 ):                
        pixmap bytes  : 0                                       
        other bytes   : ~192                                    
        total bytes   : ~192                                    
14 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~144                                    
        total bytes   : ~144                                    
15 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~96                                     
        total bytes   : ~96                                     
16 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~96                                     
        total bytes   : ~96                                     
17 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~96                                     
        total bytes   : ~96                                     
18 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~96                                     
        total bytes   : ~96                                     
19 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~96                                     
        total bytes   : ~96                                     
20 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~96                                     
        total bytes   : ~96                                     
21 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~96                                     
        total bytes   : ~96                                     
22 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~96                                     
        total bytes   : ~96                                     
23 - <unknown> ( PID:  ?   ):                                   
        pixmap bytes  : 0                                       
        other bytes   : ~48                                     



More information about the xorg mailing list