From owner-freebsd-questions@FreeBSD.ORG Tue Oct 17 12:01:12 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4131E16A84A for ; Tue, 17 Oct 2006 12:01:12 +0000 (UTC) (envelope-from greenwood.andy@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74DF443D55 for ; Tue, 17 Oct 2006 12:01:11 +0000 (GMT) (envelope-from greenwood.andy@gmail.com) Received: by wx-out-0506.google.com with SMTP id t4so1955931wxc for ; Tue, 17 Oct 2006 05:01:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BcwRN6IYMbQ9E/ngQ+jl7xD/suMMtwfN8sQKWQKF9hylOXpGll9IJEfCDbcP0FeQUnJltF7MaeCxsevl/5P0QlxoZ/McdSIWWtm0f2PdWIRQ+9m+o32sDS//PyF5m2o3zm6//T/dauXvscl9bMKmVebBZXOSxlE45eZb6r0ZfVY= Received: by 10.90.73.3 with SMTP id v3mr4618456aga; Tue, 17 Oct 2006 05:01:10 -0700 (PDT) Received: by 10.90.92.9 with HTTP; Tue, 17 Oct 2006 05:01:10 -0700 (PDT) Message-ID: <3ee9ca710610170501q20197e7es72fde9f895190416@mail.gmail.com> Date: Tue, 17 Oct 2006 08:01:10 -0400 From: "Andy Greenwood" To: "Matthew Rench" In-Reply-To: <20061017004401.GA430@gandalf.pelennor.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061017004401.GA430@gandalf.pelennor.net> Cc: freebsd-questions@freebsd.org Subject: Re: bittorrent consuming 100% cpu X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Oct 2006 12:01:12 -0000 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 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