Bug 487090

Summary: Temporary huge increase is size of ~/.local/share/akonadi
Product: [Frameworks and Libraries] Akonadi Reporter: Fab Stz <fabstz-it>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal CC: carl
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Fab Stz 2024-05-16 09:03:47 UTC
My /home folder is on a partition with limited disk size. Usual free space is about 1GB.

I noticed that at times the remaining disk space is completely filled up leading to "no more diskspace" which in the end results in akonadi crashing (and all apps having weird issues).

I could find that the cause if actually akonadi which at times increases much is size, especially the folder: ~/.local/share/akonadi (backend is MySQL/MariaDB)

So I moved the folder to another partition with a lot of free space and by monitoring the size of the folder I have the outcome below. As you can see size is can go from the usual 1GB to 3.7GB for a short period of time.

Expected results are:
- no crash when there is no more free disk space
- avoid akonadi db to require temporarilly so much disk space.

Size evolution in time:
1004M	
1005M	
1004M	
1005M	
1006M	
1005M	
1006M	
1,2G	
1,3G	
995M	
1,3G	
995M	
996M	
997M	
996M	
997M	
985M	
994M	
1,3G	
994M	
1,3G	
1,7G	
2,1G	
2,5G	
2,9G	
3,1G	
3,5G	
3,7G	
1,4G	
1,1G	
1,3G	
1,1G	
948M	
949M	
951M	
953M	
954M	
955M	
954M	
955M	
956M	
957M	
958M	
959M	
960M	
961M	
962M	
963M	
964M	
952M	
1,1G	
1,5G	
1000M	
1001M	
1002M	
1001M	
1002M	
1003M	
1008M	
1003M	
1007M	
1003M	
1004M	
1005M	
1006M	
1009M	
1010M	
1009M	
1010M	
1011M	
1012M	
1011M	
1012M	
1013M	
1014M	
1015M	
1,1G	
1,3G	
1,8G	
2,2G	
2,6G	
3,0G	
3,5G	
3,6G	
3,7G	
3,1G	
2,0G	
1,1G	
1,2G	
1,4G	
1,7G	

Script that permits to produce this list:
```
while true; do
  du -sh /mnt/packages/home_fabien_.local_share_akonadi/ >> ~/tmp/akonadi_size
  uniq ~/tmp/akonadi_size | sponge ~/tmp/akonadi_size
  sleep 45
done
```

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian bookworm, 4:22.12.3-1

KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8