XServer memory usage: xrestop

Lubos Lunak l.lunak at suse.cz
Fri Jan 2 19:04:32 GMT 2004


Dne po 29. prosince 2003 12:38 Alexander Neundorf napsal(a):
> On Sunday 28 December 2003 23:38, Waldo Bastian wrote:
> > Hi,
> >
> > Just in time to make KDE 3.2 a lean mean desktop machine [1] a very nice
> > tool has been released to monitor the XServer memory usage of
> > applications.
> >
> > http://www.freedesktop.org/Software/xrestop
>
> Ok, I had a look at it.
>
> xrestop - Display: localhost:0
>           Monitoring 21 clients. XErrors: 0
>           Pixmaps:   15134K total, Other:     193K total, All:   15328K
> total
>
> res-base Wins  GCs Fnts Pxms Misc   Pxm mem  Other   Total   PID Identifier
> 1c00000     4   16    5   30    3     7181K      5K   7186K  1431 XMMS
> 2000000   225  124   12  278  181     3259K     24K   3284K  1431 file:/ -
> Konqueror
> 2600000     9   23    1   73    8     2264K      1K   2266K  1431 Untitled1
> - OpenOffice.org 1.1.0
> 0400000   236  126   11  246  155      901K     23K    924K  1431 Local
> Folders/kde-devel - KMail
> 0c00000    77   35    4  152  889      529K     27K    557K  1431 kwin
> 1200000    91   92    6  322  221      389K     15K    405K  1435 kicker
> ...
>
> What can I learn from it ?
> KDE apps in general seem to use a lot of graphic contexts and a lot of
> "wins". Is this a actually a problem ?

 (Disclaimer: Despite knowing quite a lot about X, I don't know that much 
about X server internals, so I could be wrong.)
 I think the only important column is pixmaps, and perhaps fonts. Especially 
if you look at the pixmap memory and total memory columns, it's almost the 
same.

> If yes, how can this be improved ? Or is it all deep inside Qt ?
> konqy uses some of pixmap memory, xmms uses much more, OOo writer seems to
> use less. I guess the pixmap memory s used for the icons ? Anything else ?
> (styles, images in html pages, ...)
>
> Bye
> Alex

-- 
 Lubos Lunak
 KDE Developer





More information about the kde-core-devel mailing list