The Overhead of KDE Software
When Calligra 2.4 was released there was a flurry of interest resulting in a number of articles in the press and blog posts. Some of these were regular reviews of higher and lower quality. One of them, which I think was one of the better ones, was this one by PÄvel (in Swedish). In the review he says that Calligra has a good foundation, he likes it but there are obvious problems with it. I find that an honest and true assessment, especially since it is obvious that he has really tried it and been bitten by some bugs. (Some of these bugs are already fixed in 2.4.2, most of the rest will be gone in 2.5.)
But that is not the topic of this blog post. In one paragraph he says that "since it is a KDE program it will work best in that environment." and offhandedly states that "In Gnome it will drag in a couple of hundred MB as KDE dependencies". I found that unlikely, given all the work that we in KO GmbH have done on Calligra for embedded platforms but I know that there is some overhead involved. But how much is it?
So I asked in #kde-devel on irc if anybody had done the measurements to say how big the overhead of KDE applications is in a non-kde environment. It appeared that nobody had done that, or at least nobody knew about any figures. But I managed to trigger the curiosity of Michael Pyne enough so that he immediately decided to check it.
He started up his trusty Fluxbox environment and did a continuous measurement of the free memory (taking into account buffers and cache) and found out the following:
Michael also said that he found that it took "102084 1KiB blocks of memory to run konqueror, konversation, + associated KDE daemon procs in fluxbox." That figure includes everything: the Qt runtime, kde libraries and the applications themselves and is a very low figure for what you get.
As a side note, you will get the same overhead when you run e.g. Libreoffice on your desktop since they have their own toolkit. The difference is that that toolkit is not used anywhere else in any other application.
So, there you have it. Admittedly this is very unscientific but 48 MB is significantly below 200 MB, so much that the 200 MB figure can easily be dismissed. And even when you include two applications and all the toolkits and libraries it still hardly goes over 100. So until somebody takes a more scientific approach I will state that the KDE overhead in a totally non-kde environment is 48 MB.
But that is not the topic of this blog post. In one paragraph he says that "since it is a KDE program it will work best in that environment." and offhandedly states that "In Gnome it will drag in a couple of hundred MB as KDE dependencies". I found that unlikely, given all the work that we in KO GmbH have done on Calligra for embedded platforms but I know that there is some overhead involved. But how much is it?
So I asked in #kde-devel on irc if anybody had done the measurements to say how big the overhead of KDE applications is in a non-kde environment. It appeared that nobody had done that, or at least nobody knew about any figures. But I managed to trigger the curiosity of Michael Pyne enough so that he immediately decided to check it.
He started up his trusty Fluxbox environment and did a continuous measurement of the free memory (taking into account buffers and cache) and found out the following:
When a KDE application is started in a non-KDE environment the memory goes up (of course) and when it is killed again the memory goes down. The memory that remains used is probably the KDE overhead in the form of libraries (Qt and the kdelibs) and daemons (kdeinit4 and kded4). This overhead is 48 MB.
Michael also said that he found that it took "102084 1KiB blocks of memory to run konqueror, konversation, + associated KDE daemon procs in fluxbox." That figure includes everything: the Qt runtime, kde libraries and the applications themselves and is a very low figure for what you get.
As a side note, you will get the same overhead when you run e.g. Libreoffice on your desktop since they have their own toolkit. The difference is that that toolkit is not used anywhere else in any other application.
So, there you have it. Admittedly this is very unscientific but 48 MB is significantly below 200 MB, so much that the 200 MB figure can easily be dismissed. And even when you include two applications and all the toolkits and libraries it still hardly goes over 100. So until somebody takes a more scientific approach I will state that the KDE overhead in a totally non-kde environment is 48 MB.
