Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Akonadi growing up to use 3G of memory and more
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
pcfreak85
n00b
n00b


Joined: 11 Feb 2005
Posts: 57

PostPosted: Fri Dec 21, 2018 8:28 am    Post subject: [SOLVED] Akonadi growing up to use 3G of memory and more Reply with quote

Hey Gentoo's!

Since a few weeks I'm stressed by Akonadi.

There seem to be several triggers that cause Akonadi to grow more and more. Over night, the memory usage is up to 3G and the whole system is hanging until I do a killall akonadiserver. One of the triggers seems to be a connection loss to one or more IMAP boxes if e.g. the internet connection does a re-connect.

My setup is a gentoo-sources-4.19.8 with KDE 18.12.0 modules:

Code:

*  kde-apps/akonadi
      Latest version available: 18.12.0
      Latest version installed: 18.12.0
      Size of files: 1.517 KiB
      Homepage:      https://community.kde.org/KDE_PIM/akonadi
      Description:   Storage service for PIM data and libraries for PIM apps
      License:       LGPL-2.1+

*  kde-apps/akonadi-calendar
      Latest version available: 18.12.0
      Latest version installed: 18.12.0
      Size of files: 326 KiB
      Homepage:      https://www.kde.org/
      Description:   Library for akonadi calendar integration
      License:       GPL-2+ LGPL-2.1+

*  kde-apps/akonadi-contacts
      Latest version available: 18.12.0
      Latest version installed: 18.12.0
      Size of files: 382 KiB
      Homepage:      https://www.kde.org/
      Description:   Library for akonadi contact integration
      License:       GPL-2+

*  kde-apps/akonadi-mime
      Latest version available: 18.12.0
      Latest version installed: 18.12.0
      Size of files: 134 KiB
      Homepage:      https://www.kde.org/
      Description:   Library for akonadi mime types
      License:       GPL-2+ LGPL-2.1+

*  kde-apps/akonadi-notes
      Latest version available: 18.12.0
      Latest version installed: 18.12.0
      Size of files: 24 KiB
      Homepage:      https://www.kde.org/
      Description:   Library for akonadi notes integration
      License:       GPL-2+

*  kde-apps/akonadi-search
      Latest version available: 18.12.0
      Latest version installed: 18.12.0
      Size of files: 81 KiB
      Homepage:      https://cgit.kde.org/akonadi-search.git
      Description:   Libraries and daemons to implement searching in Akonadi
      License:       GPL-2+ LGPL-2.1+

*  kde-apps/akonadiconsole
      Latest version available: 18.12.0
      Latest version installed: 18.12.0
      Size of files: 190 KiB
      Homepage:      https://www.kde.org/
      Description:   Application for debugging Akonadi Resources
      License:       GPL-2+ LGPL-2.1+ handbook? ( FDL-1.2+ )


Code:

frederick ~ # emerge --info
Portage 2.3.52 (python 3.6.6-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-8.2.0, glibc-2.28-r2, 4.19.8-gentoo-as-nv x86_64)
=================================================================
System uname: Linux-4.19.8-gentoo-as-nv-x86_64-Intel-R-_Core-TM-_i7-2620M_CPU_@_2.70GHz-with-gentoo-2.6
KiB Swap:   16777212 total,  13868980 free
Timestamp of repository gentoo: Thu, 20 Dec 2018 07:45:01 +0000
Head commit of repository gentoo: 0960fd4da7874a50b79bd5622ca4dfd7ef792055
sh bash 4.4_p23
ld GNU ld (Gentoo 2.31.1 p4) 2.31.1
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.4.8-r1::gentoo, 3.5.5-r1::gentoo, 3.6.6::gentoo, 3.7.0::gentoo
dev-util/cmake:           3.13.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.40.2::gentoo
sys-apps/sandbox:         2.14::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r2::gentoo
sys-devel/gcc:            8.2.0-r5::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts: --exclude ChangeLog --delete-excluded
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

