免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2907 | 回复: 10
打印 上一主题 下一主题

我只有两个cpu,怎么在ps里面看到4个,是怎么回事情? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-08-19 20:02 |只看该作者 |倒序浏览
freebsd# ps -aux
USER       PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED      TIME COMMAND
root        11 96.3  0.0     0   12  ??  RL    8:01PM   0:00.00  (idle: cpu3)
root        13 96.3  0.0     0   12  ??  RL    8:01PM   0:00.00  (idle: cpu1)
root        12 93.7  0.0     0   12  ??  RL    8:01PM   0:17.49  (idle: cpu2)
root        14 92.2  0.0     0   12  ??  RL    8:01PM   0:17.08  (idle: cpu0)

论坛徽章:
0
2 [报告]
发表于 2003-08-19 20:10 |只看该作者

我只有两个cpu,怎么在ps里面看到4个,是怎么回事情?

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 5.1-RELEASE #0: Tue Aug 19 18:48:43 GMT 2003
www.cn:/usr/src/sys/i386/compile/GENERIC
Preloaded elf kernel "/boot/kernel/kernel" at 0xc06e5000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc06e51f4.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 2386602112 Hz
CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2386.60-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>;
  Hyperthreading: 2 logical CPUs
real memory  = 1073676288 (1023 MB)
avail memory = 1035681792 (987 MB)
Changing APIC ID for IO APIC #0 from 0 to 8 on chip
Changing APIC ID for IO APIC #1 from 0 to 9 on chip
Changing APIC ID for IO APIC #2 from 0 to 10 on chip
Programming 16 pins in IOAPIC #0
IOAPIC #0 intpin 2 ->; irq 0
Programming 16 pins in IOAPIC #1
Programming 16 pins in IOAPIC #2
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
cpu0 (BSP): apic id:  0, version: 0x00050014, at 0xfee00000
cpu1 (AP):  apic id:  1, version: 0x00050014, at 0xfee00000
cpu2 (AP):  apic id:  6, version: 0x00050014, at 0xfee00000
cpu3 (AP):  apic id:  7, version: 0x00050014, at 0xfee00000
io0 (APIC): apic id:  8, version: 0x000f0011, at 0xfec00000
io1 (APIC): apic id:  9, version: 0x000f0011, at 0xfec01000
io2 (APIC): apic id: 10, version: 0x000f0011, at 0xfec02000
Pentium Pro MTRR support enabled
npx0: <math processor>; on motherboard
npx0: INT 16 interface
acpi0: <DELL   PE2650  >; on motherboard
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-safe"  frequency 3579545 Hz
pcibios: BIOS version 2.10
Using $PIR table, 9 entries at 0xc00fc430
acpi_timer0: <32-bit timer at 3.579545MHz>; port 0x808-0x80b on acpi0
acpi_cpu0: <CPU>; on acpi0
acpi_cpu1: <CPU>; on acpi0
acpi_cpu2: <CPU>; on acpi0
acpi_cpu3: <CPU>; on acpi0
pcib0: <ACPI Host-PCI bridge>; port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus>; on pcib0
IOAPIC #1 intpin 3 ->; irq 2
IOAPIC #1 intpin 7 ->; irq 7
IOAPIC #1 intpin 11 ->; irq 10
pci0: <unknown>; at device 4.0 (no driver attached)
pci0: <unknown>; at device 4.1 (no driver attached)
pci0: <unknown>; at device 4.2 (no driver attached)
pci0: <display, VGA>; at device 14.0 (no driver attached)
atapci0: <ServerWorks CSB5 UDMA100 controller>; port 0x8b0-0x8bf,0x8d8-0x8db,0x8d0-0x8d7,0x8c8-0x8cb,0x8c0-0x8c7 at device 15.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: simplex device, DMA on primary only
ata1: at 0x170 irq 15 on atapci0
ohci0: <OHCI (generic) USB controller>; mem 0xfe100000-0xfe100fff irq 5 at device 15.2 on pci0
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller>; on ohci0
usb0: USB revision 1.0
uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
isab0: <CI-ISA bridge>; at device 15.3 on pci0
isa0: <ISA bus>; on isab0
pcib1: <ACPI Host-PCI bridge>; on acpi0
pci4: <ACPI PCI bus>; on pcib1
IOAPIC #1 intpin 14 ->; irq 11
pcib2: <ACPI PCI-PCI bridge>; at device 8.0 on pci4
pci5: <ACPI PCI bus>; on pcib2
IOAPIC #1 intpin 15 ->; irq 13
pci5: <mass storage, SCSI>; at device 6.0 (no driver attached)
pci5: <mass storage, SCSI>; at device 6.1 (no driver attached)
aac0: <Dell PERC 3/Di>; mem 0xf0000000-0xf7ffffff irq 11 at device 8.1 on pci4
aac0: i960RX 100MHz, 118MB cache memory, optional battery present
aac0: Kernel 2.7-1, Build 3170, S/N 243cd3
aac0: Supported Options=75c<WCACHE,DATA64,HOSTTIME,WINDOW4GB,SOFTERR,NORECOND,SGMAP64>;
pcib3: <ACPI Host-PCI bridge>; on acpi0
pci3: <ACPI PCI bus>; on pcib3
IOAPIC #1 intpin 12 ->; irq 16
IOAPIC #1 intpin 13 ->; irq 17
bge0: <Broadcom BCM5703X Gigabit Ethernet, ASIC rev. 0x1002>; mem 0xfcf10000-0xfcf1ffff irq 16 at device 6.0 on pci3
bge0: Ethernet address: 00:06:5b:fe:c1:50
miibus0: <MII bus>; on bge0
brgphy0: <BCM5703 10/100/1000baseTX PHY>; on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
bge1: <Broadcom BCM5703X Gigabit Ethernet, ASIC rev. 0x1002>; mem 0xfcf00000-0xfcf0ffff irq 17 at device 8.0 on pci3
bge1: Ethernet address: 00:06:5b:fe:c1:51
miibus1: <MII bus>; on bge1
brgphy1: <BCM5703 10/100/1000baseTX PHY>; on miibus1
brgphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
pcib4: <ACPI Host-PCI bridge>; on acpi0
pci2: <ACPI PCI bus>; on pcib4
pcib5: <ACPI Host-PCI bridge>; on acpi0
pci1: <ACPI PCI bus>; on pcib5
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)>; port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive>; on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)>; port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard>; flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
orm0: <Option ROMs>; at iomem 0xec000-0xeffff,0xc8000-0xcbfff,0xc0000-0xc7fff on isa0
pmtimer0 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
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: Broken MP table detected: 8254 is not connected to IOAPIC #0 intpin 2
APIC_IO: routing 8254 via 8259 and IOAPIC #0 intpin 0
Timecounters tick every 10.000 msec
acd0: CDROM <SAMSUNG CD-ROM SN-124>; at ata0-master PIO4
aacd0: <RAID 5>; on aac0
aacd0: 279994MB (573427712 sectors)
SMP: AP CPU #1 Launched!
SMP: AP CPU #3 Launched!
SMP: AP CPU #2 Launched!
Mounting root from ufs:/dev/aacd0s2a

论坛徽章:
0
3 [报告]
发表于 2003-08-19 20:18 |只看该作者

我只有两个cpu,怎么在ps里面看到4个,是怎么回事情?

是不是和打开 IOAPIC 有关系?

论坛徽章:
0
4 [报告]
发表于 2003-08-19 20:51 |只看该作者

我只有两个cpu,怎么在ps里面看到4个,是怎么回事情?

应该是超线程作用的表现

论坛徽章:
0
5 [报告]
发表于 2003-08-19 21:01 |只看该作者

我只有两个cpu,怎么在ps里面看到4个,是怎么回事情?

超线程呀
你在内核中打开HTT的OPTION就可以了
我这里IBM335就是的,2CPU系统中出现4CPU
还有一个更强,是4CPU的出来8个

论坛徽章:
0
6 [报告]
发表于 2003-08-20 10:47 |只看该作者

我只有两个cpu,怎么在ps里面看到4个,是怎么回事情?

好,我试试

论坛徽章:
0
7 [报告]
发表于 2003-08-20 17:32 |只看该作者

我只有两个cpu,怎么在ps里面看到4个,是怎么回事情?

你真是赚了啊

论坛徽章:
0
8 [报告]
发表于 2003-08-21 15:20 |只看该作者

我只有两个cpu,怎么在ps里面看到4个,是怎么回事情?

SMP(4)                       FreeBSD Kernel Interfaces Manual                 SMP(4)

NAME
     SMP - description of the FreeBSD Symmetric MultiProcessor kernel

SYNOPSIS
     options SMP

DESCRIPTION
     The SMP kernel implements symmetric multiprocessor support.

COMPATIBILITY
     Support for multi-processor systems is present for all Tier-1 architec-
     tures on FreeBSD.        Currently, this includes alpha, i386, ia64, and
     sparc64.  Support is enabled using options SMP.  On most platforms it is
     permissible to use the SMP kernel configuration on non-SMP equipped moth-
     erboards.        The only exception to this rule is the i386 platform.

     For i386 systems, the SMP kernel supports motherboards that follow the
     Intel MP specification, version 1.4.  In addition to options SMP, i386
     also requires options APIC_IO.  The mptable(1) command may be used to
     view the status of multi-processor support.

     FreeBSD supports hyperthreading on Intel CPU's on the i386 platform.  By
     default, logical CPUs are not used to execute user processes due to per-
     formance penalties under common loads.  To allow the logical CPUs to exe-
     cute user processes, turn off the machdep.hlt_logical_cpus sysctl by set-
     ting its value to zero.

SEE ALSO
     mptable(1), condvar(9), msleep(9), mtx_pool(9), mutex(9), sema(9), sx(9)

HISTORY
     The SMP kernel's early history is not (properly) recorded.  It was devel-
     oped in a separate CVS branch until April 26, 1997, at which point it was
     merged into 3.0-current.  By this date 3.0-current had already been
     merged with Lite2 kernel code.

     FreeBSD 5.0 introduced support for a host of new synchronization primi-
     tives, and a move towards fine-grained kernel locking rather than
     reliance on a Giant kernel lock.  The SMPng Project relied heavily on the
     support of BSDi, who provided reference source code from the fine-grained
     SMP implementation found in BSD/OS.

     FreeBSD 5.0 also introduced support for SMP on the alpha, ia64, and
     sparc64 architectures.

AUTHORS
     Steve Passe <fsmp@FreeBSD.org>;

论坛徽章:
0
9 [报告]
发表于 2003-08-21 18:27 |只看该作者

我只有两个cpu,怎么在ps里面看到4个,是怎么回事情?

问题是不知道逻辑cpu是打开好还是关闭好,
我看到有人说打开后出现了当机现象。

论坛徽章:
0
10 [报告]
发表于 2003-08-22 08:20 |只看该作者

我只有两个cpu,怎么在ps里面看到4个,是怎么回事情?

这是常识阿。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP