From owner-freebsd-smp Mon Sep 30 0:50:13 2002 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 9A25E37B401 for ; Mon, 30 Sep 2002 00:50:08 -0700 (PDT) Received: from hotmail.com (f16.pav0.hotmail.com [64.4.33.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 643A443E42 for ; Mon, 30 Sep 2002 00:49:59 -0700 (PDT) (envelope-from jsli2002@msn.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 30 Sep 2002 00:49:59 -0700 Received: from 202.178.254.2 by pv0fd.pav0.hotmail.msn.com with HTTP; Mon, 30 Sep 2002 07:49:58 GMT X-Originating-IP: [202.178.254.2] From: "j l" To: freebsd-smp@freebsd.org Subject: Single processor hyperthreading problem Date: Mon, 30 Sep 2002 15:49:58 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset=big5; format=flowed Message-ID: X-OriginalArrivalTime: 30 Sep 2002 07:49:59.0144 (UTC) FILETIME=[F9C06680:01C26855] Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, We have a Intel E7500-based mainboard and two P4 processors on it. When it runs with one processor and hyperthreading off, or two processors and hypperthreading on, everything is fine. However when I turn off either multiprocessor or hyperthreading options in BIOS setting, the SMP kernel will not be able to boot. System config: FreeBSD 4.6.2-R GENERIC kernel config with SMP and APIC options The behavior: With one processor and hyperthreading turned on, the kernel hung at the very start with the following message: panic: pmap_bootstrap: no local apic! mp_lock = 00000008; cpuid = 0; lapic.id = 00000000 uptime: 0s With two processors and hyperthreading turned off, the kernel began probing devices, and hung at this spot: APIC_IO: Testing 8254 interrupt delivery It looks like the mainboard or BIOS has some implementation problem, any suggestions? And this is the mptable when booting with both multiprocessor and hyperthreading turned on: =============================================================================== MPTable, version 2.0.15 ------------------------------------------------------------------------------- MP Floating Pointer Structure: location: EBDA physical address: 0x0009cc30 signature: '_MP_' length: 16 bytes version: 1.1 checksum: 0x0c mode: Virtual Wire ------------------------------------------------------------------------------- MP Config Table Header: physical address: 0x0009eea0 signature: 'PCMP' base table length: 476 version: 1.1 checksum: 0xd4 OEM ID: 'OEM ID ' Product ID: 'PRODUCT ID ' OEM table pointer: 0x00000000 OEM table size: 0 entry count: 48 local APIC address: 0xfee00000 extended table length: 0 extended table checksum: 0 ------------------------------------------------------------------------------- MP Config Base Table Entries: -- Processors: APIC ID Version State Family Model Step Flags 0 0x14 BSP, usable 15 2 4 0x3febfbff 1 0x14 AP, usable 15 2 4 0x3febfbff 6 0x14 AP, usable 15 2 4 0x3febfbff 7 0x14 AP, usable 15 2 4 0x3febfbff -- Bus: Bus ID Type 0 PCI 1 PCI 2 PCI 3 PCI 4 PCI 5 PCI 6 PCI 7 PCI 8 ISA -- I/O APICs: APIC ID Version State Address 14 0x20 usable 0xfec00000 13 0x20 usable 0xfec80000 12 0x20 usable 0xfec80400 11 0x20 usable 0xfec82000 10 0x20 usable 0xfec82400 -- I/O Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# ExtINT active-hi edge 8 0 14 0 INT active-hi edge 8 1 14 1 INT active-hi edge 8 0 14 2 INT active-hi edge 8 3 14 3 INT active-hi edge 8 4 14 4 INT active-hi edge 8 5 14 5 INT active-hi edge 8 6 14 6 INT active-lo level 8 7 14 7 INT active-hi edge 8 8 14 8 INT active-lo level 8 9 14 9 INT active-lo level 8 10 14 10 INT active-hi edge 8 11 14 11 INT active-hi edge 8 12 14 12 INT active-hi edge 8 13 14 13 INT active-hi edge 8 14 14 14 INT active-hi edge 8 15 14 15 INT active-lo level 0 29:A 14 16 INT active-lo level 0 29:B 14 19 INT active-lo level 0 29:C 14 18 INT active-lo level 0 31:A 14 16 INT active-lo level 0 31:B 14 17 INT active-lo level 2 31:A 13 23 INT active-lo level 3 1:A 12 0 INT active-lo level 3 1:B 12 1 INT active-lo level 5 1:A 11 0 INT active-lo level 5 31:A 11 23 INT active-lo level 6 31:A 10 23 INT active-lo level 7 0:A 14 16 -- Local Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# ExtINT active-hi edge 8 0 255 0 NMI active-hi edge 0 0:A 255 1 =============================================================================== jsli. _________________________________________________________________ MSN 相簿提供您最簡單的方式分享並列印您的相片,請移至: http://photos.msn.com.hk/support/worldwide.aspx To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Mon Sep 30 9:33:58 2002 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 9C78B37B401 for ; Mon, 30 Sep 2002 09:33:57 -0700 (PDT) Received: from ns.cleverconcepts.net (designcentricgraphics.com [64.239.47.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBB1B43E3B for ; Mon, 30 Sep 2002 09:33:56 -0700 (PDT) (envelope-from fhatfield@techxpress.net) Received: from phonesupport (te-64-146-22-142.transedge.com [64.146.22.142]) by ns.cleverconcepts.net (8.9.3/8.9.3) with SMTP id JAA12346 for ; Mon, 30 Sep 2002 09:33:45 -0700 Reply-To: From: "Forrest Hatfield" To: Subject: Date: Mon, 30 Sep 2002 09:33:47 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org ------------------------ Forrest L. Hatfield Technical Consultant ------------------------ TechXpress 200 Suburban Road San Luis Obispo, CA 93401 (805) 541-4400 http://www.techxpress.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Wed Oct 2 1:24:30 2002 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 D548037B401 for ; Wed, 2 Oct 2002 01:24:24 -0700 (PDT) Received: from amur.ru (amur.ru [195.151.156.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5538843E42 for ; Wed, 2 Oct 2002 01:24:21 -0700 (PDT) (envelope-from dek@dt.amur.ru) Received: from anubis.my.domain (ns.dt.amur.ru [194.84.87.182]) by amur.ru (8.11.6/8.11.6) with ESMTP id g928OC826856 for ; Wed, 2 Oct 2002 18:24:12 +1000 Received: from there (ws-0122-01.my.domain [192.168.0.110]) by anubis.my.domain (Postfix) with SMTP id 6561115439 for ; Wed, 2 Oct 2002 18:24:11 +1000 (YAKST) Content-Type: text/plain; charset="koi8-r" From: Dmitry Krasnov Organization: DT International To: freebsd-smp@freebsd.org Subject: Machine goes into suspend mode under high network load Date: Wed, 2 Oct 2002 18:24:23 +1000 X-Mailer: KMail [version 1.3] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20021002082411.6561115439@anubis.my.domain> Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello! There is strange behavior of my server. If somebody is pulling very large file (2-3G) thru samba or grepping the entire ports tree over nfs, server is going into "suspend mode" (or similar) after 5-10 minutes of work and stops responding until I strike a key on its keyboard. System clock is not being updated and left in pre-suspend state. When I boot with non-SMP kernel problem disappears. --- kernel config --- machine i386 cpu I686_CPU ident HORUS maxusers 512 options INET #InterNETworking options INET6 #IPv6 communications protocols options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this!] options SOFTUPDATES #Enable FFS soft updates support options PROCFS #Process filesystem options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options SCSI_DELAY=2000 #Delay (in ms) before probing SCSI options UCONSOLE #Allow users to grab the console options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor options QUOTA #Use quotas options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options P1003_1B #Posix P1003_1B real-time extensions options _KPOSIX_PRIORITY_SCHEDULING options ICMP_BANDLIM #Rate limit bad replies options KBD_INSTALL_CDEV # install a CDEV entry in /dev # To make an SMP kernel, the next two are needed options SMP # Symmetric MultiProcessor Kernel options APIC_IO # Symmetric (APIC) I/O device isa device pci # Floppy drives device fdc0 at isa? port IO_FD1 irq 6 drq 2 device fd0 at fdc0 drive 0 # ATA and ATAPI devices device ata0 at isa? port IO_WD1 irq 14 device ata1 at isa? port IO_WD2 irq 15 device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives options ATA_STATIC_ID #Static device numbering # SCSI Controllers device ahc # AHA2940 and onboard AIC7xxx devices # SCSI peripherals device scbus # SCSI bus (required) device da # Direct Access (disks) device sa # Sequential Access (tape etc) device cd # CD device pass # Passthrough device (direct SCSI access) # System Management Bus support device smbus device smb # I2C Bus support device iicbus device iicbb device iicsmb # Intel ACPI chip device intpm # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc0 at isa? port IO_KBD device atkbd0 at atkbdc? irq 1 flags 0x1 device psm0 at atkbdc? irq 12 device vga0 at isa? # splash screen/screen saver pseudo-device splash # syscons is the default console driver, resembling an SCO console device sc0 at isa? flags 0x100 options SC_DISABLE_REBOOT # Floating point support - do not disable. device npx0 at nexus? port IO_NPX irq 13 # Power management support (see LINT for more options) device apm0 at nexus? disable flags 0x20 # Advanced Power Management # Serial (COM) ports device sio0 at isa? port IO_COM1 flags 0x10 irq 4 device sio1 at isa? port IO_COM2 irq 3 # Parallel port device ppc0 at isa? irq 7 device ppbus # Parallel port bus (required) device lpt # Printer device ppi # Parallel port interface device # Pseudo devices - the number indicates how many units to allocate. pseudo-device loop # Network loopback pseudo-device ether # Ethernet support pseudo-device pty # Pseudo-ttys (telnet etc) --- dmesg output --- Copyright (c) 1992-2002 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.6-STABLE #6: Mon Jun 17 22:09:58 YAKST 2002 dek@horus.my.domain:/usr/obj/usr/src/sys/LOCAL Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Pentium II Xeon/Celeron (349.07-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x652 Stepping = 2 Features=0x183fbff real memory = 536805376 (524224K bytes) config> enable apm0 config> quit avail memory = 518488064 (506336K bytes) Programming 24 pins in IOAPIC #0 IOAPIC #0 intpin 2 -> irq 0 FreeBSD/SMP: Multiprocessor motherboard cpu0 (BSP): apic id: 0, version: 0x00040011, at 0xfee00000 cpu1 (AP): apic id: 1, version: 0x00040011, at 0xfee00000 io0 (APIC): apic id: 2, version: 0x00170011, at 0xfec00000 Preloaded elf kernel "kernel" at 0xc0341000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc034109c. Preloaded elf module "cd9660.ko" at 0xc03410ec. Preloaded elf module "mfs.ko" at 0xc034118c. Preloaded elf module "msdos.ko" at 0xc0341228. Preloaded elf module "if_xl.ko" at 0xc03412c8. Preloaded elf module "miibus.ko" at 0xc0341368. Pentium Pro MTRR support enabled Using $PIR table, 7 entries at 0xc00fddf0 apm0: on motherboard apm: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard IOAPIC #0 intpin 17 -> irq 2 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xf000-0xf00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: at 7.2 intpm0: port 0x5000-0x500f irq 9 at device 7.3 on pci0 intpm0: I/O mapped 5000 intpm0: intr IRQ 9 enabled revision 0 smbus0: on intsmb0 smb0: on smbus0 intpm0: PM I/O mapped 4000 xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xe400-0xe47f mem 0xe6001000-0xe600107f irq 2 at device 9.0 on pci0 xl0: Ethernet address: 00:02:1c:f3:be:8f miibus0: on xl0 xlphy0: <3c905B 10/100 internal PHY> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ahc0: port 0xe800-0xe8ff mem 0xe6000000-0xe6000fff irq 16 at device 12.0 on pci0 aic7895C: Ultra Wide Channel A, SCSI Id=7, 32/253 SCBs ahc1: port 0xec00-0xecff mem 0xe6002000-0xe6002fff irq 16 at device 12.1 on pci0 aic7895C: Ultra Wide Channel B, SCSI Id=7, 32/253 SCBs orm0: