[KDE Dot News]
 faq
 flatforty
 contribute
 subscribe
 configure
 search
 rdf

 main


  An Analysis of KDE Memory Usage
Developer Posted by Lubos Lunak on Thursday 20/Sep/2001, @04:03
from the optimize-em-all dept.
I was recently hired by SuSE to focus on optimizing KDE, and as part of my work, I have written an analysis of KDE memory usage based on Waldo Bastian's previous paper concerning GNU/Linux linker issues and KDE startup-performance. As it turns out, the linker issues examined by Waldo do indeed have an effect on the memory usage of C++ applications compiled and linked under GNU/Linux. The most important number from this paper: About 650KB of memory wasted per KDE application not launched via KDE Init. I have contacted the GCC/binutils developers with this information along with some suggestions, and there has already been one response from Jakub Jelinek (of Red Hat), developer of the prelinker tool. Another mail has been sent to kde-core-devel with a suggestion as to how we could probably deal with the issue until a full GCC/binutils-based solution is available.


<  |  >

 

  Related Links
 ·   Articles on Developer
 ·   Also by Lubos Lunak
 ·   Contact author

Thread Threshold:

The Fine Print: The following comments are owned by whomever posted them.
( Reply )

Over 40 comments listed. Printing out index only.
Non-GNU users
by Loranga on Thursday 20/Sep/2001, @04:55
How will this affect us non-GNU users? We who don't use GNU ld, binutils, glibc and so on. Will anything be done to increase speed/decrease memory usage for non-GNU platforms? Will objprelink be available for Sparc?

Lots of questions :) Hope you don't mind if a question is a little bit stupid, I don't have that much technical knowledge.
[ Reply To This | View ]
What os/kernel?
by Erik Hensema on Thursday 20/Sep/2001, @05:13
What kernel did you use to test test this? Linux 2.4.x is notorious for reporting wrong values for SHARED. Rik van Riel seems to be working on a patch which will solve this (and many, many other) problems but AFIAK it isn't merged yet.
[ Reply To This | View ]
check memory on solaris or HP-UX but NOT linux
by john jones on Thursday 20/Sep/2001, @06:28
please check the memory results on solaris or HP-UX before going ahead with this mainly because I dont completely trust linux to report the right results.
(would you want more than one judge in a race ?)

there are free tools from both SUN and HP to do this and GCC is supported on both platforms

regards

john jones
[ Reply To This | View ]
Alternatives?
by NO on Thursday 20/Sep/2001, @06:37
So for us linux (and other gnu) users this seems like a problem with
gcc and the linker.
Are there any alternativ compiler linker and ld.so that can be used
on Linux ?
[ Reply To This | View ]
So whats the problem
by minty on Thursday 20/Sep/2001, @11:23
From a users point of view, I dont see what whats the big deal with 650 KB wasted per application. Anyone with a system configued with only little memory woud not be using KDE in the first place, they'd be using a more Spartin window manager or none at all right. I rather the focus be on maximizing speed instead of maximizing memory usage. Perhaps the two are correlated,I don't know, just my thoughts as a KDE user, and a guy with 512 Megs of RAM
[ Reply To This | View ]
SuSE is hiring!
by ac on Thursday 20/Sep/2001, @11:25
Nice to hear that SuSE is still hiring people to do innovative things.
Hopefully it will make KDE3 a little bit snappier ( there isnt a lot left
to improve judging from Win2ks speed )
[ Reply To This | View ]
Other optimizing tips
by Stefan Heimers on Thursday 20/Sep/2001, @13:59
You might also want to look at this page:

http://www.kosta.ch/~stefanh/speedup/

And I am looking for corrections or additions to these pages.

Bye,
 Stefan
[ Reply To This | View ]
KDE memory & cpu usage
by Hervé PARISSI on Friday 21/Sep/2001, @01:44
It doesn't require that much to discover that KDE works badly with 64MB of RAM ! Windows 2000 works better than Linux/KDE on a Pentium 200 Mhz with 64MB of RAM !
The main points that should be addressed (both for a whole Linux distro and KDE) are really memory usage and speed, unless people won't start using Linux/BSD instead of crappy Windows.
[ Reply To This | View ]
So, how long till we see a real solution?
by Simon on Friday 21/Sep/2001, @11:14
As the title says, approxiately how long until we will see a proper solution to the problem? Are we talking months? years? what? How long will it take to fix/optimise gcc and the linker?

--
Simon
[ Reply To This | View ]
The Fine Print: The previous comments are owned by whomever posted them.
( Reply )

  "My hobbies include, well, coding... and uhm... that's about it." -- Daniel M. Duley
KDE®, "K Desktop Environment", "KDE Dot News", "got the dot?" and the KDE Logo® are trademarks or registered trademarks of KDE e.V. in the European Union, the United States and other countries. All other trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the poster. The rest: Copyright © 2000-2008 KDE e.V. for The KDE Project. For further information or comments on this site, please contact the Webmaster.
[ home | post article | flat forty | subscribe | search | rdf ]