From owner-freebsd-questions@FreeBSD.ORG Tue Oct 17 00:44:11 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 1FE8316A40F for ; Tue, 17 Oct 2006 00:44:11 +0000 (UTC) (envelope-from mdr@pelennor.net) Received: from gandalf.pelennor.net (user-12l2o04.cable.mindspring.com [69.81.96.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDD3443D5A for ; Tue, 17 Oct 2006 00:44:02 +0000 (GMT) (envelope-from mdr@pelennor.net) Received: by gandalf.pelennor.net (Butterbur, from userid 1000) id CFA79572; Mon, 16 Oct 2006 19:44:01 -0500 (CDT) Date: Mon, 16 Oct 2006 19:44:01 -0500 From: Matthew Rench To: freebsd-questions@freebsd.org Message-ID: <20061017004401.GA430@gandalf.pelennor.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 Subject: 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 00:44:11 -0000 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