Moderator
|
|
Registered Member
|
I tried it with the last weekly snpashot too and found the same problems.
strace showed me, that ktorrent made a lot of ioctl and select kernel calls while the 99% phases (more then 70%). I try it with anonsvn after the new build is finished an will post what happened there (with more detailed logs). |
Registered Member
|
the problem still exists (but not that heavy) with the latest svn snapshot i could get.
CPU: Opteron 64Bit long mode running here are the summaries from strace: ktorrent working fine: Process 21899 detached Process 21925 detached Process 21926 detached % time seconds usecs/call calls errors syscall ------ ----------- ----------- --------- --------- ---------------- 71.75 0.050217 1 52482 select 22.87 0.016008 6 2585 write 3.85 0.002691 0 182163 ioctl 0.42 0.000295 2 126 126 connect 0.31 0.000217 0 61692 4 sendto 0.28 0.000195 0 1329 39 read 0.25 0.000175 2 80 getpeername 0.19 0.000135 1 144 close 0.07 0.000051 0 3662 recvfrom 0.00 0.000000 0 54 open 0.00 0.000000 0 3321 3321 stat 0.00 0.000000 0 128 fstat 0.00 0.000000 0 1200 1200 lstat 0.00 0.000000 0 277 poll 0.00 0.000000 0 12 lseek 0.00 0.000000 0 165 mmap 0.00 0.000000 0 8 mprotect 0.00 0.000000 0 163 munmap 0.00 0.000000 0 6 brk 0.00 0.000000 0 29 rt_sigprocmask 0.00 0.000000 0 29 29 rt_sigreturn 0.00 0.000000 0 10 writev 0.00 0.000000 0 86 80 access 0.00 0.000000 0 1321 nanosleep 0.00 0.000000 0 126 socket 0.00 0.000000 0 26 accept 0.00 0.000000 0 26 setsockopt 0.00 0.000000 0 77 getsockopt 0.00 0.000000 0 29 kill 0.00 0.000000 0 304 fcntl 0.00 0.000000 0 75 getppid 0.00 0.000000 0 29 29 rt_sigsuspend 0.00 0.000000 0 1 restart_syscall ------ ----------- ----------- --------- --------- ---------------- 100.00 0.069984 311765 4828 total ktorrent 99% cpu usage: Process 21899 detached Process 21925 detached Process 21926 detached % time seconds usecs/call calls errors syscall ------ ----------- ----------- --------- --------- ---------------- 69.55 0.110266 1 187156 select 22.81 0.036158 0 601563 ioctl 7.09 0.011246 0 204472 4 sendto 0.19 0.000298 2 180 5 close 0.14 0.000223 2 110 110 connect 0.09 0.000139 0 1304 recvfrom 0.08 0.000130 0 1352 1 write 0.05 0.000079 2 38 munmap 0.00 0.000000 0 300 read 0.00 0.000000 0 5 open 0.00 0.000000 0 858 858 stat 0.00 0.000000 0 6 fstat 0.00 0.000000 0 312 312 lstat 0.00 0.000000 0 658 poll 0.00 0.000000 0 1 lseek 0.00 0.000000 0 36 mmap 0.00 0.000000 0 1 brk 0.00 0.000000 0 165 rt_sigprocmask 0.00 0.000000 0 165 165 rt_sigreturn 0.00 0.000000 0 8 writev 0.00 0.000000 0 97 nanosleep 0.00 0.000000 0 110 socket 0.00 0.000000 0 15 accept 0.00 0.000000 0 47 getpeername 0.00 0.000000 0 15 setsockopt 0.00 0.000000 0 64 getsockopt 0.00 0.000000 0 165 kill 0.00 0.000000 0 250 fcntl 0.00 0.000000 0 20 getppid 0.00 0.000000 0 165 165 rt_sigsuspend 0.00 0.000000 0 1 restart_syscall ------ ----------- ----------- --------- --------- ---------------- 100.00 0.158539 999639 1620 total i made also 2 logs from similar situations, but they are much to long to post here. If you want i can send them you per mail. hope that helps. (and thanks for that fine torrent downloader, i love it) |
Registered Member
|
I have high CPU consumption too with the latest SVN.
- DHT enabled - Use Protocol encryption selected - Allow Unencrypted connections deselected What is more, i just get ktorrent crash (unusable unfortunelly): but ktorrent still is in the memory consuming all the CPU. |
Registered Member
|
with the latest svn (from now) ... I dont know if it helps .. using gcc 3.3.1 and qt 3.3.5 , kde3.5.2 running pclinuxos (mandriva based). At the moment of 99% CPU :
here is a strace log http://www.0bock.info/ktorrent-strace.log ~3.5MB |
Moderator
|
|
Moderator
|
|
Registered Member
|
EDIT:
the bug still exist The problem i tryed with a clean install, because my Harddrive (samsung 1614N) crashed 2 days ago (hardware error ... klack klack klack ). With only 2 torrents it was ok, but with more torrents the CPU rise up....
Last edited by LinuxDoc on Thu Jul 06, 2006 11:06 pm, edited 2 times in total.
|
Registered Member
|
|
Moderator
|
|
Registered Member
|
|
Registered Member
|
|
Registered Member
|
I just got this bug too, and came here to post about it. Aparantly it's a well known issue. However, there seems to be no mention of a possible related memory leak:
This is with one torrent seeding. Encryption is ON as my ISP throttles. If there is any other info you need, just replay, I have auto-notify on. edit: I should probably point out I'm not using the SVN version, but the beta. Maybe this has already been fixed. |
Moderator
|
Registered users: Bing [Bot], Evergrowing, Google [Bot]