High cpu usage during download

General support for problems installing or using Deluge
f.lambe
New User
New User
Posts: 8
Joined: Thu Apr 11, 2013 9:17 am

Re: High cpu usage during download

Post by f.lambe »

I've downloaded some torrent and...here we are...cpu up to 70%. I've to delete again stat folder? Is there some permanent fix?
bro
Top Bloke
Top Bloke
Posts: 364
Joined: Sun Aug 28, 2011 6:46 pm
Location: Norway

Re: High cpu usage during download

Post by bro »

This must be a bug somewhere. Without being able to reproduce the issue it's nearly impossible to fix. Is it a specific torrent that causes this?
When reporting issues, please include any relevant information such as OS (and version), python version (for Windows users this depends on which Deluge installer was used), Deluge version and plugin version.
Smyl3
New User
New User
Posts: 5
Joined: Thu May 09, 2013 1:56 am

Re: High cpu usage during download

Post by Smyl3 »

bro wrote:This must be a bug somewhere. Without being able to reproduce the issue it's nearly impossible to fix. Is it a specific torrent that causes this?
No, high cpu usage also exists without any torrents, as I wrote it before. It's certainly a bug, but unfortunately nobody has any idea or solution for that yet. Useless client for me in that state.
f.lambe
New User
New User
Posts: 8
Joined: Thu Apr 11, 2013 9:17 am

Re: High cpu usage during download

Post by f.lambe »

Exactly, it happens with any torrents.

Is there some more infos that i could give?
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: High cpu usage during download

Post by Cas »

Smyl3 wrote:No, high cpu usage also exists without any torrents, as I wrote it before. It's certainly a bug, but unfortunately nobody has any idea or solution for that yet. Useless client for me in that state.
Sorry but I do not think your issue is relevant to this topic.
Smyl3
New User
New User
Posts: 5
Joined: Thu May 09, 2013 1:56 am

Re: High cpu usage during download

Post by Smyl3 »

Cas wrote:Sorry but I do not think your issue is relevant to this topic.
I can create a new separated topic for high cpu usage without any torrents if there aren't any relationship between those problems/bugs, if that helps. Should I?
bro
Top Bloke
Top Bloke
Posts: 364
Joined: Sun Aug 28, 2011 6:46 pm
Location: Norway

Re: High cpu usage during download

Post by bro »

If it's the daemon that uses all the CPU you can try to profile it and I can look at the results.

To profile the daemon do this:

To get the absolute path of deluged

Code: Select all

$ which deluged
Will output something like "/usr/local/bin/deluged"

Then run deluged like this:

Code: Select all

python -m cProfile -o profile.out /usr/local/bin/deluged -l deluged.log -L info -d
If you need to specify a config directory, use -c "path to config dir", e.g.

Code: Select all

python -m cProfile -o profile.out /usr/local/bin/deluged -l deluged.log -L info -d -c /home/youruser/.config/deluge
You can open the profile results with runsnake but I'll gladly look at it.
When reporting issues, please include any relevant information such as OS (and version), python version (for Windows users this depends on which Deluge installer was used), Deluge version and plugin version.
bro
Top Bloke
Top Bloke
Posts: 364
Joined: Sun Aug 28, 2011 6:46 pm
Location: Norway

Re: High cpu usage during download

Post by bro »

Smyl3 wrote:
Cas wrote:Sorry but I do not think your issue is relevant to this topic.
I can create a new separated topic for high cpu usage without any torrents if there aren't any relationship between those problems/bugs, if that helps. Should I?
Can verify if it's the daemon or client that uses all the CPU?
When reporting issues, please include any relevant information such as OS (and version), python version (for Windows users this depends on which Deluge installer was used), Deluge version and plugin version.
Smyl3
New User
New User
Posts: 5
Joined: Thu May 09, 2013 1:56 am

Re: High cpu usage during download

Post by Smyl3 »

bro wrote:Can verify if it's the daemon or client that uses all the CPU?
Can I? I'm using the windows version of Deluge..
f.lambe
New User
New User
Posts: 8
Joined: Thu Apr 11, 2013 9:17 am

Re: High cpu usage during download

Post by f.lambe »

bro wrote:If it's the daemon that uses all the CPU you can try to profile it and I can look at the results.

To profile the daemon do this:

To get the absolute path of deluged

Code: Select all

$ which deluged
Will output something like "/usr/local/bin/deluged"

Then run deluged like this:

Code: Select all

python -m cProfile -o profile.out /usr/local/bin/deluged -l deluged.log -L info -d
If you need to specify a config directory, use -c "path to config dir", e.g.

Code: Select all

python -m cProfile -o profile.out /usr/local/bin/deluged -l deluged.log -L info -d -c /home/youruser/.config/deluge
You can open the profile results with runsnake but I'll gladly look at it.

ok, i'll do that. It's necessary to use thin client with deluged daemon?
Post Reply