Bug 217016 - Just login and logout - 165 MB disk space in $HOME used (Akonadi and Nepomuk data)
Summary: Just login and logout - 165 MB disk space in $HOME used (Akonadi and Nepomuk ...
Status: RESOLVED INTENTIONAL
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Unspecified
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-02 04:29 UTC by Christoph Feck
Modified: 2011-01-10 10:06 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Feck 2009-12-02 04:29:07 UTC
Version:            (using Devel)
Installed from:    Compiled sources

I start with a full clean user account, i.e. no files in $HOME. After login and later logout, without adding any files to $HOME, I get a disk usage of 165 megabytes in $HOME reported by "du", i.e. actual usage, not sparse files:

> du -sh
165M    .

Note that since there are no files to index, no mail or contact data stored, this is pretty big. I cannot even move it to an 128MB USB stick. I need KDEPIM installed, which requires Nepomuk.

The biggest offenders are:

> du -sh .kde/share/apps/nepomuk/
24M     .kde/share/apps/nepomuk/

> du -sh .local/share/akonadi/
140M    .local/share/akonadi/

More information about individual files:

> dir .kde/share/apps/nepomuk/repository/main/
-rw-r--r-- 1 kde4 users 2908160 Dec  2 03:56 soprano-virtuoso-temp.db
-rw-r--r-- 1 kde4 users 5816320 Dec  2 03:56 soprano-virtuoso.db

> dir .kde/share/apps/nepomuk/repository/main/data/virtuosobackend/
-rw-r--r-- 1 kde4 users  2908160 Dec  2 03:56 soprano-virtuoso-temp.db
-rw-r--r-- 1 kde4 users 11632640 Dec  2 03:58 soprano-virtuoso.db
-rw-r--r-- 1 kde4 users  1709557 Dec  2 04:01 soprano-virtuoso.trx

> dir .local/share/akonadi/db_data/
-rw-rw---- 1 kde4 users 67108864 Dec  2 04:05 ib_logfile0
-rw-rw---- 1 kde4 users 67108864 Dec  2 03:56 ib_logfile1
-rw-rw---- 1 kde4 users 10485760 Dec  2 04:05 ibdata1
Comment 1 Sebastian Trueg 2009-12-03 09:00:43 UTC
24MB of Nepomuk data is totally normal. All installed ontologies are loaded into the database. There is no way around that. I know that this is not a valid argument for many people but 24MB is nothing today. My harddisk has 1TB!

From my side (Nepomuk) this is a "wontfix"/"cantfix".
Comment 2 Christoph Feck 2009-12-03 12:41:24 UTC
Hm, the KDEDIR/share/ontology folder is just 644K. I hope it is just the ontologies that blow up by a factor of 40, not all indexes/annotations.
Comment 3 alancio 2010-02-19 08:21:23 UTC
24 Mb is a lot of space, maybe just not to you and your 1 user system with 1 Tb hard drive, but what about workstation networks mounting $HOME from NFS and limited space and quotas?

Why not make Nepomuk, Akonadi, Soprano, Redland etc. (all of the semantic desktop thing) optional dependencies of KDE?
Comment 4 Christoph Feck 2010-07-06 18:37:26 UTC
I was able to resize the ib_logfile0/1 files from 64 MB each to 2 MB each by using the mobile database profile.

This way, the total size used is reduced from 165 MB to 41 MB, which is a 75% reduction of the previous size. Still I think these files should be in a temporary directory, not in user's home.

I do not know how the reduced size affects the performance of Akonadi, as I am still using KMail from 4.4 branch, which is said to not use Akonadi.
Comment 5 Christoph Feck 2010-12-19 18:38:31 UTC
Since I switched Akonadi to use the QSQLITE database driver, the only issue is Nepomuk. As far as I grasp the features of the Virtuoso database, it is not possible to replace the Nepomuk storage with a "simpler" database, such as sqlite, so this is a WONTFIX (see comment #1).
Comment 6 Sebastian Trueg 2011-01-10 10:06:11 UTC
Don't get me wrong: I would like to improve this and as soon as I come accross a good idea I will try it. But so far I simply have no solution.