Slashdot Log In
KDE 4 Uses 40% Less Memory Than 3 Despite Eye-Candy
Posted by
Zonk
on Thu Dec 13, 2007 09:37 PM
from the optimization-in-action dept.
from the optimization-in-action dept.
An anonymous reader writes "Pro-Linux reports that KDE 4, scheduled to be released in January 2008, consumes almost 40% less memory than KDE 3.5, despite the fact that version 4 of the Free and Open Source desktop system includes a composited window manager and a revamped menu and applet interface. KDE developer Will Stephenson showcased KDE 4's 3D eye-candy on a 256Mb laptop with 1Ghz CPU and run-of-the-mill integrated graphics, pointing out that mini-optimizations haven't even yet been started." Update: 12/14 22:40 GMT by Z : Or, not so much. An anonymous reader writes "The author of the original KDE 3.5 vs KDE 4.0 memory comparison has come out with a more accurate benchmark. In reality, KDE 4.0 uses 110 MB more memory than KDE 3.5.8.
Related Stories
[+]
Wal-Mart's $200 Linux PC Sells Out 619 comments
hankmt writes "About a week ago Wal-Mart began selling a $200 Linux machine running on a 1.5 ghz VIA C7 processor and 512 MB of RAM. While the specs are useless for Vista, it works blazingly fast on Ubuntu with the Enlightenment Window Manager. The machine is now officially sold out of their online warehouses (it may still be available in some stores). And the product sales page at wal-mart.com is full of glowing reviews from new and old Linux users alike."
[+]
Linux To Take Over The Low-End PC Market? 391 comments
An anonymous reader writes "Desktop Linux has a recent commentary on the inevitable growth of Linux on the cheaper end of the desktop market. According to the article, the availability of under-$500 usable hardware, combined with a free operating system, free desktop office products, and free or cheap 'software as a service' online applications, opens a new market in which Microsoft cannot compete. 'Microsoft will fight this trend tooth and nail. It will cut prices to the point where it'll be bleeding ink on some of its product lines. And Windows XP is going to stick around much longer than Microsoft ever wanted it to. Still, it won't be enough.'"
Firehose:KDE 4 uses 40% less memory despite 3D eye-candy by Anonymous Coward
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading... please wait.
Wow. (Score:5, Funny)
Actually... (Score:5, Insightful)
I.E.... "here you go gentlemen, the standard system you are able to use is X Ghz, and X Gigabytes of DDR 1600, anything less than that will be obsolete by the first service pack anyways, so get crackin'!!"
Linux people and most of the OSS folks (Unix as well) have been server dedicated systems for a long time, and built on a robust or rather "efficient" (perhaps a better term is "effective"?) platform. As a result, they've been building to extract as many cycles and memory space as possible for use by client applications, not the Host Operating System.
As a result, Microsoft has it in its best interests to PUSH the upgrade cycle. If they can be depended to push the upgrade cycle to keep selling new boxes, the retail computer builders will continue to give Microsoft the plugs and keep shipping their OS as the "default" or "preferred" or "Supported" Operating System for their Big Bad Ass Kicking Rigs (tm).
Parent
Re:Actually... (Score:5, Insightful)
As a matter of corporate policy on a high level, Microsoft obviously benefits from and feeds into the upgrade treadmill. I don't think it's hard to believe that there's a quid pro quo with the hardware manufacturers on this; at the very least it's an obvious symbiosis. Microsoft craps out a new OS every few years with vastly increased system requirements (at least in order to run well), and in return the hardware manufacturers continue to bundle Windows. (There's more to the relationship, obviously, such as Microsoft's pricing structure for OEM licenses, but I think the hardware/software upgrade path is a part.)
However, I don't think most of Microsoft's programmers necessarily go into work every day saying to themselves "today, I'm going to build the shittiest, most resource-hogging chunk of code I can, so help me God." I suspect they probably just code for whatever their higher-ups tell them the target platform is going to be. If you're an overworked programmer, and if management makes it obvious that they care more about shoveling in the features than in optimizing code for performance and footprint, you're not going to optimize.
I think that's Windows in a nutshell. Somewhere along the line, some suit decides what the target platform is going to be; at the beginning of the development cycle it's probably pretty top-of-the-line kit. Everything is targeted towards this, and the end result is massive increases in bloat. Optimization is hard and unless you emphasize it and reward it, it's not just going to happen all by itself.
On the OSS side, you see a lot of optimization happen because many developers are working with limited resources and aren't in a position (or have the desire) to go out and buy a faster computer to make some chunk of code run faster. If you write an OSS application that requires your users to go out and buy a new system in order to use it, you've just alienated a lot of potential users -- or, hopefully, created a demand for someone to optimize the code and get it running on existing, slower hardware.
In short, I don't think Windows' footprint and mediocre (or negative) performance gains is due to bad coding as much as it's a direct result of institutional culture. It's a good example of what can happen to any product or project if performance isn't a key consideration, and particularly if it takes a back seat to featuritis.
Parent
Well (Score:5, Informative)
Re:Well (Score:5, Informative)
Parent
Shows what is possible.... (Score:5, Insightful)
Re:Shows what is possible.... (Score:5, Insightful)
Parent
ressourcenhungriger (Score:5, Funny)
I think I just found my new word-of-the-week
Bad measurements (Score:5, Insightful)
I'm sorry, but just adding up the memory usage columns from something like 'top' is a horrible way to measure actual memory usage. Why? Well, shared libraries is one big reason. Most of those applications are likely to use a similar set of shared libraries, which the operating system only loads once in memory and then uses for all of the applications. However, things like 'top' include the memory usage of those libraries in every application that uses them. Thus, if 'libkdeprint' is 1 MB and is used by 10 KDE programs, the ACTUAL memory usage of that library would be 1 MB, but top would report 10 MB of memory used (1 MB for each app).
This effect is very noticeable with desktop environments like KDE and GNOME, where there are a ton of programs that all use the same set of shared libraries. If you reduced the size of a few very basic libraries (e.g. 'libkdecore') by a sizable amount, then you could show a fake "huge savings" across the ~30 KDE/GNOME apps that were running.
It isn't that I doubt that KDE 4 uses less memory -- it undoubtedly does -- it's just that using overly simplistic methods to measure the difference in usage is misleading and somewhat pointless.
See a longer discussion of the issue at: http://virtualthreads.blogspot.com/2006/02/understanding-memory-usage-on-linux.html [blogspot.com]
Results are completely false (Score:5, Informative)
Has no one pointed out that the numbers are actually completely, utterly wrong? See Lubos and Thiagos (two high-ranking KDE and Qt devs) comments here:
http://www.kdedevelopers.org/node/3138
See the original authors retraction, here:
http://www.jarzebski.pl/read/kde-3-5-vs-4-0-round-two.so
So really, it should be "KDE4 uses 75% more memory", which is actually incredibly lame, but doesn't make for as good a title. I'm absolutely amazed that usually cynical slashdot readers have accepted this so uncritically.
Re:New Headline: (Score:5, Interesting)
Parent
Re:less memory! (Score:5, Informative)
Parent
4...3....2......1....... (Score:5, Funny)
just to speed things up a bit:
Parent
CLI FTW!!! (Score:5, Funny)
It's a sad day in Linuxland. What became of the holier than thou, I program in assembly, certifiable *nix prick?
Oh, and don't forget, "Desktop environment x is so bloated."
Parent
bash? pffft... (Score:5, Funny)
Also, you don't use init, you have the kernel run the aforementioned shell directly instead. Who needs all the cruft of startup services and a well set up tty, after all.
Parent
What Balderdash! (Score:5, Funny)
Parent
Re:bash? pffft... (Score:5, Insightful)
Parent
Re:To compare with GNOME... (Score:5, Informative)
Don't have a background? Just the frame buffer to activate that graphics mode itself is 5.4 megs, regardless of what you put on it.
Just to keep things in perspective here. That Commodore 64 you had ran nicely in 64k of ram, but it also only had 320x200 graphics (160x200 in 4-color mode).
Parent
Re:To compare with GNOME... (Score:5, Insightful)
Omit this functionality if you wish but don't advertise it as a "feature."
Parent
Re:To compare with GNOME... (Score:5, Insightful)
Parent
Re:To compare with GNOME... (Score:5, Insightful)
If anyone created a KDE "theme" that made it look and work like Gnome, I'd be extremely happy with it. Probably the KDE camp would find that distasteful though.
Parent
Re:Just tried (Score:5, Insightful)
Speaking of wasted space and distractions, and not to be trollish, but I've always wondered why it is that KDE and Gnome insist on using large-to-oversized-to-supersized icons for everything, KDE being notable in that it traditionally distinguishes itself with icons of brighter colors, in wilder designs, and offers greater customisability?
Seems to me that the term eye-candy, while often used in a disparaging fashion, should refer to a certain kewl aesthetic, rather than literal candy of the M&M variety. It's almost the inverse of a Queer Eye for the Straight Guy episode -- instead of getting a great design from three flaming queers, you get a flaming queer design from a bunch of straight guys. Well, maybe not that bad, but still.
I mean, really, do people really need toolbars that takes up a 1/3 of the space of an application window? Is the boredom threshold so low that everything has to be decorated with bright colours, or is it that people find it hard to to hit things with their mouse? Sure, both KDE and Gnome are better than Windows, but by the time you've customised things to be less
Parent
Re:Please post a new story. (Score:5, Funny)
Parent
Re:misleading article (Score:5, Interesting)
Also, since there's so much integration within KDE, the RAM usage doesn't jump that much when using an application. I'm running KDE 3.5 with opera, kmail, ktorrent, amarok, and yakuake, plus all the services, and I'm at about 300MB of RAM used - not much higher than when none of the apps are running.
Parent
Re:setup (Score:5, Informative)
Sorry but you are completely full of shit. OS X does not run for any reasonable definition of "run" on 32mb of RAM.
Have a look at the minimum requirements for OS X 10.1 which you say was the most efficient OS X.
http://en.wikipedia.org/wiki/Mac_OS_X_v10.1#System_Requirements [wikipedia.org]
Notably: RAM required 128 megabytes
And you're saying you did OpenGL development on a quarter of the minimum requirements. Riiight.
Troll. Nice one though. The moderators believed you at least.
Parent