[Akonadi] [Bug 443095] New: Moving mails to a different folder is very slow
bugzilla_noreply at kde.org
Tue Sep 28 22:29:35 BST 2021
Bug ID: 443095
Summary: Moving mails to a different folder is very slow
Component: Maildir Resource
Assignee: kdepim-bugs at kde.org
Reporter: Martin at Lichtvoll.de
Target Milestone: ---
I moved 13647 from one folder to another.
It took a lot of time. I'd say at least 5 minutes, but I'd say it was longer
During that time KMail stalled on Akonadi and thus did not display any mail. It
was basically unusable during that time.
STEPS TO REPRODUCE
1. Move 10000 mails from one folder to another
Moving those mails took a lot of time.
In the end I monitored how many mails it adds to the destination maildir folder
each 10 seconds and got this:
% while true; do find -type f | wc -l ; sleep 10 ; done
So it did about 200-300 mails every 10 seconds. Or 20-30 mails a second. This
makes about 454 seconds or 7 minutes for and 34 seconds for moving all of the
mails, in case it started moving mails immediately and it would reach 300 mails
a second consistently. I did not measure the exact total time, but I believe it
was more like 10 minutes or more.
Those mails are basically moved within a few seconds.
This is a ThinkPad T14 AMD Gen 1 with AMD Ryzen 7 PRO 4750U 8 core processor
with hyperthreading, 32 GB RAM and 2 TB Samsung 980 Pro SSD. This hardware
really gives no reason to be slow with such a kind of operation.
During the move operation consequently neither the CPU, not even a single core,
nor the SSD was fully utilized.
Linux/KDE Plasma: 5.21.5 on Devuan Ceres (aka Debian Sid without Systemd, I use
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.86
Qt Version: 5.15.2
Linux Kernel 5.14.7, self compiled.
I am using PostgreSQL backend.
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kdepim-bugs