second CPU not utilized

Till Plewe till at score.is.tsukuba.ac.jp
Wed Apr 14 19:54:26 PDT 2004


Does anybody have an idea why the second cpu is not used for the 
computing intensive work?

idle will stay around 50% while the two instances of python2.4 share 1 CPU

The only unusual occurence recently were a few Bus Errors and the system freezing
when two processes which were using around 2-4GB of memory each were running

########
uname -a
########

FreeBSD plewe3.is.tsukuba.ac.jp 5.2-CURRENT FreeBSD 5.2-CURRENT #2:
Tue Apr 13 10:49:31 JST 2004
till at plewe3.is.tsukuba.ac.jp:/usr/obj/usr/src/sys/MYKERNEL amd64

###
top 
###

last pid:  1148;  load averages:  1.80,  1.88,  1.90              up 0+03:03:20  11:34:49
34 processes:  3 running, 31 sleeping
CPU states: 49.8% user,  0.0% nice,  0.4% system,  0.0% interrupt, 49.8% idle
Mem: 1138M Active, 3087M Inact, 288M Wired, 186M Cache, 214M Buf, 1186M Free
Swap: 4096M Total, 4096M Free

  PID USERNAME PRI NICE   SIZE    RES STATE  C   TIME   WCPU    CPU COMMAND
 1080 root     139    0  1016M  1004M RUN    0   5:06 64.84% 64.84% python2.4
 1148 root     139    0   114M   100M CPU0   0   0:15 28.12% 28.12% python2.4
  589 root      76    0 29008K 17040K select 1   0:07  0.00%  0.00% XFree86
  595 root      76    0 36044K  3292K select 1   0:02  0.00%  0.00% mlterm
  601 root      76    0 35884K  3212K select 1   0:02  0.00%  0.00% mlterm

 ....


last pid:  1200;  load averages:  1.75,  1.87,  1.90              up 0+03:17:11  11:48:40
34 processes:  3 running, 31 sleeping
CPU states: 50.0% user,  0.0% nice,  0.6% system,  0.2% interrupt, 49.2% idle
Mem: 2309M Active, 3029M Inact, 290M Wired, 249M Cache, 214M Buf, 8180K Free
Swap: 4096M Total, 4096M Free

  PID USERNAME PRI NICE   SIZE    RES STATE  C   TIME   WCPU    CPU COMMAND
 1168 root     139    0  1022M  1010M CPU0   0   5:06 75.00% 75.00% python2.4
 1148 root     139    0  1279M  1268M RUN    0   7:32 18.75% 18.75% python2.4
  589 root      76    0 29008K 17040K select 1   0:08  0.00%  0.00% XFree86
  595 root      76    0 36044K  3292K select 1   0:02  0.00%  0.00% mlterm

#######################################################
diff /sys/amd64/conf/MYKERNEL /sys/amd64/conf/GENERIC
#######################################################

23c23
< ident         MYKERNEL
---
> ident         GENERIC
28c28
< #makeoptions  DEBUG=-g                # Build kernel with gdb(1) debug symbols
---
> makeoptions   DEBUG=-g                # Build kernel with gdb(1) debug symbols
63,67c63,67
< #options      DDB                     # Enable the kernel debugger
< #options      INVARIANTS              # Enable calls of extra sanity checking
< #options      INVARIANT_SUPPORT       # Extra sanity checks of internal structures, required by INVARIANTS
< #options      WITNESS                 # Enable checks to detect deadlocks and cycles
< #options      WITNESS_SKIPSPIN        # Don't run witness on spinlocks for speed
---
> options       DDB                     # Enable the kernel debugger
> options       INVARIANTS              # Enable calls of extra sanity checking
> options       INVARIANT_SUPPORT       # Extra sanity checks of internal structures, required by INVARIANTS
> options       WITNESS                 # Enable checks to detect deadlocks and cycles
> options       WITNESS_SKIPSPIN        # Don't run witness on spinlocks for speed
78a79
> 
264,268d264
< 
< options               MAXDSIZ="(23UL*256*1024*1024)"
< options               MAXSSIZ="(23UL*256*1024*1024)"
< options               DFLDSIZ="(23UL*256*1024*1024)"
< 

######
dmesg
######
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.2-CURRENT #2: Tue Apr 13 10:49:31 JST 2004
    till at plewe3.is.tsukuba.ac.jp:/usr/obj/usr/src/sys/MYKERNEL
Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffff808a6000.
ACPI APIC Table: <PTLTD          APIC  >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Opteron(tm) Processor 248 (2205.01-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0xf58  Stepping = 8
  Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE
36,CLFLUSH,MMX,FXSR,SSE,SSE2>
  AMD Features=0xe0500800<SYSCALL,NX,MMX+,LM,3DNow!+,3DNow!>
real memory  = 6442450944 (6144 MB)
avail memory = 6163116032 (5877 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0 <Version 1.1> irqs 0-23 on motherboard
ioapic1 <Version 1.1> irqs 24-27 on motherboard
ioapic2 <Version 1.1> irqs 28-31 on motherboard
random: <entropy source, Software, Yarrow>
acpi0: <PTLTD    XSDT> on motherboard
acpi0: [GIANT-LOCKED]
acpi0: Power Button (fixed)
acpi0: Sleep Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
unknown: I/O range not supported
unknown: I/O range not supported
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0
acpi_cpu0: <CPU> port 0x530-0x537 on acpi0
acpi_cpu1: <CPU> port 0x530-0x537 on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pcib0: could not get PCI interrupt routing table for \\_SB_.PCI0 - AE_NOT_FOUND
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 6.0 on pci0
pci1: <ACPI PCI bus> on pcib1
ohci0: <OHCI (generic) USB controller> mem 0xfc100000-0xfc100fff irq 19 at device 0.0 on p
ci1
ohci0: Bus reserved 0x1000 bytes for rid 0x10 type 3 at 0xfc100000
ohci0: [GIANT-LOCKED]
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: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1: <OHCI (generic) USB controller> mem 0xfc101000-0xfc101fff irq 19 at device 0.1 on p
ci1
ohci1: Bus reserved 0x1000 bytes for rid 0x10 type 3 at 0xfc101000
ohci1: [GIANT-LOCKED]
usb1: OHCI version 1.0, legacy support
usb1: SMM does not respond, resetting
usb1: <OHCI (generic) USB controller> on ohci1
usb1: USB revision 1.0
uhub1: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ahc0: <Adaptec 2940 Ultra SCSI adapter> port 0x2000-0x20ff mem 0xfc102000-0xfc102fff irq 1
6 at device 4.0 on pci1
ahc0: Bus reserved 0x100 bytes for rid 0x10 type 4 at 0x2000
ahc0: [GIANT-LOCKED]
aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs
pci1: <display, VGA> at device 6.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD 8111 UDMA133 controller> port 0x1020-0x102f at device 7.1 on pci0
atapci0: Bus reserved 0x10 bytes for rid 0x20 type 4 at 0x1020
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <serial bus, SMBus> at device 7.2 (no driver attached)
pci0: <bridge, PCI-unknown> at device 7.3 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 10.0 on pci0
pci2: <ACPI PCI bus> on pcib2
bge0: <Broadcom BCM5702 Gigabit Ethernet, ASIC rev. 0x1002> mem 0xfe000000-0xfe00ffff irq 
27 at device 3.0 on pci2
bge0: Bus reserved 0x10000 bytes for rid 0x10 type 3 at 0xfe000000
miibus0: <MII bus> on bge0
brgphy0: <BCM5703 10/100/1000baseTX PHY> on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
bge0: Ethernet address: 00:50:45:00:aa:7f
bge0: [GIANT-LOCKED]
bge1: <Broadcom BCM5702 Gigabit Ethernet, ASIC rev. 0x1002> mem 0xfe010000-0xfe01ffff irq 
27 at device 4.0 on pci2
bge1: Bus reserved 0x10000 bytes for rid 0x10 type 3 at 0xfe010000
miibus1: <MII bus> on bge1
brgphy1: <BCM5703 10/100/1000baseTX PHY> on miibus1
brgphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
bge1: Ethernet address: 00:50:45:00:aa:80
bge1: [GIANT-LOCKED]
atapci1: <Promise PDC20319 SATA150 controller> port 0x3000-0x307f,0x30c0-0x30cf,0x3080-0x3
0bf mem 0xfe020000-0xfe03ffff,0xfe040000-0xfe040fff irq 25 at device 5.0 on pci2
atapci1: rid 0x20 says memory, driver wants 4 failed.
atapci1: Bus reserved 0x1000 bytes for rid 0x1c type 3 at 0xfe040000
ata2: at 0xfe040000 on atapci1
ata3: at 0xfe040000 on atapci1
ata4: at 0xfe040000 on atapci1
ata5: at 0xfe040000 on atapci1
pci0: <base peripheral, interrupt controller> at device 10.1 (no driver attached)
pcib3: <ACPI PCI-PCI bridge> at device 11.0 on pci0
pci3: <ACPI PCI bus> on pcib3
pci0: <base peripheral, interrupt controller> at device 11.1 (no driver attached)
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f0-0x3f5 irq 6
 drq 2 on acpi0
isa_dmainit(2, 1024) failed
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0 port 0x778-0x77f,0x378-0x37f irq 7 drq 4 on acpi0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
isa_dmainit(4, 1024) failed
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
cpu0 on motherboard
cpu1 on motherboard
orm0: <Option ROMs> at iomem 0xcb000-0xcf7ff,0xc9800-0xcafff,0xc8000-0xc97ff,0xc0000-0xc7f
ff on isa0
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 0.976 msec
ad0: 114473MB <ST3120026A> [232581/16/63] at ata0-master UDMA100
acd0: CDROM <CRD-8480C> at ata1-master PIO4
Waiting 15 seconds for SCSI devices to settle
SMP: AP CPU #1 Launched!
da1: <IBM DNES-318350W SA30> Fixed Direct Access SCSI-3 device 
da1: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing Enabled
da1: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
da0 at ahc0 bus 0 target 0 lun 0
da0: <IBM DNES-318350W SA30> Fixed Direct Access SCSI-3 device 
da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing Enabled
da0: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
Mounting root from ufs:/dev/da0s1a





More information about the freebsd-questions mailing list