From nobody@FreeBSD.org  Mon Dec 19 08:13:47 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 16C8C16A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 19 Dec 2005 08:13:47 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C531A43D5A
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 19 Dec 2005 08:13:46 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jBJ8Dkx3037114
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 19 Dec 2005 08:13:46 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id jBJ8Dkjm037113;
	Mon, 19 Dec 2005 08:13:46 GMT
	(envelope-from nobody)
Message-Id: <200512190813.jBJ8Dkjm037113@www.freebsd.org>
Date: Mon, 19 Dec 2005 08:13:46 GMT
From: "S.Batakov" <seacat@ugtel.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: top not show 2 CPU
X-Send-Pr-Version: www-2.3

>Number:         90641
>Category:       i386
>Synopsis:       top not show 2 CPU
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 19 08:20:07 GMT 2005
>Closed-Date:    Tue Feb 21 21:51:30 GMT 2006
>Last-Modified:  Tue Feb 21 21:51:30 GMT 2006
>Originator:     S.Batakov
>Release:        6.0
>Organization:
>Environment:
FreeBSD lartnec.dmz 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 24 20:18:39 MSK 2005     root@lartnec.dmz:/usr/src/sys/i386/compile/SMP  i386       
>Description:
I have never see CPU #1 work or not.

lartnec# top

last pid: 66813;  load averages:  1.37,  1.09,  1.07                                    up 23+21:36:14  11:11:37
161 processes: 1 running, 160 sleeping
CPU states: 23.0% user,  0.0% nice,  9.8% system,  0.0% interrupt, 67.3% idle
Mem: 206M Active, 1187M Inact, 213M Wired, 51M Cache, 112M Buf, 344M Free
Swap: 2048M Total, 2048M Free

  PID USERNAME  THR PRI NICE   SIZE    RES STATE  C   TIME   WCPU COMMAND
66662 nagios      1  96    0  3260K  2728K select 0   0:00  1.08% snmpwalk
66679 nagios      1  96    0  3260K  2728K select 0   0:00  0.81% snmpwalk
66680 nagios      1  96    0  3260K  2728K select 0   0:00  0.81% snmpwalk
66596 nagios      1  96    0  3260K  2728K select 0   0:00  0.75% snmpwalk
66659 nagios      1  96    0  3260K  2728K select 0   0:00  0.66% snmpwalk
66609 nagios      1  96    0  3260K  2728K select 0   0:00  0.56% snmpwalk
62885 cacti       1  -8    0 15884K 15184K piperd 0   0:02  0.49% php
66656 nagios      1  96    0  3260K  2728K select 0   0:00  0.44% snmpwalk
66633 nagios      1  96    0  3260K  2728K select 0   0:00  0.44% snmpwalk
66661 nagios      1  96    0  3260K  2728K select 0   0:00  0.44% snmpwalk





Copyright (c) 1992-2005 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 6.0-RELEASE #0: Thu Nov 24 20:18:39 MSK 2005
    root@lartnec.dmz:/usr/src/sys/i386/compile/SMP
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2392.95-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf27  Stepping = 7
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MM
X,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x400<CNTX-ID>
  Hyperthreading: 2 logical CPUs
