Memory Usage

Get help, report and discuss bugs.
Post Reply
jaymef

Memory Usage

Post by jaymef » 05 Feb 2005, 00:52

I love NZBget however I find that when I'm using it, my computer is barley usable. I have a P4 3ghz laptop with 512 DDR running Slackware current. When I run nzbget everything gets really slow, it takes 15-20 seconds to open Firefox for example, and there are delays when switching through tabs etc.

Below is a top output I took when nzbget was running.

30285 root 18 0 18968 18m 1672 R 10.1 3.7 0:00.39 nzbget
30470 root 9 0 18940 18m 1672 S 0.8 3.7 0:00.03 nzbget
30490 root 9 0 18940 18m 1672 S 0.5 3.7 0:00.02 nzbget
30485 root 9 0 18940 18m 1672 S 0.3 3.7 0:00.02 nzbget
30486 root 9 0 18940 18m 1672 S 0.3 3.7 0:00.02 nzbget
30487 root 9 0 18940 18m 1672 S 0.3 3.7 0:00.01 nzbget
30488 root 9 0 18940 18m 1672 S 0.3 3.7 0:00.01 nzbget
30489 root 9 0 18940 18m 1672 S 0.3 3.7 0:00.01 nzbget
30491 root 9 0 18940 18m 1672 S 0.3 3.7 0:00.01 nzbget
30492 root 9 0 18940 18m 1672 S 0.3 3.7 0:00.01 nzbget
30493 root 10 0 18940 18m 1672 S 0.3 3.7 0:00.01 nzbget

is this normal? Does anyone else suffer this much performance loss? I only have 4 simultaneous connections.

placebodk

RE: Memory Usage

Post by placebodk » 05 Feb 2005, 18:26

Hi jaymef,

When I run a top on my server I only get 1 entry for nzbget:

27488 placebo 15 0 80980 6924 3556 S 0.0 1.4 0:00.18 nzbget

It seems that although nzbget is running in server mode and has 6 threads running for downloads (plus 1 thread for the frontend, 1 thread for the queue-manager & 1 thread for the server-comminication = 9 threads totally) it uses about 81 MB. My server is a 600 Mhz VIA Epia so it is not the most speedy of all computers, but I dont feel any additional performance loss (beyond that it's a slow computer)

Questions:

* Are you using nzbget in the client/server mode or do you have multiple nzbget's downloading at the same time? Multiple stand-alone nzbget's downloading at the same time I guess could slow down the machine.

* Have you limited your download rate? I know from experiences with my own server that if the nzbget-server is allowed to suck all the juice from the connection it will slow down web-browsing on my workstation significantly - utilizing the download-rate limit makes browsing back to normal again. This "could" explain your firefox issues

* Is the connection to your laptop firewire/wifi/bluetooth or do you have a normal RJ45 stick in it?

/placebodk

jaymef

RE: Memory Usage

Post by jaymef » 06 Feb 2005, 06:00

Hello,

The number of my nzbget processes vary, it ranges between 4-8 processes.

I'm not sure what "mode" it's running in, i'm simply issuing one command nzbget filename.nzb

My config file is set to open 4 connections, perhaps nzbget uses a process for each connection?

I'm on a wireless connection and usually download @ 450 KBPS

I haven't tried limiting my download rate (not sure how) although this isn't something that I really want to do. Downloading @ 450 KBPS on a P4 3ghz w/ 512 ram should not cause this much performance loss IMO.


placebodk

RE: Memory Usage

Post by placebodk » 06 Feb 2005, 07:55

I've been running nzbget on an IBM thinkpad with almost half the processing power that you have and I've had no problems whatsoever.

It is, however, connected via a regular net cable and is not wireless, which leads me to suspect that could have something to do with your woes.

Are you running the official 0.1.2 or are you running one of the alternative versions? (see other forum threads for explanation of "alternative" versions)

>I'm not sure what "mode" it's running in, i'm simply issuing one command nzbget filename.nzb

In terms of the "alternate" version this would be standalone mode. As long as youre only running one of these at any time you should be ok.

>My config file is set to open 4 connections, perhaps nzbget uses a process for each connection?

Yes. A thread (process) is started for each connection.

>I haven't tried limiting my download rate (not sure how) although this isn't something that I really want to do.

But in order to test if your performance loss is related to your use of wireless connection you need to try limiting it.

My suggestions:

* Try setting the number of connections to 1 instead of 4

* Try limiting the download to 25-50 KB/s or something similar silly. This is only possible in the "alternative" versions so you will not be able to do this if you have an official version installed.

If either of the above gives you better performance, try tweaking the numbers until you start feel performance loss.

/Placebo

exar75

RE: Memory Usage

Post by exar75 » 17 Feb 2005, 00:18

Hello ~

I am having a very similar problem with NZBget. I used NZBget before when I was running fedora with no problems on the same machine gentoo is on now. I start it up and immidiately spins out of control creating up to 300 threads!

Anyone have any idea why it is doing this? I have tried both the version from Gentoo Portage and directly from sourceforge.

Thx for any help

wfhiker

RE: Memory Usage

Post by wfhiker » 17 Feb 2005, 01:04

Hi,

how fast is your system? Does it actually download/decode anything?
Decoding with nzbget is slow, but there shouldn't be much difference between Gentoo and Fedora.

flo

placebodk

RE: Memory Usage

Post by placebodk » 18 Feb 2005, 16:31

exar75, one suggestion would be to try setting the number of possible connections to 1 (in nzbget.cfg) and see how this works out.

Looking at the code the number of connections are very much depending on the threads communicating perfectly with each other - setting the maximum number of connections to 1 would give indications whether or not the multiple threads could be the cause of your problem.

/placebodk

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests