why does KDE use a lot of Memory??

Howard Coles Jr. dhcolesj at comcast.net
Wed May 4 03:04:47 BST 2005


On Tuesday 03 May 2005 08:20 am, Denis Vlasenko wrote:
> On Tuesday 03 May 2005 15:57, Jes Hall wrote:
> > On Tue, 3 May 2005, YuChan Park wrote:
> > > Hello Kders.. :)
> > >
> > > My system is running on KDE 3.4.0 and Fedora 3.
> > >
> > > KDE isn't slow but obtain a lot of system memory.
> > >
> > > Need KDE a huge memory for running?
> >
> > The way Linux manages memory is a little different to other operating
> > sytems, especially Windows. These links have a lot of information about
> > it:
> >
> > http://forums.gentoo.org/viewtopic.php?t=175419
> > http://developer.kde.org/documentation/other/shared_memory.html
> >
> > Memory usage reported in top can be very misleading. As long as you're
> > not swapping out excessively, having a lot of memory in use is not a bad
> > thing, especially if everything is still responsive and doen't seem slow
>
> You are implying that KDE does not excessively eats memory.
>
> I think you will change your opinion if you boot your box with mem=128M
> kernel parameter and work with that setting for several days.
>
> Use this script (w_process):
> #!/bin/sh
> watch -d -n3 'pmap "'"$1"'" | grep "^[0-9a-f][0-9a-f]* " | sort -r -t " "
> -k2,999 | head -20'
>
> and pick any KDE process to watch. For example, my KMail:
>
> # w_process 1884
>
> 0825c000    12684K rwxp [heap]
> 40cfb000     6180K r-xp
> /.share/usr/app/qt-x11-free-3.2.3/lib/libqt-mt.so.3.2.3 4062f000     2612K
> r-xp /.share/usr/app/kde-3.1.4/lib/libkio.so.4.1.0 40013000     2584K r-xp
> /.share/usr/app/kde-3.1.4/lib/libkhtml.so.4.1.0 408d5000     2092K r-xp
> /.share/usr/app/kde-3.1.4/lib/libkdeui.so.4.1.0 08048000     2040K r-xp
> /.share/usr/app/kde-3.1.4/bin/kmail
> 40b1c000     1412K r-xp /.share/usr/app/kde-3.1.4/lib/libkdecore.so.4.1.0
> 416b7000     1080K r-xp /app/glibc-2.3.2/lib/libc-2.3.2.so
> 41498000      752K r-xp /.share/usr/X11R6-4.4.0/lib/libX11.so.6.2
> 4049c000      744K r-xp
> /.share/usr/app/kde-3.1.4/lib/libkdenetwork.so.2.0.0 ...
>
> [heap] is basically how much memory was malloc()ed.
>
> It's KDE 3.1.4. I am interested how much KDE 3.4 eats.
> --
> vda

Yes, that is exactly what he's saying.  If you're running KDE on a machine 
with only 128 MB of memory as I am with another box here, you'll find that if 
you run "xosview" for example will show that the same percentage of RAM is 
used on a 128 MB machine as is used on a machine with 512 MB of RAM.  Why??  
because KDE uses shared code.  And what's interesting is that if you fire up 
a  whole new session of KDE that swapping may increase some, but not nearly 
as much as you would think

-- 

See Ya'
Howard Coles Jr.
John 3:16!
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list