andreas
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64 ~x86"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=sandybridge -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=sandybridge -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 3"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j4 -s"
PKGDIR="/usr/portage"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog --delete-excluded"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib accessibility acl acpi activities administrator alsa amd amd64 apache2 apm apng arts artswrappersuid audiofile avi bash-completion bashlogger bcmath berkdb bitmap-fonts bluetooth branding bzip2 cairo ccache cdda cdparanoia cdr ck-plus clamav clamd cli consolekit cpudetection cracklib crypt cscope ctype cups curl cxx dba dbus declarative divx divx4linux dri dts dvb dvd dvdr dvdread eds emboss encode esd ethereal evdev exif expat exscalibar fam fastbuild ffmpeg flac foomaticdb force-cgi-redirect fortran ftp gd-external gdbm gif gimpprint glamor glitz glut gmp gnutls gocr gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hdaps iconv icq idn imagemagick imap imlib ios iphone ipod ipv6 ipw4965 java jpeg kde kipi kpathsea kqemu kwallet lame lcms legacy-systray libclamav libg++ libnotify libtirpc libwww lm-sensors logrotate mad maildir memlimit mhash mikmod mime ming mmx mmxext mng motif mozdevelop mozilla mp3 mp4 mpeg mpeg2 mplayer mpm-perchild mpm-prefork multilib musepack musicbrainz ncurses networkmanager nls nptl nptlonly nsplugin nvidia obex ocrad ogg oggvorbis on-the-fly-crypt openexr opengl openmp openssh openssl oscar oss pam pango pcmcia pcre pdf pdflib pdo-external pear pear-db perl phonon plasma plotutils png pnp policykit pop posix ppds profile python qml qt5 query-browser quicktime rdesktop readline real realmedia rtc samba sdl seccomp secure-delete session sftplogging simplexml slang smime snmp soap socket sockets spamassassin speex spell spl sqlite sse sse2 ssl startup-notification subject-rewrite svg symlink tcltk tcpd tesseract tetex tidy tiff tk tki tokenizer transcode truetype truetype-fonts type1-fonts udev udisks unicode upower usb utf8 vcd vcdimager vcdx vhosts vim vim-pager vim-with-x visualization vorbis widgets win32codecs wmp workbench wxwidgets wxwindows x264 xattr xcb xcomposite xgl xine xinerama xml xml2 xmlreader xmlwriter xmms xosd xrandr xsl xv xvid xvmc zip zlib zlibi" ABI_X86="64" ALSA_CARDS="hda_intel usb-audio" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="nvidia intel nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS



After I killed and restared the server, it's running again without any issue.

Is anyone of you having the same issues?


Thanks!
_________________
---
Gentoo running on Lenovo Thinkpad T420 with KDE / SDDM
Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz / 8GB memory / nvidia graphics


Last edited by pcfreak85 on Thu Jan 31, 2019 1:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
pcfreak85
n00b
n00b


Joined: 11 Feb 2005
Posts: 57

PostPosted: Wed Jan 23, 2019 4:06 pm    Post subject: Reply with quote

No one except me having this issue?

I've recently updated to the latest testing:

Code:

*  kde-apps/akonadi
      Latest version available: 18.12.1
      Latest version installed: 18.12.1
      Size of files: 1.517 KiB
      Homepage:      https://community.kde.org/KDE_PIM/akonadi
      Description:   Storage service for PIM data and libraries for PIM apps
      License:       LGPL-2.1+

*  kde-apps/akonadi-calendar
      Latest version available: 18.12.1
      Latest version installed: 18.12.1
      Size of files: 326 KiB
      Homepage:      https://www.kde.org/
      Description:   Library for akonadi calendar integration
      License:       GPL-2+ LGPL-2.1+

*  kde-apps/akonadi-contacts
      Latest version available: 18.12.1
      Latest version installed: 18.12.1
      Size of files: 382 KiB
      Homepage:      https://www.kde.org/
      Description:   Library for akonadi contact integration
      License:       GPL-2+

*  kde-apps/akonadi-import-wizard
      Latest version available: 18.12.1
      Latest version installed: [ Not Installed ]
      Size of files: 429 KiB
      Homepage:      https://www.kde.org/ https://userbase.kde.org/Kmail/Import_Options
      Description:   Assistant to import PIM data from other applications into Akonadi
      License:       GPL-2+ handbook? ( FDL-1.2+ )

*  kde-apps/akonadi-mime
      Latest version available: 18.12.1
      Latest version installed: 18.12.1
      Size of files: 134 KiB
      Homepage:      https://www.kde.org/
      Description:   Library for akonadi mime types
      License:       GPL-2+ LGPL-2.1+

