This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[3.3rc1] Memory leaks

Tags: None
(comma "," separated)
non7top
Registered Member
Posts
54
Karma
0
OS

[3.3rc1] Memory leaks

Fri Nov 13, 2009 4:41 pm
Hello all.

After upgrading from 3.2 i;ve noticed that memory usage has increased a lot. After a week ktorrent may consume up to 2Gb ram.


This and entry from top after a couple of days running ktorrent
Code: Select all
PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
30616 non7top   20   0 1076m 306m  14m S   14 15.2 971:52.62 ktorrent
NForce
Registered Member
Posts
19
Karma
0

Re: [3.3rc1] Memory leaks

Fri Nov 13, 2009 9:31 pm
I can confirm that. KTorrent 3.2.x was using about 20mb of RAM or so, 3.3 (release version) has eaten 150mb for about six hours
MoDaX
Registered Member
Posts
241
Karma
0
OS

Re: [3.3rc1] Memory leaks

Sat Nov 14, 2009 11:31 am
Yes, 3.3 is eating memory fast.
George
Moderator
Posts
5421
Karma
1

Re: [3.3rc1] Memory leaks

Sat Nov 14, 2009 12:17 pm
Is anybody using the tracker grouping script ?
MoDaX
Registered Member
Posts
241
Karma
0
OS

Re: [3.3rc1] Memory leaks

Sat Nov 14, 2009 1:36 pm
George wrote:Is anybody using the tracker grouping script ?

I'm not
NForce
Registered Member
Posts
19
Karma
0

Re: [3.3rc1] Memory leaks

Sat Nov 14, 2009 2:49 pm
George wrote:Is anybody using the tracker grouping script ?

Me neither. But I think I'll start if it will work good
non7top
Registered Member
Posts
54
Karma
0
OS

Re: [3.3rc1] Memory leaks

Sat Nov 14, 2009 5:24 pm
I'm using the script. For now I've updated to 3.3 and will check how it behaves.
George
Moderator
Posts
5421
Karma
1

Re: [3.3rc1] Memory leaks

Tue Nov 17, 2009 6:40 pm
The script is triggering a memory leak in krosspython, which is reported but hasn't been fixed yet.
George
Moderator
Posts
5421
Karma
1

Re: [3.3rc1] Memory leaks

Tue Nov 17, 2009 6:46 pm
I fixed a whole bunch of memory leaks last week, but those weren't really serious (mostly forgetting to cleanup stuff at exit, should not impact runtime memory usage).

Gonna do some more valgrind runs with running torrents.

Btw, which plugins are loaded ? Is DHT enabled ?
NForce
Registered Member
Posts
19
Karma
0

Re: [3.3rc1] Memory leaks

Tue Nov 17, 2009 10:28 pm
DHT was enabled, no plugins were running (maybe just stats and whatever is enabled by default)
shanechko
Registered Member
Posts
9
Karma
0

Re: [3.3rc1] Memory leaks

Fri Nov 20, 2009 5:42 am
In rev: 1051036

All memory freed, but only at exit.

Attached massif(valgrind) file.
MoDaX
Registered Member
Posts
241
Karma
0
OS

Re: [3.3rc1] Memory leaks

Fri Nov 20, 2009 2:24 pm
Memory leak is in DHT code. Disabling it solves the problem.
shanechko
Registered Member
Posts
9
Karma
0

Re: [3.3rc1] Memory leaks

Fri Nov 20, 2009 6:04 pm
Visited dht nodes list keep growing.
MoDaX
Registered Member
Posts
241
Karma
0
OS

Re: [3.3rc1] Memory leaks

Tue Nov 24, 2009 5:37 pm
Seems to be fixed in 3.3.1
George
Moderator
Posts
5421
Karma
1

Re: [3.3rc1] Memory leaks

Wed Nov 25, 2009 5:40 pm
MoDaX wrote:Seems to be fixed in 3.3.1


Yes, I added some simple limits on DHT tasks, so when the lists grows to big they will just stop.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]