From owner-freebsd-stable@FreeBSD.ORG Thu Aug 24 21:10:32 2006 Return-Path: X-Original-To: freebsd-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 988B116A4DA for ; Thu, 24 Aug 2006 21:10:32 +0000 (UTC) (envelope-from cptsalek@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F2CB43D4C for ; Thu, 24 Aug 2006 21:10:23 +0000 (GMT) (envelope-from cptsalek@gmail.com) Received: by wx-out-0506.google.com with SMTP id i27so602807wxd for ; Thu, 24 Aug 2006 14:10:22 -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=XJ6c+c7xlZu/ddN03CidBwABbqcn/3pGRNApUd3WQNXOnO4tF+wXzMkFrKAJ+qDdSW0mQFAhC6PdxJZ0tLKLTOviIOB6o8DxzxSvg4Abd+D6wg4zlebrM8ufWT3yaE4VHmhvRW6CYnJS/yt20VUN72WVqC1iaNhsKKioG1kR8bQ= Received: by 10.70.14.20 with SMTP id 20mr3208487wxn; Thu, 24 Aug 2006 14:10:22 -0700 (PDT) Received: by 10.70.24.6 with HTTP; Thu, 24 Aug 2006 14:10:22 -0700 (PDT) Message-ID: <14989d6e0608241410n2b8a5fdwe98a927dea91be40@mail.gmail.com> Date: Thu, 24 Aug 2006 23:10:22 +0200 From: "Christian Walther" To: "Kris Kennaway" In-Reply-To: <20060824190651.GA49364@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060824190651.GA49364@xor.obsecurity.org> Cc: Laurent C , freebsd-stable@freebsd.org 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 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 21:10:32 -0000 Hi there, 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. > > Kris > 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.