
Originally Posted by
birdie
OK, here are the real world results:
Memory usage before and after the start of:
Code:
KDE3:
total used free shared buffers cached
Mem: 3942172 383688 3558484 0 3928 101748
Mem: 3942172 576068 3366104 0 30376 199300
Total: 187MB
KDE4
total used free shared buffers cached
Mem: 3942172 386824 3555348 0 4660 10475
Mem: 3942172 1073012 2869160 0 24796 605136
Total: 670MB
Both environments were run with an
empty, new profiles, and four applications which I just ran and kept open:
Akregator, Konsole, Konqueror and Kolorpaint.
Now, don't tell me KDE4 doesn't need a huge optimization.
It's a lot smaller if you exclude the buffers/cache (which you'll get if you read the second line of the "free" command):
Code:
383688 - 3928 - 101748 = 278012
576068 - 30376 - 199300 = 346392
Difference: 68380 = 66MB
386824 - 4660 - 10475 = 371689
1073012 - 24796 - 605136 = 443080
Difference: 71391 = 69MB
If you really want to compare memory including cache, run this command to flush the disk cache before logging in:
Code:
su -c "echo 1 > /proc/sys/vm/drop_caches"
After logging in, use each app for a few minutes before checking the stats so that it has a chance to reload whatever it actually needs.
Another thing to keep in mind is that if you run KDM 3/4, some of the KDE libraries may already be loaded which will throw off the before/after logging in stats. Either way, it's not like KDE4 is using 400MB more than KDE3.