real memory  = 2147418112 (2047 MB)
avail memory = 2096447488 (1999 MB)
ACPI APIC Table: <AMIINT AMIINI09>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic3: Changing APIC ID to 10
ioapic4: Changing APIC ID to 11
ioapic4: WARNING: intbase 96 != expected base 328
ioapic0 <Version 2.0> irqs 0-23 on motherboard
ioapic1 <Version 2.0> irqs 24-47 on motherboard
ioapic2 <Version 2.0> irqs 48-71 on motherboard
ioapic3 <Version 15.15> irqs 72-71 on motherboard
ioapic4 <Version 15.15> irqs 96-95 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <AMIINT AMIINI09> on motherboard
acpi0: Overriding SCI Interrupt from IRQ 9 to IRQ 20
acpi0: Power Button (fixed)
pci_link0: <ACPI PCI Link LNKA> irq 10 on acpi0
pci_link1: <ACPI PCI Link LNKB> irq 0 on acpi0
pci_link2: <ACPI PCI Link LNKC> irq 9 on acpi0
pci_link3: <ACPI PCI Link LNKD> irq 0 on acpi0
pci_link4: <ACPI PCI Link LNKE> irq 0 on acpi0
pci_link5: <ACPI PCI Link LNKF> irq 0 on acpi0
pci_link6: <ACPI PCI Link LNKG> irq 0 on acpi0
pci_link7: <ACPI PCI Link LNKH> irq 0 on acpi0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
cpu1: <ACPI CPU> on acpi0
acpi_throttle1: <ACPI CPU Throttling> on cpu1
acpi_throttle1: failed to attach P_CNT
device_attach: acpi_throttle1 attach returned 6
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 4.0 on pci0
pci2: <ACPI PCI bus> on pcib1
pci2: <base peripheral, interrupt controller> at device 28.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 29.0 on pci2
pci4: <ACPI PCI bus> on pcib2
em0: <Intel(R) PRO/1000 Network Connection, Version - 2.1.7> port 0xb800-0xb83f mem 0xefda0000-0xefdbffff irq 48 
at device 2.0 on pci4
em0: Ethernet address: 00:0d:61:6e:f9:aa
em0:  Speed:N/A  Duplex:N/A
em1: <Intel(R) PRO/1000 Network Connection, Version - 2.1.7> port 0xbc00-0xbc3f mem 0xefdc0000-0xefddffff irq 49 
at device 3.0 on pci4
em1: Ethernet address: 00:0d:61:6e:f9:ab
em1:  Speed:N/A  Duplex:N/A
iir0: <Intel Integrated RAID Controller> mem 0xed8fc000-0xed8fffff irq 54 at device 5.0 on pci4
iir0: [GIANT-LOCKED]
pci2: <base peripheral, interrupt controller> at device 30.0 (no driver attached)
pcib3: <ACPI PCI-PCI bridge> at device 31.0 on pci2
pci3: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci1: <ACPI PCI bus> on pcib4
pci1: <display, VGA> at device 9.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH3 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 31.1 on
 pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
fdc0: <floppy drive controller> port 0x3f2-0x3f3,0x3f4-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xcd000-0xce7ff,0xce800-0xcffff on isa0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 1.000 msec
acd0: CDROM <SR244W/T01A> at ata0-master UDMA33
Waiting 5 seconds for SCSI devices to settle
da0 at iir0 bus 2 target 0 lun 0
da0: <Intel Host Drive   #00 > Fixed Direct Access SCSI-2 device 
da0: Tagged Queueing Enabled
da0: 69970MB (143299800 512 byte sectors: 255H 63S/T 8920C)
SMP: AP CPU #1 Launched!
Trying to mount root from ufs:/dev/da0s1a
>How-To-Repeat:
              
>Fix:
              
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: pav 
State-Changed-When: Sun Jan 15 17:06:36 UTC 2006 
State-Changed-Why:  
Have you tried under heavier system load? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=90641 

From: Sergei Batakov <sbat@ugtel.ru>
To: bug-followup@FreeBSD.org, seacat@ugtel.ru
Cc:  
Subject: Re: i386/90641: top not show 2 CPU
Date: Fri, 20 Jan 2006 15:50:09 +0300

 I try load system by Ubench (ubench -c). But not see CPU#1
 
 
 $ top
 
 last pid: 40202;  load averages:  4.32,  1.88,  1.14                                    up 31+20:55:18  15:36:03
 104 processes: 7 running, 97 sleeping
 CPU states: 49.9% user,  0.0% nice,  0.1% system,  0.0% interrupt, 49.9% idle
 Mem: 353M Active, 1093M Inact, 221M Wired, 1408K Cache, 112M Buf, 339M Free
 Swap: 2048M Total, 2048M Free
 
   PID USERNAME  THR PRI NICE   SIZE    RES STATE  C   TIME   WCPU COMMAND
 40037 root        1 110    0  1272K   808K RUN    0   0:17 19.63% ubench
 40038 root        1 110    0  1272K   808K RUN    0   0:15 19.26% ubench
 40076 root        1 110    0  1272K   808K RUN    0   0:11 18.41% ubench
 40077 root        1 109    0  1272K   808K RUN    0   0:11 18.10% ubench
 40083 root        1 109    0  1272K   808K RUN    0   0:10 18.08% ubench
 40035 root        1  -8    0  1272K   808K piperd 0   0:07  0.90% ubench
   554 mysql       9  20    0 58808K 29636K kserel 0 283:41  0.00% mysqld
 44331 nagios      4  20    0  8568K  7848K kserel 0  56:11  0.00% nagios
   510 root       22  20    0 19832K 12108K kserel 0  15:21  0.00% CGServer
 54150 www         1   4    0 50472K 45540K accept 0   8:55  0.00% httpd
 51111 www         1   4    0 50472K 45640K accept 0   8:45  0.00% httpd
 54115 www         1   4    0 50756K 45168K accept 0   8:44  0.00% httpd
 54149 www         1   4    0 46624K 43996K accept 0   8:41  0.00% httpd
 56372 www         1   4    0 48160K 45268K accept 0   8:35  0.00% httpd
 51110 www         1   4    0 45968K 43072K accept 0   8:26  0.00% httpd
 57384 www         1   4    0 47744K 44284K accept 0   8:12  0.00% httpd
 51109 www         1   4    0 42328K 40184K accept 0   8:06  0.00% httpd
 51114 www         1   4    0 50996K 46008K accept 0   7:51  0.00% httpd
 51112 www         1   4    0 45508K 42884K accept 0   7:37  0.00% httpd
  1045 root        1  96    0  2836K  1696K select 0   1:49  0.00% ntpd
 ...
 ...
 ...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
