From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22335 invoked by alias); 12 Nov 2007 19:58:38 -0000 Received: (qmail 22325 invoked by uid 22791); 12 Nov 2007 19:58:38 -0000 X-Spam-Check-By: sourceware.org Received: from host9.csv-2.cust.sover.net (HELO colchester.cyberskillsvt.org) (216.114.135.105) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 12 Nov 2007 19:58:36 +0000 Received: from [127.0.0.1] ([192.9.200.22]) by colchester.cyberskillsvt.org with Microsoft SMTPSVC(6.0.3790.1830); Mon, 12 Nov 2007 14:58:40 -0500 Message-ID: <4738B06B.20206@cctv.org> Date: Mon, 12 Nov 2007 20:33:00 -0000 From: Chris Stanley User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: pthreads-win32@sourceware.org Subject: Max 50% usage on dual-core CPU Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2007/txt/msg00047.txt.bz2 I'm working with ffmpeg which uses Pthreads-w32 in Windows XP Pro SP2. I've used both Pthreads-w32 2.8.0 and 2.9.0 (which as far as I can tell doesn't exist, but is bundled with the Celtic Druid ffmpeg binaries nonetheless). When using a single-core system (Celeron 2.5Ghz), everything is fine and ffmpeg/Pthreads-w32 eagerly uses 97-99% of my CPU. But when I move the same code to a dual-core system (P4 3Ghz), it will never exceed exactly 50% of the CPU. By default it uses both cores at about 20/30. If I change the affinity and restrict it to one core, then it uses the whole thing but again won't exceed exactly 50% of the total CPU. I get the same results reading from and writing to a flash drive, so I don't think it's an I/O bottleneck. I'm posting this to the ffmpeg list as well, but it seems like this could be something related to Pthreads-w32. Does anyone have any thoughts about what might be going on? Thanks! -- Chris Stanley Systems Administrator cstanley@cctv.org Office 802-862-1645, x11 Center for Media & Democracy Mobile 802-324-8415 Fax 802-860-2370 294 North Winooski Ave IM ChrisStanleyCCTV Burlington, VT 05401 http://www.cctv.org/