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

Michael Meier mick22 at gmx.at
Mon Jun 15 06:45:22 UTC 2009


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





--- Comment #47 from Michael Meier <mick22 gmx at>  2009-06-15 08:45:16 ---
I have one more follow-up that substantiates the heap-fragmentation theory: I
ran konsole with an alternative malloc implementation I took from
http://mr.himki.net/OpenBSD_malloc_Linux.c

For comparison, here's the data size of konsole with two different
implementations of malloc:

glibc malloc: 
- 1 tab (after startup): 20m
- 10 tabs (30k history): 107m
- 1 tab (closed all but one): 104m

OpenBSD mallloc ported to Linux:
- 1 tab (after startup): 20m
- 10 tabs (30k history): 121m
- 1 tab (closed all but one): 32m (!)


If you compile and preload this library (LD_PRELOAD=/path/malloc.so konsole),
almost all memory is freed once you close a tab. This malloc obviously is able
to handle the allocation/de-allocation sequence of konsole much better than
glibc's, at the cost of a slightly higher maximum heap size.

-- 
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