State-Changed-From-To: feedback->open 
State-Changed-By: pav 
State-Changed-When: Sun Jan 22 10:53:54 UTC 2006 
State-Changed-Why:  
Feedback received 

http://www.freebsd.org/cgi/query-pr.cgi?pr=90641 

From: "Alexander I. Mogilny" <sg@astral.ntu-kpi.kiev.ua>
To: bug-followup@FreeBSD.org
Cc: seacat@ugtel.ru
Subject: Re: i386/90641: top not show 2 CPU
Date: Tue, 31 Jan 2006 18:07:22 +0200

 > I have never see CPU #1 work or not.
 > 
 > lartnec# top
 > 
 > last pid: 66813;  load averages:  1.37,  1.09,  1.07
 > up 23+21:36:14  11:11:37
 > 161 processes: 1 running, 160 sleeping
 > CPU states: 23.0% user,  0.0% nice,  9.8% system,  0.0% interrupt, 67.3% idle
 > Mem: 206M Active, 1187M Inact, 213M Wired, 51M Cache, 112M Buf, 344M Free
 > Swap: 2048M Total, 2048M Free
 > 
 > PID   USERNAME  THR PRI NICE   SIZE    RES STATE  C   TIME   WCPU COMMAND
 > 66662 nagios      1  96    0  3260K  2728K select 0   0:00  1.08% snmpwalk
 > 66679 nagios      1  96    0  3260K  2728K select 0   0:00  0.81% snmpwalk
 > 66680 nagios      1  96    0  3260K  2728K select 0   0:00  0.81% snmpwalk
 > 66596 nagios      1  96    0  3260K  2728K select 0   0:00  0.75% snmpwalk
 > 66659 nagios      1  96    0  3260K  2728K select 0   0:00  0.66% snmpwalk
 > 66609 nagios      1  96    0  3260K  2728K select 0   0:00  0.56% snmpwalk
 > 62885 cacti       1  -8    0 15884K 15184K piperd 0   0:02  0.49% php
 > 66656 nagios      1  96    0  3260K  2728K select 0   0:00  0.44% snmpwalk
 > 66633 nagios      1  96    0  3260K  2728K select 0   0:00  0.44% snmpwalk
 > 66661 nagios      1  96    0  3260K  2728K select 0   0:00  0.44% snmpwalk
 
 It seem for all processes to run on one CPU: CPU#0.
 Try to set machdep.hyperthreading_allowed sysctl variable to 1 by
 following command:
 # sysctl machdep.hyperthreading_allowed=1.
 
 This issue seem to be expalined at
 http://www.freebsd.org/releases/6.0R/relnotes-i386.html
 
 <cut>
 Because of an information disclosure vulnerability on processors using
 Hyper-Threading Technology (HTT), the machdep.hyperthreading_allowed
 sysctl variable has been added. It defaults to 1 (HTT enabled) on
 FreeBSD CURRENT, and 0 (HTT disabled) on the 4-STABLE and 5-STABLE
 development branches and supported security fix branches. More
 information can be found in security advisory FreeBSD-SA-05:09.htt.
 </cut>
 
 -- 
 AIM-UANIC

From: SeaCat <seacat@ugtel.ru>
To: bug-followup@FreeBSD.org, seacat@ugtel.ru
Cc:  
Subject: Re: i386/90641: top not show 2 CPU
Date: Thu, 2 Feb 2006 20:16:43 +0300

   Thank you. It's works now.
 
   Close PR
 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Tue Feb 21 21:50:50 UTC 2006 
State-Changed-Why:  
Closed at submitter's request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=90641 
>Unformatted:
