From owner-freebsd-hardware@FreeBSD.ORG Mon Sep 15 02:33:30 2003 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 204C516A4BF for ; Mon, 15 Sep 2003 02:33:30 -0700 (PDT) Received: from consystor2.razik.de (pD9548EA2.dip.t-dialin.net [217.84.142.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id C924243FE0 for ; Mon, 15 Sep 2003 02:33:27 -0700 (PDT) (envelope-from lukas@razik.de) Received: from consystor (consystor.razik.de [192.168.0.1]) by consystor2.razik.de (8.9.3/8.9.3) with ESMTP id LAA12169 for ; Mon, 15 Sep 2003 11:33:25 +0200 From: lukas@razik.de To: freebsd-hardware@freebsd.org Date: Mon, 15 Sep 2003 11:33:23 +0200 MIME-Version: 1.0 Message-ID: <3F65A383.24046.8A4AC5@localhost> Priority: normal In-reply-to: X-mailer: Pegasus Mail for Windows (v4.12a) Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Description: Mail message body X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Re: 2 CPUs X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2003 09:33:30 -0000 Hi Kostas! > If I have a box with 2 CPUs (Intel P4) does freeBSD recognize them ? Yes, it does if you set these options in your kernel config: --- BEGIN --- # To make an SMP kernel, the next two are needed options SMP # Symmetric MultiProcessor Kernel options APIC_IO # Symmetric (APIC) I/O --- END --- > If yes how can I see this, Please type "dmesg" in your console and look for a message like this one: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > how can I see the utilization of each CPU Execute the command "top" in your console. > and how can I assign a process to both CPUs or only to one, etc. I have seen W2K > doing this through the Task Manager by setting the Affinity of the process. > All these questions also apply to the new Intel's technology HYPER > THREADING. With this, you can have a single CPU but your OS sees that it has > two and again you can set the Affinity, etc. I don't know how you can assign a process to one CPU... Normally the processes are assigned by the OS to both CPUs. (If it has only one thread it swaps between them.) BTW: Which program did you use to set the CPU Affinity on W2k? Because I always use TaskInfo on WinXP and I would like to know if there are also other programs... Thnx! cya, Lukas