Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Latency in KMail after system upgrade
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
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 535
Location: Sweden

PostPosted: Mon Oct 18, 2010 8:35 am    Post subject: Latency in KMail after system upgrade Reply with quote

I recently upgraded my system by doing emerge -uDN world

After the upgrade I experience latency in the KMail application. Every now and then the response to keyboard commands just pauses for about 20 seconds. Likewise if I type a mail and click the send button KMail just freezes for about 20 second before the mail is expedited.

Has anyone experienced the same with KMail? Any cure?
_________________
/Phil
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Mon Oct 18, 2010 9:09 am    Post subject: Re: Latency in KMail after system upgrade Reply with quote

philip wrote:
...I experience latency in the KMail application. Every now and then the response to keyboard commands just pauses for about 20 seconds. Likewise if I type a mail and click the send button KMail just freezes for about 20 second before the mail is expedited.

+1 :evil:

I suspect something in which akonadi would be involved but that is nothing more than suspiscion.

EDIT : I also read about this, recommendations to test under some all brand new user account and if the problem does not occur then redo kde configuration from scratch... :roll: :roll: :evil: :evil:... had of course no time for this... :roll:
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 535
Location: Sweden

PostPosted: Mon Oct 18, 2010 11:01 am    Post subject: Reply with quote

My suspicion also lean towards akonadi.

Is this someone else can confirm?
_________________
/Phil
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3435
Location: Gainesville, Florida

PostPosted: Mon Oct 18, 2010 3:55 pm    Post subject: Reply with quote

When you start kmail the first time, do you get an Akonadi dialog box, listing the self-test routine with success/failures?
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.8.4 USE=experimental python3_11
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 535
Location: Sweden

PostPosted: Mon Oct 18, 2010 7:46 pm    Post subject: Reply with quote

No, I have never seen the self test.......

I have akonadi installed though:

Quote:
# emerge --search akonadi
Searching...
[ Results for search key : akonadi ]
[ Applications found : 2 ]

* app-office/akonadi-server
Latest version available: 1.3.1
Latest version installed: 1.3.1
Size of files: 188 kB
Homepage: http://pim.kde.org/akonadi
Description: The server part of Akonadi
License: LGPL-2.1

* kde-base/akonadi
Latest version available: 4.4.5
Latest version installed: 4.4.5
Size of files: 9,127 kB
Homepage: http://www.kde.org/
Description: An extensible cross-desktop storage service for PIM data and meta data
License: GPL-2

_________________
/Phil
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 535
Location: Sweden

PostPosted: Mon Oct 18, 2010 7:53 pm    Post subject: Reply with quote

I found the Akonadi Tray Utility under Utilities in the KDE menu.
Under the section Akonadi Server Configuration I could run the test. It shows (I just show details where errors were found):

Quote:
Akonadi Server Self-Test Report
===============================

Test 1: SUCCESS
--------

Test 2: SUCCESS
--------

Test 3: SUCCESS
--------

Test 4: ERROR
--------

MySQL server log contains errors.
Details: The MySQL server error log file &apos;<a href='/home/philip/.local/share/akonadi/db_data/mysql.err'>/home/philip/.local/share/akonadi/db_data/mysql.err</a>&apos; contains errors.

File content of '/home/philip/.local/share/akonadi/db_data/mysql.err':
InnoDB: Unable to lock ./ibdata1, error: 11
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
101018 11:20:41 InnoDB: Retrying to lock the first data file
InnoDB: Unable to lock ./ibdata1, error: 11
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
101018 11:22:21 InnoDB: Unable to open the first data file
InnoDB: Error in opening ./ibdata1
101018 11:22:21 InnoDB: Operating system error number 11 in a file operation.
InnoDB: Error number 11 means 'Resource temporarily unavailable'.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/operating-system-error-codes.html
InnoDB: Could not open or create data files.
InnoDB: If you tried to add new data files, and it failed here,
InnoDB: you should now edit innodb_data_file_path in my.cnf back
InnoDB: to what it was, and remove the new ibdata files InnoDB created
InnoDB: in this failed attempt. InnoDB only wrote those files full of
InnoDB: zeros, but did not yet use them in any way. But be careful: do not
InnoDB: remove old data files which contain your precious data!
101018 11:22:21 [ERROR] Plugin 'InnoDB' init function returned error.
101018 11:22:21 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
101018 11:22:21 [ERROR] Unknown/unsupported table type: innodb
101018 11:22:21 [ERROR] Aborting

101018 11:22:21 [Note] /usr/sbin/mysqld: Shutdown complete



Test 5: SUCCESS
--------

Test 6: SKIP
--------

MySQL server custom configuration not available.
Details: The custom configuration for the MySQL server was not found but is optional.

Test 7: SUCCESS
--------

Test 8: SUCCESS
--------

Test 9: SUCCESS
--------

Test 10: SUCCESS
--------

Test 11: SUCCESS
--------

Test 12: SKIP
--------

Test 13: SUCCESS
--------

Test 14: SUCCESS
--------


Test 15: ERROR
--------

Previous Akonadi server error log found.
Details: The Akonadi server did report error during its previous startup into <a href='/home/philip/.local/share/akonadi/akonadiserver.error.old'>/home/philip/.local/share/akonadi/akonadiserver.error.old</a>.

File content of '/home/philip/.local/share/akonadi/akonadiserver.error.old':
"[
0: akonadiserver(_Z11akBacktracev+0x35) [0x80527a5]
1: akonadiserver() [0x8052d2c]
2: [0xffffe400]
3: /usr/lib/libdbus-1.so.3(+0xb79a) [0xb743779a]
]
"


Test 16: SUCCESS
--------


Test 17: ERROR
--------

Previous Akonadi control error log found.
Details: The Akonadi control process did report error during its previous startup into <a href='/home/philip/.local/share/akonadi/akonadi_control.error.old'>/home/philip/.local/share/akonadi/akonadi_control.error.old</a>.

File content of '/home/philip/.local/share/akonadi/akonadi_control.error.old':
D-Bus session bus went down - quitting




I also have in a Previous Akanadi Control Error Log:

Quote:
"[
0: akonadiserver(_Z11akBacktracev+0x35) [0x80527a5]
1: akonadiserver() [0x8052d2c]
2: [0xffffe400]
3: /usr/lib/libdbus-1.so.3(+0xb79a) [0xb743779a]
]
"


and

Quote:
D-Bus session bus went down - quitting


There are obviously some errors. But I am not sure what actually went wrong or how to mitigate the errors.
_________________
/Phil


Last edited by philip on Tue Oct 19, 2010 3:08 pm; edited 2 times in total
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3435
Location: Gainesville, Florida

PostPosted: Mon Oct 18, 2010 9:01 pm    Post subject: Reply with quote

The Gentoo default is recently changed to sqlite instead of mysql. I got rid of my kmail/akonadi mysql errors by moving over to sqlite, but there are a few hoops to jump through first. Take a look here for more details. https://forums.gentoo.org/viewtopic-t-847971-highlight-.html

After moving to sqlite, don't unmerge mysql, as a few other apps might need it. Doesn't seem to conflict on my box. You can remove any the
akonadiserver.error files.
BTW, do you now have a /home/philip/.config directory, and if so, what's in it?
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.8.4 USE=experimental python3_11
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 535
Location: Sweden

PostPosted: Tue Oct 19, 2010 6:21 am    Post subject: Reply with quote

Great many txn for advice.

# ls -al /home/philip/.config/
total 112
drwx------ 11 philip users 4096 Jan 6 2010 .
drwxr-xr-x 92 philip users 4096 Oct 19 08:19 ..
drwxr-xr-x 2 philip users 4096 Oct 19 00:03 akonadi
drwxr-xr-x 2 philip users 4096 Dec 6 2009 autostart
drwx------ 2 philip users 4096 Oct 7 20:09 enchant
drwxr-xr-x 2 philip users 4096 Jan 7 2010 Google
drwx------ 2 philip users 4096 Oct 17 00:07 gtk-2.0
drwx------ 2 philip users 4096 Sep 21 2009 gxine
drwxrwx--x 2 philip users 4096 Dec 6 2009 kde.org
drwx------ 3 philip users 4096 Jan 4 2007 menus
drwxr-xr-x 2 philip users 4096 Feb 23 2009 Trolltech
-rw-r--r-- 1 philip users 62954 Oct 19 07:53 Trolltech.conf
#
_________________
/Phil
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 535
Location: Sweden

