Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Oct 2006 08:01:10 -0400
From:      "Andy Greenwood" <greenwood.andy@gmail.com>
To:        "Matthew Rench" <lists@pelennor.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: bittorrent consuming 100% cpu
Message-ID:  <3ee9ca710610170501q20197e7es72fde9f895190416@mail.gmail.com>
In-Reply-To: <20061017004401.GA430@gandalf.pelennor.net>
References:  <20061017004401.GA430@gandalf.pelennor.net>

next in thread | previous in thread | raw e-mail | index | archive | help
I'd recommend transmission. You can get the source from
http://transmission.m0k.org/. You can configure it for console use
with

./configure --disable-gtk && gmake. It needs GNU make, BSD make won't
work. Uses very little resources as it's written in C, so your python
port won't matter.

On 10/16/06, Matthew Rench <lists@pelennor.net> wrote:
> Hello,
>
> Due to the recent security advisor, I upgraded my python port. Foolishly,
> I managed to upgrade from version 2.4 to 2.5, which forced me to also upgrade
> my bittorrent port (from version 3.x to 4.20.2_1,1). Unfortunately, I now
> find that the bittorrent console app (/usr/local/bin/bittorrent-console)
> now consumes 100% of my CPU, according to top. I am quite sure that even
> 5-10 instances of the previous version did not together use this much CPU.
>
> So, I ktrace'd a running copy of bittorrent, and found the following,
> repeated more or less continually:
>
> 493 python   1161045605.243985 CALL  poll(0x8138000,0x5,0xe)
> 493 python   1161045605.272699 RET   poll 0
> 493 python   1161045605.272750 CALL  gettimeofday(0x281dd788,0)
> 493 python   1161045605.272783 RET   gettimeofday 0
> 493 python   1161045605.273029 CALL  gettimeofday(0xbfbfec94,0)
> 493 python   1161045605.273097 RET   gettimeofday 0
> 493 python   1161045605.273865 CALL  gettimeofday(0xbfbfdf34,0)
> 493 python   1161045605.273955 RET   gettimeofday 0
> 493 python   1161045605.274837 CALL  gettimeofday(0xbfbfe014,0)
> 493 python   1161045605.274920 RET   gettimeofday 0
> 493 python   1161045605.275304 CALL  gettimeofday(0xbfbfdd14,0)
> 493 python   1161045605.275375 RET   gettimeofday 0
> 493 python   1161045605.276452 CALL  gettimeofday(0xbfbfec94,0)
> 493 python   1161045605.276543 RET   gettimeofday 0
> 493 python   1161045605.276758 CALL  poll(0x87ede20,0x3,0)
> 493 python   1161045605.276845 RET   poll 0
> 493 python   1161045605.276909 CALL  poll(0x8138000,0x4,0)
> 493 python   1161045605.276956 RET   poll 0
> 493 python   1161045605.276998 CALL  poll(0x8138000,0x5,0x14)
> 493 python   1161045605.302720 RET   poll 0
>
> Since I don't know much about python, I'm at a loss to explain this. Has
> anyone else had similar issues with newer versions of bittorrent? Is there
> a different client I should be using?
>
> mdr
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>


-- 
I'm nerdy in the extreme and whiter than sour cream



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ee9ca710610170501q20197e7es72fde9f895190416>