From owner-freebsd-smp@FreeBSD.ORG Wed Mar 9 11:24:42 2005 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EAFB16A4CE for ; Wed, 9 Mar 2005 11:24:42 +0000 (GMT) Received: from ss.eunet.cz (ss.eunet.cz [193.85.228.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37CCB43D64 for ; Wed, 9 Mar 2005 11:24:41 +0000 (GMT) (envelope-from mime@traveller.cz) Received: from localhost.i.cz (ss.eunet.cz [193.85.228.13]) by ss.eunet.cz (8.13.1/8.13.1) with ESMTP id j29BObdC060549; Wed, 9 Mar 2005 12:24:39 +0100 (CET) (envelope-from mime@traveller.cz) From: Michal Mertl To: ISP Informatique In-Reply-To: <422ED71A.9000908@ispinfo.fr> References: <422ECB11.4090801@ispinfo.fr> <422ED71A.9000908@ispinfo.fr> Content-Type: text/plain Date: Wed, 09 Mar 2005 12:24:35 +0100 Message-Id: <1110367475.655.4.camel@genius2.i.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit cc: freebsd-smp@freebsd.org Subject: Re: FreeBSD 5.3 et multiprocessor X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 11:24:42 -0000 ISP Informatique wrote: > Joseph Koshy wrote: > >>The nasty surprise being which I note a notable reduction in the > >>performances. > > > > > > Could you post the output of 'dmesg'? What workload are you running on the box? > > > > here it is : > > Copyright (c) 1992-2004 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 5.3-RELEASE-p5 #0: Sun Mar 6 00:57:32 CET 2005 > > root@lancelot.acces-industrie.com:/usr/obj/usr/src/sys/GENERIC > > MPTable: > > Timecounter "i8254" frequency 1193182 Hz quality 0 > > CPU: Intel Pentium III Xeon (700.02-MHz 686-class CPU) > > Origin = "GenuineIntel" Id = 0x6a1 Stepping = 1 > > Features=0x387fbff > > real memory = 2147418112 (2047 MB) > > avail memory = 2095939584 (1998 MB) > > ioapic0: Assuming intbase of 0 > > ioapic1: Assuming intbase of 16 > > ioapic0 irqs 0-15 on motherboard > > ioapic1 irqs 16-31 on motherboard > > npx0: [FAST] > > npx0: on motherboard > > npx0: INT 16 interface > > pcib1: pcibus 1 on motherboard > > pci1: on pcib1 > > pcib0: pcibus 0 on motherboard > > pci0: on pcib0 > > fxp0: port 0x1800-0x183f mem 0xec900000-0xec9fffff,0xec801000-0xec801fff irq 18 at device 6.0 on pci0 > > miibus0: on fxp0 > > inphy0: on miibus0 > > inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > > fxp0: Ethernet address: 00:30:6e:02:f8:f0 > > pci0: at device 7.0 (no driver attached) > > isab0: port 0x1040-0x104f at device 15.0 on pci0 > > isa0: on isab0 > > atapci0: port 0x1840-0x184f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 15.1 on pci0 > > ata0: channel #0 on atapci0 > > ata1: channel #1 on atapci0 > > pcib4: pcibus 4 on motherboard > > pci4: on pcib4 > > pci4: at device 2.0 (no driver attached) > > pci4: at device 2.1 (no driver attached) > > pcib2: at device 3.0 on pci4 > > pci5: on pcib2 > > pci5: at device 8.0 (no driver attached) > > amr0: mem 0xf4000000-0xf7ffffff irq 20 at device 3.1 on pci4 > > amr0: [GIANT-LOCKED] > > amr0: Firmware E.01.08, BIOS B.02.03, 64MB RAM > > cpu0 on motherboard > > orm0: at iomem 0xc8000-0xc8fff,0xc0000-0xc7fff on isa0 > > pmtimer0 on isa0 > > atkbdc0: at port 0x64,0x60 on isa0 > > atkbd0: irq 1 on atkbdc0 > > kbd0 at atkbd0 > > atkbd0: [GIANT-LOCKED] > > psm0: irq 12 on atkbdc0 > > psm0: [GIANT-LOCKED] > > psm0: model IntelliMouse, device ID 3 > > fdc0: at port 0x3f0-0x3f5 irq 6 drq 2 on isa0 > > fdc0: [FAST] > > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > > ppc0: at port 0x378-0x37f irq 7 on isa0 > > ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode > > ppbus0: on ppc0 > > plip0: on ppbus0 > > lpt0: on ppbus0 > > lpt0: Interrupt-driven port > > ppi0: on ppbus0 > > sc0: at flags 0x100 on isa0 > > sc0: VGA <16 virtual consoles, flags=0x300> > > sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 > > sio0: type 16550A > > sio1 at port 0x2f8-0x2ff irq 3 on isa0 > > sio1: type 16550A > > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > > unknown: can't assign resources (port) > > unknown: can't assign resources (port) > > unknown: can't assign resources (port) > > unknown: can't assign resources (irq) > > unknown: can't assign resources (port) > > unknown: can't assign resources (port) > > unknown: can't assign resources (port) > > Timecounter "TSC" frequency 700015817 Hz quality 800 > > Timecounters tick every 10.000 msec > > acd0: CDROM at ata0-master PIO4 > > amrd0: on amr0 > > amrd0: 17365MB (35563520 sectors) RAID 1 (optimal) > > ses0 at amr0 bus 0 target 5 lun 0 > > ses0: Fixed Processor SCSI-2 device > > ses0: SAF-TE Compliant Device > > Mounting root from ufs:/dev/amrd0s1a > > looking at the administrative mail, i saw that I got this in the first > dmesg after install (and so before kernel recompiling) > > MPTable: > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > cpu2 (AP): APIC ID: 2 > cpu3 (AP): APIC ID: 4 > > then > > cpu1 on motherboard > cpu2 on motherboard > cpu3 on motherboard > > and at the end : > > SMP: AP CPU #1 Launched! > SMP: AP CPU #2 Launched! > SMP: AP CPU #3 Launched! > > guess that something is missing in the kernel :( There are only two options in the kernel configuration file which you need to enable for SMP support. It is not enabled by default (in GENERIC kernel). These are: options SMP device apic HTH Michal Mertl