Fresh conversion from KMail 1, local mail setup, about 170000 mails, in subfolders. Opening KMail, reading new mails in all relevant subfolders. Memory consumption: kontact 715 MB akonadi_mixedmaildir 415 MB akonadiserver 130 MB mysqld 107 MB total: 1,3 GB I'm talking about the 700 MB in kontact and the 400 MB in the resource. Is this cache? Is this linearly growing data structure? Is this lost memory? I am aware that a grouped list view with 50000 mails will consume memory. Yet this is a lot. Memory stays constant, when the mail view show 0 messages, no decrease. Reproducible: Always Actual Results: Eats memory Expected Results: Eats less memory
What exact memory is this? Residual, shared or just virtual? It would be better to provide more precise figures, "top" gives you the details.
The most beautiful tool for viewing memory consumption is indeed our KDE's system monitor, with a lot of research in it to give valid values. Output is attached. Note that massif does not really help me; its heap profiling does not come close to the amount of memory used, and --pages-as-heap=yes gives quite different numbers, which dont help me at all. If anyone knows better how to interpret, attached as well.
Created attachment 74247 [details] Kontact and maildir agent memory usage
Created attachment 74248 [details] massif heap profiling Memory usage was ~750 MB at the time, not explained from this data. Gzipped, too large otherwise.
Created attachment 74249 [details] Massif memory profiling --pages-as-heap=yes Data quite difficult to interpret
update report status
Git commit 815957a4a9ae567f271453aac222abf4c09900f9 by Sergio Martins. Committed on 17/07/2013 at 09:45. Pushed by smartins into branch 'KDE/4.11'. mixedmaildir: don't use 1.5GB of memory when importing a very big folder Subjobs pile up too fast because they are cheap to create and because it's taking around 5 event loops for one to start. Related: bug 260647, bug 317122, bug 309732, bug 295651 M +41 -6 resources/mixedmaildir/retrieveitemsjob.cpp M +4 -2 resources/mixedmaildir/retrieveitemsjob.h http://commits.kde.org/kdepim-runtime/815957a4a9ae567f271453aac222abf4c09900f9
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present? If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.