PostPosted: Tue Oct 19, 2010 7:02 am    Post subject: Reply with quote

I also found this link, which explains the latency in sending mail:

http://userbase.kde.org/Akonadi_4.4/Troubleshooting#mysqld:_unknown_variable_.27innodb_file_per_table.3D1.27
_________________
/Phil
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Tue Oct 19, 2010 7:09 am    Post subject: Reply with quote

wrc1944 wrote:
The Gentoo default is recently changed to sqlite instead of mysql. I got rid of my kmail/akonadi mysql errors by moving over to sqlite

8O 8O
Well, I trust you wrc1944, however, I must have missed something somewhere...
Maciej Mrozowski in Gentoo Bug 306539 wrote:
sqlite backend is functional starting with akonadi-1.4.0, earlier it wasn't much of a use.

As far as I understand philip's posts, philip is running Akonadi 1.3.1 (Me too)
This in addition with considering the number of bugs involving sqlite still open in this environment, I would not consider moving from mysql to sqlite as a good idea.
BTW, I would hope being wrong and wrc1944 right.
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 535
Location: Sweden

PostPosted: Tue Oct 19, 2010 9:27 am    Post subject: Reply with quote

I would rather stay with mysql than mixing two db environments. However I see that sqlite has been drawn in from some dependency

Quote:
# emerge --search sqlite
Searching...
[ Results for search key : sqlite ]
[ Applications found : 16 ]

* dev-db/sqlite
Latest version available: 3.6.23.1
Latest version installed: 3.6.23.1
Size of files: 7,125 kB
Homepage: http://www.sqlite.org/
Description: A SQL Database Engine in a C Library
License: as-is


aCOSwt wrote:
Quote:
As far as I understand philip's posts, philip is running Akonadi 1.3.1 (Me too)


Do you experience the same problems I have?
_________________
/Phil
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 535
Location: Sweden

PostPosted: Tue Oct 19, 2010 12:44 pm    Post subject: Reply with quote

I may have achieved some progress here.

First I read the mysql howto at [url] http://www.gentoo.org/doc/en/mysql-howto.xml[/url]

Lazy as I am I have never configured my mysql environment.

I did:
Code:
emerge --config =dev-db/mysql-5.1.50-r1


and then:
Code:
/etc/init.d/mysql start


I used the KDE --> Utilities --> Aknodaditray application to view akonadi self test and also to stop and then start the akanadi server.


Now two of the error messages in the Akonadi server has disappeared. One remains, which still seems related to mysql:

Code:
101019 14:20:12  InnoDB: Started; log sequence number 0 1214781
101019 14:20:12 [Warning] Can't open and lock time zone table: Table 'mysql.time_zone_leap_second' doesn't exist trying to live without them
101019 14:20:12 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
101019 14:20:12 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.1.50-log'  socket: '/home/philip/.local/share/akonadi/db_misc/mysql.socket'  port: 0  Gentoo Linux mysql-5.1.50-r1

_________________
/Phil
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 535
Location: Sweden

PostPosted: Tue Oct 19, 2010 2:35 pm    Post subject: Reply with quote

The previous error
Quote:
[Warning] Can't open and lock time zone table: Table 'mysql.time_zone_leap_second' doesn't exist trying to live without them
went away with the tip in this link:

https://bbs.archlinux.org/viewtopic.php?pid=695037#p695037

But new errors get logged:

Quote:
"[
0: akonadiserver(_Z11akBacktracev+0x35) [0x80527a5]
1: akonadiserver() [0x8052d2c]
2: [0xffffe400]
3: /usr/lib/libdbus-1.so.3(+0xb79a) [0xb750e79a]
]
"


and

Quote:
Unable to register service as org.freedesktop.Akonadi.Control Maybe it's already running?
"[
0: /usr/bin/akonadi_control(_Z11akBacktracev+0x35) [0x805cc95]
1: /usr/bin/akonadi_control() [0x805d21c]
2: [0xffffe400]
3: [0xffffe424]
4: /lib/libc.so.6(gsignal+0x50) [0xb79ee880]
5: /lib/libc.so.6(abort+0x185) [0xb79f00b5]
6: /usr/lib/qt4/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x9d) [0xb7d79efd]
]
"
D-Bus session bus went down - quitting


This is really frustrating
_________________
/Phil
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