https://bugs.kde.org/show_bug.cgi?id=243569


juha.heljora...@iki.fi changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |juha.heljora...@iki.fi




--- Comment #24 from  <juha heljoranta iki fi>  2011-09-14 08:36:16 ---
kmail constantly eats 5-6 % cpu on my laptop. This is quite annoying because it
consumes battery quite fast.

I did some quick debugging.

$ kmail --version
Qt: 4.7.3
KDE Development Platform: 4.6.5 (4.6.5)
KMail: 1.13.7
$ cat /etc/system-release
Fedora release 15 (Lovelock)
$ strace -p $(pidof kmail) &> /tmp/kmail.strace ; (Ctrl-C after few seconds)
$ sort /tmp/kmail.strace | uniq -c | sort -n
      1 poll([{fd=3, events=POLLIN}, {fd=9, events=POLLIN}, {fd=8,
events=POLLIN}, {fd=5, events=POLLIN}, {fd=14, events=POLLIN}, {fd=16,
events=POLLIN}, {fd=25, events=POLLIN}, {fd=26, events=POLLIN}, {fd=27,
events=POLLIN}, {fd=31, events=POLLIN}, {fd=33, events=POLLIN}, {fd=36,
events=POLLIN}, {fd=38, events=POLLIN}, {fd=37, events=POLLIN}, {fd=39,
events=POLLIN}], 15, 10) = 0 (Timeout)
      1 poll([{fd=3, events=POLLIN}, {fd=9, events=POLLIN}, {fd=8,
events=POLLIN}, {fd=5, events=POLLIN}, {fd=14, events=POLLIN}, {fd=16,
events=POLLIN}, {fd=25, events=POLLIN}, {fd=26, events=POLLIN}, {fd=27,
events=POLLIN}, {fd=31, events=POLLIN}, {fd=33, events=POLLIN}, {fd=36,
events=POLLIN}, {fd=38, events=POLLIN}, {fd=37, events=POLLIN}, {fd=39,
events=POLLIN}], 15, 11) = 0 (Timeout)
      1 poll([{fd=3, events=POLLIN}, {fd=9, events=POLLIN}, {fd=8,
events=POLLIN}, {fd=5, events=POLLIN}, {fd=14, events=POLLIN}, {fd=16,
events=POLLIN}, {fd=25, events=POLLIN}, {fd=26, events=POLLIN}, {fd=27,
events=POLLIN}, {fd=31, events=POLLIN}, {fd=33, events=POLLIN}, {fd=36,
events=POLLIN}, {fd=38, events=POLLIN}, {fd=37, events=POLLIN}, {fd=39,
events=POLLIN}], 15, 15 <unfinished ...>
      1 poll([{fd=3, events=POLLIN}, {fd=9, events=POLLIN}, {fd=8,
events=POLLIN}, {fd=5, events=POLLIN}, {fd=14, events=POLLIN}, {fd=16,
events=POLLIN}, {fd=25, events=POLLIN}, {fd=26, events=POLLIN}, {fd=27,
events=POLLIN}, {fd=31, events=POLLIN}, {fd=33, events=POLLIN}, {fd=36,
events=POLLIN}, {fd=38, events=POLLIN}, {fd=37, events=POLLIN}, {fd=39,
events=POLLIN}], 15, 2) = 0 (Timeout)
      1 poll([{fd=3, events=POLLIN}, {fd=9, events=POLLIN}, {fd=8,
events=POLLIN}, {fd=5, events=POLLIN}, {fd=14, events=POLLIN}, {fd=16,
events=POLLIN}, {fd=25, events=POLLIN}, {fd=26, events=POLLIN}, {fd=27,
events=POLLIN}, {fd=31, events=POLLIN}, {fd=33, events=POLLIN}, {fd=36,
events=POLLIN}, {fd=38, events=POLLIN}, {fd=37, events=POLLIN}, {fd=39,
events=POLLIN}], 15, 4) = 0 (Timeout)
      1 Process 2079 detached
     44 poll([{fd=3, events=POLLIN}, {fd=9, events=POLLIN}, {fd=8,
events=POLLIN}, {fd=5, events=POLLIN}, {fd=14, events=POLLIN}, {fd=16,
events=POLLIN}, {fd=25, events=POLLIN}, {fd=26, events=POLLIN}, {fd=27,
events=POLLIN}, {fd=31, events=POLLIN}, {fd=33, events=POLLIN}, {fd=36,
events=POLLIN}, {fd=38, events=POLLIN}, {fd=37, events=POLLIN}, {fd=39,
events=POLLIN}], 15, 0) = 0 (Timeout)
     84 poll([{fd=3, events=POLLIN}, {fd=9, events=POLLIN}, {fd=8,
events=POLLIN}, {fd=5, events=POLLIN}, {fd=14, events=POLLIN}, {fd=16,
events=POLLIN}, {fd=25, events=POLLIN}, {fd=26, events=POLLIN}, {fd=27,
events=POLLIN}, {fd=31, events=POLLIN}, {fd=33, events=POLLIN}, {fd=36,
events=POLLIN}, {fd=38, events=POLLIN}, {fd=37, events=POLLIN}, {fd=39,
events=POLLIN}], 15, 15) = 0 (Timeout)
     87 poll([{fd=3, events=POLLIN}, {fd=9, events=POLLIN}, {fd=8,
events=POLLIN}, {fd=5, events=POLLIN}, {fd=14, events=POLLIN}, {fd=16,
events=POLLIN}, {fd=25, events=POLLIN}, {fd=26, events=POLLIN}, {fd=27,
events=POLLIN}, {fd=31, events=POLLIN}, {fd=33, events=POLLIN}, {fd=36,
events=POLLIN}, {fd=38, events=POLLIN}, {fd=37, events=POLLIN}, {fd=39,
events=POLLIN}], 15, 14) = 0 (Timeout)
    174 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1883, ...}) = 0
    438 read(8, 0x1b94df4, 4096)                = -1 EAGAIN (Resource
temporarily unavailable)
$ lsof -n -p $(pidof kmail) > /tmp/kmail.lsof
# select file descriptors from kmail strace
$ for fd in $(sort -u /tmp/kmail.strace | egrep -o 'fd=[[:digit:]]+' | sort -u
| sed -e 's/fd=//'); do egrep " $fd(u|r|w)" /tmp/kmail.lsof; done
kmail   2079 xxx   14u  unix 0xffff8801fd17ad80       0t0   24968 socket
kmail   2079 xxx   16u  unix 0xffff8801fd370680       0t0   23184
/tmp/ksocket-xxx/kmailGm2079.slave-socket
kmail   2079 xxx   25u  unix 0xffff8801cf564ac0       0t0   27569 socket
kmail   2079 xxx   26r  0000                0,9         0    4063 anon_inode
kmail   2079 xxx   27u  unix 0xffff8801f67e57c0       0t0   38315 socket
kmail   2079 xxx    3r  FIFO                0,8       0t0   23983 pipe
kmail   2079 xxx   31u  unix 0xffff8801cf55e800       0t0   44507
/tmp/ksocket-xxx/kmailfp2079.slave-socket
kmail   2079 xxx   33u  unix 0xffff8801cf55f840       0t0   44511
/tmp/ksocket-xxx/kmailKU2079.slave-socket
kmail   2079 xxx   36u  unix 0xffff8801f67e71c0       0t0   93677
/tmp/ksocket-xxx/kmailGS2079.slave-socket
kmail   2079 xxx   37u  sock                0,6       0t0  135541 can't
identify protocol
kmail   2079 xxx   38u  unix 0xffff8801cf55aa40       0t0   91663
/tmp/ksocket-xxx/kmailug2079.slave-socket
kmail   2079 xxx   39u  unix 0xffff8801f3935480       0t0  135542 socket
kmail   2079 xxx    5u  unix 0xffff88022d8a3a80       0t0   22970 socket
kmail   2079 xxx    8u  unix 0xffff88020393f1c0       0t0   23985 socket
kmail   2079 xxx    9u  unix 0xffff8801fd17de40       0t0   24801 socket

Hope this helps.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs

Reply via email to