View previous topic :: View next topic |
Author |
Message |
redwood Guru
Joined: 27 Jan 2006 Posts: 306
|
Posted: Thu Dec 06, 2018 10:24 pm Post subject: KDE / akonadi / thrashing my disk |
|
|
There are only really two KDE programs that I need: okular and kmail. I need kmail lbecause I have multiple imaps accounts open and need to quickly sort emails between accounts and project subfolders (click and drag). Unfortunately, for a long while KDE has been painfullly slow for me. Currently on plasma-5.13.5 and kmail-18.08.2. Also running qt5 (5.11.1-r1).
Every once in a while if I run "akonadictl stop" and restart then things will be OK for a few days. Sometimes I might need to restart /etc/init.d/dbus for things to go right for a spell. If I'm running a non-KDE shell such as lxterminal, even the terminal is unresponsive until I stop akonadi. Simple things like "ls" , "htop", "dmesg" will hang for a minute or two while who knows what KDE is doing. I can hear my hard drives being thrashed, but I'm not memory starved:
Code: |
free -h
total used free shared buff/cache available
Mem: 7.9Gi 1.8Gi 3.1Gi 921Mi 3.0Gi 4.5Gi
Swap: 0B 0B 0B
|
I see that there are current upgrades for plasma (15.14.3) and kde (18.03.3) but I have little confidence thie upgrades will fix the problem.
My akonadi database usage is a little over a half gig:
Code: |
du -csh ~/.local/share/akonadi
569M ~/.local/share/akonadi
569M total
|
which hardly seems like a lot considering I have an ancient Pentium III on which I run a document archive program for OCR scanned documents and it currently has 24G of data stored in Oracle-BerkleyDB that it can handle just fine.
My problems only start when I run KDE programs (konsole, okular, kmail, etc).
My system is responsive if I kill all KDE programs and child processes.
I've also tried letting akonadi rebuild its indices by moving ~/.local/share/akonadi to a backup. kmail then is pretty unresponsive for a few hours while the courier-imap accounts are resynced and indexed. I wish I had the option of disabling akonadi alltogether but I realize it's integrated into all KDE programs. It's just such a PITA.
Current system resource usage via "atop":
Code: |
ATOP - axp 2018/12/06 17:20:43 - 10s elapsed 2018/12/06 17:21:13 -- 10s elapsed
PRC | sys 3.26s | user 10.45s | | #proc 482 | #trun 14 | #tslpi 911 | | #tslpu 0 | #zombie 2 | clones 5 | | #exit 0 |
CPU | sys 32% | user 104% | irq 1% | | idle 62% | wait 1% | | | steal 0% | guest 0% | curf 2.21GHz | curscal ?% |
CPL | avg1 0.33 | avg5 0.55 | | avg15 0.89 | | | csw 153875 | intr 57027 | | | numcpu 2 | |
MEM | tot 7.9G | free 3.0G | cache 2.5G | dirty 0.0M | buff 181.7M | slab 406.4M | slrec 309.8M | shmem 921.9M | shrss 2.3M | vmbal 0.0M | hptot 0.0M | hpuse 0.0M |
SWP | tot 0.0M | free 0.0M | | | | | | | | | vmcom 7.1G | vmlim 4.0G |
LVM | crypt-home | busy 7% | read 0 | | write 81 | KiB/r 0 | KiB/w 4 | MBr/s 0.0 | MBw/s 0.0 | | avq 3.95 | avio 8.58 ms |
LVM | vg-home | busy 7% | read 0 | | write 93 | KiB/r 0 | KiB/w 3 | MBr/s 0.0 | MBw/s 0.0 | | avq 1.15 | avio 7.37 ms |
MDD | md4 | busy 0% | read 0 | | write 105 | KiB/r 0 | KiB/w 3 | MBr/s 0.0 | MBw/s 0.0 | | avq 0.00 | avio 0.00 ms |
DSK | sdc | busy 8% | read 0 | | write 95 | KiB/r 0 | KiB/w 4 | MBr/s 0.0 | MBw/s 0.0 | | avq 1.53 | avio 8.04 ms |
DSK | sde | busy 5% | read 0 | | write 95 | KiB/r 0 | KiB/w 4 | MBr/s 0.0 | MBw/s 0.0 | | avq 1.93 | avio 4.83 ms |
NET | transport | tcpi 1115 | tcpo 1122 | udpi 0 | udpo 0 | tcpao 0 | tcppo 0 | tcprs 0 | tcpie 0 | tcpor 0 | udpnp 0 | udpie 0 |
NET | network | ipi 1115 | ipo 1122 | | ipfrw 0 | deliv 1115 | | | | | icmpi 0 | icmpo 0 |
NET | eth0 0% | pcki 1115 | pcko 1122 | sp 1000 Mbps | si 208 Kbps | so 122 Kbps | coll 0 | mlti 0 | erri 0 | erro 0 | drpi 0 | drpo 0 |0 | drpi 0 | drpo 0 |
NET | br0 ---- | pcki 1115 | pcko 1122 | sp 0 Mbps | si 195 Kbps | so 122 Kbps | coll 0 | mlti 0 | erri 0 | erro 0 | drpi 0 | drpo 0 |0 | drpi 0 | drpo 0 |
PID SYSCPU USRCPUVGROW RGROW RDDSK W RGROW RU RDDSKD ST WRDSK RUID CPUNR C EUID 1/4 ST EXC THR S CPUNR CPU CMD 1/5
27883 0.53s 1.56s 0K 0K 0K 0K jeremy jeremy -- - 7 S 0 21% akonadi_imap_r
27747 0.43s 1.06s 8196K 332K 0K 0K jeremy jeremy -- - 70 S 0 15% akonadiserver
27794 0.29s 1.05s 0K 0K 0K 68K jeremy jeremy -- - 34 S 1 14% mysqld
27112 0.16s 1.16s 0K -2360K 0K 0K jeremy jeremy -- - 44 S S 0 12% 4palemoonemoon
9878 0.24s 0.70s 0K 0K 0K 0K jeremy jeremy -- - 1 S S 0 10% dbus-daemon
27739 0.08s 0.23s 0K 0K 0K 0K jeremy jeremy -- - 3 R R S 0 3% akonadi_contro
20912 0.00s 0.26s 0K 0K 0K 0K jeremy jeremy -- - 4 S 0 3% lxterminal
27733 0.04s 0.20s 0K 0K 0K 0K jeremy jeremy -- - 31 S S 1 2% kmail
8890 0.10s 0.09s 0K 0K 0K 0K root root -- - 2 S S 0 2% X
27882 0.03s 0.14s 0K 0K 0K 0K jeremy jeremy -- - 7 S S 0 2% akonadi_imap_r
27893 0.04s 0.10s 0K 0K 0K 0K jeremy jeremy -- - 5 S S 1 1% akonadi_mailfi
27914 0.04s 0.09s 0K 0K 0K 0K jeremy jeremy -- - 5 S 1 1% akonadi_sendla
27874 0.04s 0.09s 0K 0K 0K 0K jeremy jeremy -- - 7 S 0 1% akonadi_imap_r
20978 0.02s 0.11s 0K 0K 0K 0K jeremy jeremy -- - 6 S 1 1% pulseaudio
27861 0.03s 0.09s 0K 0K 0K 0K jeremy jeremy -- - 5 S 0 1% akonadi_archiv
27879 0.03s 0.09s 0K 0K 0K 0K jeremy jeremy -- - 6 S 0 1% akonadi_imap_r
27877 0.01s 0.11s 0K 0K 0K 0K jeremy jeremy -- - 7 S 0 1% akonadi_imap_r
|
I don't want to move to gnome.
I currently am running lxde with 4 desktops each with a couple lxterminals open with each of them having a half dozen or so tabs open to various projects I'm working on. I do need okular for viewing pdf files (acroread no longer available and the alternatives have various issues). Also need a mail program which allows me to keep several imap accounts simulatneouly open and to click-n-drag emails from one account to another easily to keep my emails sorted by project. The issue is not with my imap-server as I can use webmail (roundcube) just fine when kmail is completely unresponsive. Unfortunately roundcube only shows me one imap account at a time (there's a plugin which allows me to open up another account in another browser tab but don't think there's a way to drag an email from one tab to the other).
Thanks in advance for any ideas. |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Fri Dec 07, 2018 12:28 am Post subject: |
|
|
Do you have the file ~/.config/akonadi/akonadiserverrc by any chance? If you do, have you tried changing the line 'StartServer=true' to 'StartServer=false'?
Code: | [Debug]
Tracer=null
[%General]
Driver=QMYSQL
[QMYSQL]
Host=
Name=akonadi
Options="UNIX_SOCKET=/tmp/akonadi-fitzcarraldo.JfHG9z/mysql.socket"
ServerPath=/usr/sbin/mysqld
StartServer=true |
_________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog |
|
Back to top |
|
|
redwood Guru
Joined: 27 Jan 2006 Posts: 306
|
Posted: Fri Dec 07, 2018 2:47 pm Post subject: |
|
|
Yes, I have that config file, but kmail isn't operational without akonadi running. |
|
Back to top |
|
|
redwood Guru
Joined: 27 Jan 2006 Posts: 306
|
Posted: Wed Dec 19, 2018 4:23 pm Post subject: Trying to tune mysql settings |
|
|
Decided to try to tune mysql by changing settings in ~/.local/share/akonadi/mysql.conf
Changed innodb_buffer_pool_size from 128M to 1500M (Recommended 50-70%RAM, with <4G for 32 bit systems. I have 8G systems).
Changed innodb_log_file_size from 64M to 256M
atop now shows read/write activity much, much, lower and kmail seems more responsive.
Fingers crossed ...
My current ~/.local/share/akonadi usage is 1.2G
My IMAP accounts have the following email storage:
Acct#1: 610M
Acct#2: 12G
Acct#3: 409M
Acct#4: 33M
Acct#5: 10G
Might install percona if akonadi becomes an issue again
https://www.percona.com/blog/2016/10/12/mysql-5-7-performance-tuning-immediately-after-installation/ |
|
Back to top |
|
|
|