*  kde-apps/akonadi-notes
      Latest version available: 18.12.1
      Latest version installed: 18.12.1
      Size of files: 24 KiB
      Homepage:      https://www.kde.org/
      Description:   Library for akonadi notes integration
      License:       GPL-2+

*  kde-apps/akonadi-search
      Latest version available: 18.12.1
      Latest version installed: 18.12.1
      Size of files: 81 KiB
      Homepage:      https://cgit.kde.org/akonadi-search.git
      Description:   Libraries and daemons to implement searching in Akonadi
      License:       GPL-2+ LGPL-2.1+

*  kde-apps/akonadiconsole
      Latest version available: 18.12.1
      Latest version installed: 18.12.1
      Size of files: 190 KiB
      Homepage:      https://www.kde.org/
      Description:   Application for debugging Akonadi Resources
      License:       GPL-2+ LGPL-2.1+ handbook? ( FDL-1.2+ )



And is getting more worse now.... akonadiserver is growing by 600MB withing 5-6 hours...
_________________
---
Gentoo running on Lenovo Thinkpad T420 with KDE / SDDM
Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz / 8GB memory / nvidia graphics
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2008

PostPosted: Thu Jan 24, 2019 10:50 am    Post subject: Reply with quote

Not had your problem, but with others I've had, the solution has been to delete the entire akonadi database and let the appropriate bits of KDE rebuild it. Essentially akonadi is a cache. But beware, a few bits of configuration live in akonadi, even though they should not. AFAIR, the email identities and connection definitions from kmail. Nothing that's too hard to recreate, but it's an annoyance, so if you go this route, make sure you have backups. (Actually, I don't delete the akonadi database, I rename it to foo.old, so I can at least put it back if I can't get thing working again.)
_________________
Greybeard
Back to top
View user's profile Send private message
pcfreak85
n00b
n00b


Joined: 11 Feb 2005
Posts: 57

PostPosted: Thu Jan 31, 2019 1:30 pm    Post subject: Reply with quote

Solution: Do a complete fresh setup of Akonadi (removed ALL files and did a complete fresh installation)

Kontact kept the identities so I only needed to configure the mailboxes again. Everything is fast, no stuck connections, CPU load is nearly nothing now and the process does not grow anymore.
_________________
---
Gentoo running on Lenovo Thinkpad T420 with KDE / SDDM
Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz / 8GB memory / nvidia graphics
Back to top
View user's profile Send private message
EmTeeEmEl
n00b
n00b


Joined: 28 Jan 2019
Posts: 6

PostPosted: Fri Feb 01, 2019 1:53 am    Post subject: Reply with quote

I've noticed this to happen after QT upgrades. Just by removing all the files in ~/.local/share/baloo and restart solves it for me.

No need to reinstall akonadi
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2008

PostPosted: Fri Feb 01, 2019 8:36 am    Post subject: Reply with quote

EmTeeEmEl wrote:
I've noticed this to happen after QT upgrades. Just by removing all the files in ~/.local/share/baloo and restart solves it for me.

No need to reinstall akonadi

Are your symptoms related to akonadi or baloo? The original post had killing akonadiserver temporarily resolve the issue, and IIUC baloo is an entirely separate process. I'd therefore expect the symptoms to remain until killing baloo instead.
_________________
Greybeard
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8936

PostPosted: Fri Feb 01, 2019 8:44 am    Post subject: Reply with quote

If you were using akonadi with sqlite backend, then each minor Qt upgrade was breaking it so far. akonadi rebuild was sufficient in this case, and is performed automatically by portage since qtsql got a more fine-grained subslot.

akonadi and baloo are separate things indeed.
Back to top
View user's profile Send private message
pcfreak85
n00b
n00b


Joined: 11 Feb 2005
Posts: 57

PostPosted: Fri Feb 01, 2019 4:08 pm    Post subject: Reply with quote

FYI: I do not use baloo and I have MySQL as backend in Akonadi :-)


I can confirm that after the complete fresh setup I do not have:

- Sync issues during connection loss (laptop disconnected e.g.)
- MySQL LOCK issues
- 3G sized akonadiserver process within 7 hours
- "multiple items" error
- performance issues in kmail

It was horrible before...
_________________
---
Gentoo running on Lenovo Thinkpad T420 with KDE / SDDM
Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz / 8GB memory / nvidia graphics
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum