From owner-freebsd-stable@FreeBSD.ORG Thu Aug 24 23:28:04 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC4C316A4DA for ; Thu, 24 Aug 2006 23:28:04 +0000 (UTC) (envelope-from fcash@ocis.net) Received: from smtp.sd73.bc.ca (mailtest.sd73.bc.ca [142.24.13.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 464AB43D46 for ; Thu, 24 Aug 2006 23:28:04 +0000 (GMT) (envelope-from fcash@ocis.net) Received: from localhost (localhost [127.0.0.1]) by localhost.sd73.bc.ca (Postfix) with ESMTP id DDF9018CCD5 for ; Thu, 24 Aug 2006 16:36:16 -0700 (PDT) X-Virus-Scanned: by amavisd-new using ClamAV at sd73.bc.ca Received: from smtp.sd73.bc.ca ([127.0.0.1]) by localhost (smtp.sd73.bc.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 39C8xYCa2uO2 for ; Thu, 24 Aug 2006 16:36:15 -0700 (PDT) Received: from webmail.sd73.bc.ca (unknown [10.10.10.17]) by smtp.sd73.bc.ca (Postfix) with ESMTP id A5E4D18CC87 for ; Thu, 24 Aug 2006 16:36:15 -0700 (PDT) Received: from webmail.sd73.bc.ca (localhost.localdomain [127.0.0.1]) by webmail.sd73.bc.ca (Postfix) with ESMTP id 48B469000464 for ; Thu, 24 Aug 2006 16:28:02 -0700 (PDT) Received: from 24.71.118.34 (SquirrelMail authenticated user fcash) by webmail.sd73.bc.ca with HTTP; Thu, 24 Aug 2006 16:28:02 -0700 (PDT) Message-ID: <63177.24.71.118.34.1156462082.squirrel@webmail.sd73.bc.ca> In-Reply-To: <14989d6e0608241410n2b8a5fdwe98a927dea91be40@mail.gmail.com> References: <20060824190651.GA49364@xor.obsecurity.org> <14989d6e0608241410n2b8a5fdwe98a927dea91be40@mail.gmail.com> Date: Thu, 24 Aug 2006 16:28:02 -0700 (PDT) From: "Freddie Cash" To: stable@freebsd.org User-Agent: SquirrelMail/1.5.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: [AMD64-SMP] I can't get my cpus working at 100% X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: fcash@ocis.net List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2006 23:28:04 -0000 On Thu, August 24, 2006 2:10 pm, Christian Walther wrote: > On 24/08/06, Kris Kennaway wrote: > [...] >> How do you know the applications are running with two threads? >> Presumably you need to specify the amount of parallelism. > To make matters worse you can't even tell if an application running > with several threads uses more then one CPU. Originally, threading was > implemented with single CPU systems in mind, especially in regard to > shares memory and things like this. A nice example of a program being > able to do threading, but one CPU (core) only is python. > So you don't only want to know how many threads an application is > working with, but on what cores they are processed. You might want to > man ps for a list of possible option, I don't have a SMP system at > hand, but i think ps -aHl might be suitable. Use 'H' in top to switch to thread-view mode, where the individual threads for each running process are shown. Then look in the 'C' column to see which CPU the threads are running on. ---- Freddie Cash fcash@ocis.net