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

High memory usage

Tags: None
(comma "," separated)
Ninpo
Registered Member
Posts
2
Karma
0

High memory usage

Fri Aug 08, 2008 9:37 pm
I saw the other thread about gigabytes of RAM/swap usage but it goes on to say they can't recreate..

From top:

Code: Select all
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
20945 ninpo     20   0  698m 339m  22m S    2 16.9  17:46.19 ktorrent


I get this consistently and the usage just increases over time.

Does ktorrent really need to use all that RAM? I see no settings available in the QT4 version to change how it uses/allocates memory. At this time I have 3 torrents downloading but at slow download speeds and 1 seeding with no current connections active.

Global connection limit is 200, current activity as far as netstat is concerned is:

ninpo@ncc-1701-e ~ $ sudo netstat -anp | grep -i ktorrent | grep -i tcp | wc -l
99

I didn't get these issues with utorrent even with heavier usage. I would however like to continue to use ktorrent, I much prefer the interface, the superior IP ban list management and the plugin system are all very welcome features. If it is misconfiguration on my might I'd love to know how I can mitigate this.

Thanks in advance
agforsyth
Registered Member
Posts
133
Karma
0

Fri Aug 08, 2008 10:10 pm
Well, you don't say what version you're using. But, for me, with the latest version, 3 plugins loaded, downloading 1, seeding 6, 5 not started:
Code: Select all
PID    USER     PR  NI  VIRT  RES  SHR S %CPU %MEM  TIME+    COMMAND
12589 adam      20   0  160m  41m  27m S  1.7 16.7  24:53.87 ktorrent

and netstat:
Code: Select all
sudo netstat -anp | grep -i ktorrent | grep -i tcp | wc -l
2


I have only 256 megs of ram, with 450 megs of swap, and I don't have any problem with ktorrent's memory usage. I think George has further optimized memory usage recently too.

Also, remember that KDE libraries are swelling that number, but get reused by any other KDE applications you use.
Ninpo
Registered Member
Posts
2
Karma
0

Fri Aug 08, 2008 10:17 pm
Oops I forgot the version, my apologies. Version when I posted the above was 3.1.1, I just upgraded to 3.1.2.

Code: Select all
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  567 ninpo     20   0  579m 281m  20m S    1 14.0   0:05.60 ktorrent


4 torrents loaded, 3 downloading 1 seeding.
agforsyth
Registered Member
Posts
133
Karma
0

Fri Aug 08, 2008 10:54 pm
What plugins do you have loaded? Are any of the torrents particularly big? If you look in the log file, how many chunks does it say you have in memory for each torrent? (Look at all the lines in a ten second span, there will be one line per torrent)

I just added another torrent, and it's downloading at 430KB/s, and is connected to 40 peers, and the numbers went up about 20%, but it's nowhere near what you have. Also my netstat still reads about the number of peers I have connected.

Anyway, I don't know why I'm answering this, I guess just because my experience is very different from yours, and I wonder what's causing your high ram usage.

When that download completed, my memory usage went back to what it was before.
George
Moderator
Posts
5421
Karma
1

Sun Aug 10, 2008 7:53 am
The number of chunks in the log file would be interesting, enable the logviewer plugin so you can see all the log messages at runtime.


Also, what is the chunk size of these torrents ? If it is quite big, things go up a lot faster.
imported4-brendon
Registered Member
Posts
7
Karma
0

Tue Aug 12, 2008 9:31 pm
Ninpo,

What is the total load on the system when this is happening? (Oh, and give George whatever he asks for, he can really help!)

Brendon.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]