Opened 12 years ago

Closed 12 years ago

#1909 closed Bug (invalid)

High CPU usage with 2,500 torrents

Reported by: mlapaglia Owned by:
Priority: Normal Milestone: None Set
Component: Transmission Version: 1.51
Severity: Normal Keywords:
Cc:

Description

I'm sure this is to be expected, but I'd like to pinpoint the areas affecting performance. I currently have around 2,500 torrents loaded, and a single-core processor sits at 90-100% usage, and my intel core 2 duo is sitting at 60-70%. Can someone direct me in obtaining output logs to help developers?

Change History (10)

comment:1 Changed 12 years ago by livings124

Could you run a shark profile? http://trac.transmissionbt.com/wiki/Shark

I'm not sure what can be done with this ticket though -having 2,500 is a reason for high cpu usage.

comment:2 Changed 12 years ago by mlapaglia

I'm running Ubuntu 8.10 x64, is valgrind the only way to go about this?

comment:3 follow-up: Changed 12 years ago by mlapaglia

Also, running the same under rtorrent (which I switched from because it kept crashing, lagging, etc) didn't tax my CPU anything about 5-10%.

Apples and Oranges I guess, but if the devs are wanting to optimize their code, loading the program down with a lot of torrents seems like a place to start :P.

comment:4 in reply to: ↑ 3 Changed 12 years ago by charles

Replying to mlapaglia:

if the devs are wanting to optimize their code, loading the program down with a lot of torrents seems like a place to start :P.

I'm afraid I don't have 2,500 torrents handy. :)

Would you be interested in generating an oprofile report?

comment:5 Changed 12 years ago by mlapaglia

Most certainly. I'll get it running tonight. How long should I let it go before dumping the report?

comment:6 Changed 12 years ago by mlapaglia

Actually, if you could give me a few steps on completing this I'd appreciate it. It looks like there's a way to annotate the source code with oprofile? Would that be helpful?

I don't know what commands would produce results that would be good for you to look at.

comment:7 Changed 12 years ago by charles

I may be able to help you in the #transmission channel on freenode. There are a couple of other users there, such as wereHamster, who know more about oprofile wrangling than I do...

comment:8 Changed 12 years ago by wereHamster

A simple callgraph would be enough for now. It helps narrowing down which function(s) take the most time.

gprof2dot can make nice callgraphs (see the 'oprofile' section). If you don't want to install gprof2dot, you can also send the text output form opreport to tom@… and I'll make a the png.

comment:9 Changed 12 years ago by livings124

mlapaglia: ping

comment:10 Changed 12 years ago by charles

  • Resolution set to invalid
  • Status changed from new to closed

Please reopen this ticket when more information is available.

Note: See TracTickets for help on using tickets.