Much higher CPU utilization in 2.42+ vs. 2.42?

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
rhester72
Posts: 20
Joined: Tue Dec 28, 2010 1:33 pm

Much higher CPU utilization in 2.42+ vs. 2.42?

Post by rhester72 »

Running Transmission on an embedded device (read: MIPSEL-based router), I've noticed that CPU utilization during moderate torrenting with 2.42 ranges anywhere from 35-90%, depending.

2.42+, however, with the exact same torrents (mid-stream, literally switching between the two engines), consistently uses pretty close to 100% CPU. This appears to be with or without PEX, DHT, LPD, and uTP, and the web interface being used or not.

Were there significant changes to the core that would account for this? I can't really see that the actual transfer performance of the app improved at all (it appears to be roughly the same), so I'm not quite sure what the spike in processor utilization is all about.

Both engines were built with the same SDK/compiler, the _only_ variance is the Transmission source itself.

Thoughts?

Rodney
rhester72
Posts: 20
Joined: Tue Dec 28, 2010 1:33 pm

Re: Much higher CPU utilization in 2.42+ vs. 2.42?

Post by rhester72 »

No verification. It's r13156 (latest SVN). I figured debugging code would be handled by a compile flag, no?

Rodney
rhester72
Posts: 20
Joined: Tue Dec 28, 2010 1:33 pm

Re: Much higher CPU utilization in 2.42+ vs. 2.42?

Post by rhester72 »

Sure enough - NDEBUG is set for release builds only, it appears. The binary is still a LOT bigger than 2.42, but significantly smaller with NDEBUG enabled, and while CPU utilization is also still observably higher than 2.42, it's not pegged at 100% anymore. =)

Rodney
ssss25
Posts: 14
Joined: Wed Jan 18, 2012 12:06 am

Re: Much higher CPU utilization in 2.42+ vs. 2.42?

Post by ssss25 »

Hi,

I too am noticing that Transmission 2.42 is eating up all my CPU! It's running on DNS-323 and I only found out when my accessing files from was very slow unless I stop transmission. I was on 2.2 and I had no issues before I upgraded to 2.42.

I have:

transmission-remote 2.42 (13028)

I downloaded from transmission website, is there something I can do. Not sure how I can check for this debugging mentioned here?

Thanks,
ssss25
Posts: 14
Joined: Wed Jan 18, 2012 12:06 am

Re: Much higher CPU utilization in 2.42+ vs. 2.42?

Post by ssss25 »

X190...

All configuration, active connections and number of torrents are the same. In fact much less torrents.. more CPU.

I will try the link u sent, although it looks the same place I downloaded my version. The plus means no debugging enabled?
ssss25
Posts: 14
Joined: Wed Jan 18, 2012 12:06 am

Re: Much higher CPU utilization in 2.42+ vs. 2.42?

Post by ssss25 »

Also,

When I do top command, I see four Instances of transmission-daemon -g running?
Jordan
Transmission Developer
Posts: 2312
Joined: Sat May 26, 2007 3:39 pm
Location: Titania's Room

Re: Much higher CPU utilization in 2.42+ vs. 2.42?

Post by Jordan »

rhester72 wrote:Running Transmission on an embedded device (read: MIPSEL-based router), I've noticed that CPU utilization during moderate torrenting with 2.42 ranges anywhere from 35-90%, depending.

2.42+, however, with the exact same torrents (mid-stream, literally switching between the two engines), consistently uses pretty close to 100% CPU. This appears to be with or without PEX, DHT, LPD, and uTP, and the web interface being used or not.

Were there significant changes to the core that would account for this?
x190 is correct -- the nightly builds contain significantly more built-in correctness tests that try to smoke out problems before the stable release. Some of these are expensive in terms of CPU use, so the nightlies by design take up more CPU cycles than the official releases.
Jordan
Transmission Developer
Posts: 2312
Joined: Sat May 26, 2007 3:39 pm
Location: Titania's Room

Re: Much higher CPU utilization in 2.42+ vs. 2.42?

Post by Jordan »

ssss25 wrote:When I do top command, I see four Instances of transmission-daemon -g running?
Some versions of top show threads as separate processes, and it's likely that's what's happening here. If so, it will appear in top that transmission is using 4x more memory than it actually is.

On the other hand, maybe you've got four copies of transmission-daemon running for some reason. Try killing a few to find out :wink:
rhester72
Posts: 20
Joined: Tue Dec 28, 2010 1:33 pm

Re: Much higher CPU utilization in 2.42+ vs. 2.42?

Post by rhester72 »

Jordan wrote:
rhester72 wrote:Running Transmission on an embedded device (read: MIPSEL-based router), I've noticed that CPU utilization during moderate torrenting with 2.42 ranges anywhere from 35-90%, depending.

2.42+, however, with the exact same torrents (mid-stream, literally switching between the two engines), consistently uses pretty close to 100% CPU. This appears to be with or without PEX, DHT, LPD, and uTP, and the web interface being used or not.

Were there significant changes to the core that would account for this?
x190 is correct -- the nightly builds contain significantly more built-in correctness tests that try to smoke out problems before the stable release. Some of these are expensive in terms of CPU use, so the nightlies by design take up more CPU cycles than the official releases.
But in fairness, aren't those "correctness tests" disabled with NDEBUG?

Rodney
WGH
Posts: 1
Joined: Sat Jan 21, 2012 11:13 am

Re: Much higher CPU utilization in 2.42+ vs. 2.42?

Post by WGH »

Even 2.42 release build uses 100% CPU for me.
Untitled.png
Untitled.png (5.59 KiB) Viewed 9879 times
Transmission 2.22 (the latest stable version in Gentoo portage tree) didn't exhibit such behaviour. The BitTorrent file I'm downloading is pretty large though (both in terms of absolute size and number of files).
rhester72
Posts: 20
Joined: Tue Dec 28, 2010 1:33 pm

Re: Much higher CPU utilization in 2.42+ vs. 2.42?

Post by rhester72 »

As I mentioned, my 100% CPU results were coming from 13156, though I concur it does seem somehow linked to the size of the torrent (absolute file size, not # of files in the torrent).

Rodney
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Much higher CPU utilization in 2.42+ vs. 2.42?

Post by rb07 »

All versions have problems with very large torrents (we* tested one of 1.2 TB composed of a large number of files).

The only solution was to use the daemon, its better than the GUI applications using about 50% of the resources used by the application.

* "We" means a user and me testing the Windows port of Transmission-Qt, and later the daemon running on Windows (actually 2 versions of the daemon, one built for Cygwin which has the better performance, and another build with MinGW).
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Much higher CPU utilization in 2.42+ vs. 2.42?

Post by rb07 »

Correction: The solution was to use the daemon, and NOT use the Web client but instead use Transmission-Qt with a remote session.

The reason for not using the Web client was the number of files, since it was a big number and the Web client shows a flat list which makes it useless, things get even worse when the browser takes 100% CPU (on one core of a multi-core CPU, otherwise is browser+transmission trashing your CPU) when trying to show that file list.
ssss25
Posts: 14
Joined: Wed Jan 18, 2012 12:06 am

Re: Much higher CPU utilization in 2.42+ vs. 2.42?

Post by ssss25 »

Thanks for all your replies..

Currently I have:

transmission-remote 2.42 (13028)

I didn't get any nightly build, I just got it fom the Trasmission main download site, and clicked on latest:

http://forum.dsmg600.info/t2719-%5BREL% ... ssion.html

Back then, I will get the most recent one, or try the link in this thread and report back.

Thanks,
ssss25
Posts: 14
Joined: Wed Jan 18, 2012 12:06 am

Re: Much higher CPU utilization in 2.42+ vs. 2.42?

Post by ssss25 »

Ok, so whatever is posted at:

http://forum.dsmg600.info/t2719-%5BREL% ... ssion.html

is build 13028

Where do I get the famous r13113?

Thx.
Post Reply