From owner-freebsd-hardware@FreeBSD.ORG Mon Sep 15 01:41:34 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 642E516A4BF for ; Mon, 15 Sep 2003 01:41:34 -0700 (PDT) Received: from oteglobe.net (mail.oteglobe.net [62.75.2.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77D2A43FE0 for ; Mon, 15 Sep 2003 01:41:32 -0700 (PDT) (envelope-from kostas.fotiadis@oteglobe.net) Received: from bookmanlaptop ([172.21.62.26]) by oteglobe.net (8.11.7/8.11.7) with SMTP id h8F8fUh29930 for ; Mon, 15 Sep 2003 11:41:30 +0300 (EET DST) From: "Konstantinos Fotiadis" To: Date: Mon, 15 Sep 2003 11:41:27 +0300 Message-ID: MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Importance: Normal Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: 2 CPUs X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kostas.fotiadis@oteglobe.net 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 08:41:34 -0000 Greetings list, I am a newcomer in Unix and FreeBSD and I have a small question. If I have a box with 2 CPUs (Intel P4) does freeBSD recognize them ? If yes how can I see this, how can I see the utilization of each CPU 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. All the best, Kostas 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 From owner-freebsd-hardware@FreeBSD.ORG Mon Sep 15 09:16:50 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 6815616A4BF for ; Mon, 15 Sep 2003 09:16:50 -0700 (PDT) Received: from www.reppep.com (www.reppep.com [66.92.104.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17A2F43FE1 for ; Mon, 15 Sep 2003 09:16:49 -0700 (PDT) (envelope-from pepper@reppep.com) Received: from [129.85.219.160] (salt.rockefeller.edu [129.85.219.160]) by www.reppep.com (Postfix) with ESMTP id 739E6100AC; Mon, 15 Sep 2003 12:17:14 -0400 (EDT) Mime-Version: 1.0 X-Sender: pepper@mail.reppep.com Message-Id: Date: Mon, 15 Sep 2003 12:15:23 -0400 To: freebsd-hardware@freebsd.org From: Chris Pepper Content-Type: text/plain; charset="us-ascii" ; format="flowed" cc: Nate Lawson Subject: 4.9-PRE hanging on boot with USB KVM active 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 16:16:50 -0000 I have an IOGear MiniView USB KVM (probably model GCS102U, but I can't verify from here). It has VGA & USB connections to 2 systems, with a VGA connector and 4-port USB hub switchable between the 2 hosts. The KVM works fine with my Mac and my HP Pavilion running 4.5-R through 4.9-PRE, but a newer Dell 600SC hangs if the KVM is 'connected' (switched over to the PC) at boot time (under 4.8-R through RELENG_4 as of 2003.09.10.00.00.00). If I switch to the 600SC after it's up, the KVM attaches and detaches properly. I will write a full PR once I've gotten configured the serial terminal working so I can capture the hang, but in the meantime I wanted to mention the problem. Here's what the Pavilion has to say about the KVM from dmesg: >uhci0: port 0x1080-0x109f irq >11 at device 31.2 on pci0 >usb0: on uhci0 >usb0: USB revision 1.0 >uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 >uhub0: 2 ports with 2 removable, self powered >uhub1: Texas Instruments TUSB2046 hub, class 9/0, rev 1.10/1.25, addr 2 >uhub1: 4 ports with 4 removable, self powered Here's the last boot from the 600SC (without the KVM switched over): >Copyright (c) 1992-2003 The FreeBSD Project. >Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. >FreeBSD 4.9-PRERELEASE #0: Thu Sep 11 17:29:50 EDT 2003 > root@www.reppep.com:/usr/obj/usr/src/sys/REPPEP >Timecounter "i8254" frequency 1193182 Hz >CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (2399.33-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0xf27 Stepping = 7 > >Features=0xbfebfbff >real memory = 402587648 (393152K bytes) >avail memory = 387178496 (378104K bytes) >Preloaded elf kernel "kernel" at 0xc03e0000. >Pentium Pro MTRR support enabled >md0: Malloc disk >Using $PIR table, 7 entries at 0xc00fc320 >npx0: on motherboard >npx0: INT 16 interface >pcib0: on motherboard >pci0: on pcib0 >em0: port >0xecc0-0xecff mem 0xfe100000-0xfe11ffff irq 10 at device 2.0 on pci0 >em0: Speed:N/A Duplex:N/A >pci0: at 8.0 >atapci0: port >0x900-0x90f,0x36c-0x36f,0x168-0x16f,0x3ec-0x3ef,0x1e8-0x1ef irq 11 >at device 14.0 on pci0 >ata2: at 0x1e8 on atapci0 >ata3: at 0x168 on atapci0 >atapci1: port >0x8b0-0x8bf,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 at >device 15.1 on pci0 >ata0: at 0x1f0 irq 14 on atapci1 >ata1: at 0x170 irq 15 on atapci1 >ohci0: mem 0xfe120000-0xfe120fff irq >5 at device 15.2 on pci0 >usb0: OHCI version 1.0, legacy support >usb0: SMM does not respond, resetting >usb0: on ohci0 >usb0: USB revision 1.0 >uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 >uhub0: 2 ports with 2 removable, self powered >isab0: at device 15.3 on pci0 >isa0: on isab0 >pcib255: on motherboard >pci255: on pcib255 >pcib1: on motherboard >pci1: on pcib1 >orm0: