[Konsole-devel] [Bug 176974] High memory consumption when using Konsole for a longer time.

Michael Meier mick22 at gmx.at
Mon Jun 15 08:05:45 UTC 2009


https://bugs.kde.org/show_bug.cgi?id=176974





--- Comment #49 from Michael Meier <mick22 gmx at>  2009-06-15 10:05:44 ---
First of all, I wouldn't consider this a bug (unless crashes happen, but that
might be a bug in Firefox), not in konsole nor in the allocator. There's always
a tradeoff between execution speed and memory usage. I didn't benchmark the
OpenBSD allocator against the glibc one in terms of speed. The glibc allocator
presumably prefers speed (cache locality, multi-threading performance, etc.)
over memory usage and I wouldn't be surprised if it's faster than the OpenBSD
one. But there's probably room for improvement there.

Secondly, I am not sure whether applications should start developing their own
allocators. Given the glibc allocator's inefficiencies in some cases (like this
one), I'd rather wait until this allocator gets improved. If that does not
happen, the choice of allocator probably should go into the Linux distribution
or in the core KDE libs. Many KDE applications are affected and therefore the
effort shouldn't be repeated in every application.

It is certainly possible to put LD_PRELOAD into /etc/profile or your user
profile, but then it will affect all applications. If you want the OpenBSD
malloc to be used by QT applications only, I guess you'd have to use some
custom script to launch applications that does some ldd magic.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list