User Tools

Site Tools


smp_kernel_i_korišćenje_višestrukih_procesora_multicore_processors

This is an old revision of the document!


Uprkos popularnom verovanju da OpenBSD ne podržava višestruke procesore (Multiple CPU-s) istina je sasvim drugačija. OpenBSD podržava višestruke procesore na većem broju arhitektura od FreeBSD-a na primer. U trenutku pisanja ovog članka OpenBSD podržava SMP kernel na sledećim arhitekturama: i386, AMD64, Sparc64, PPC i mvme88k. Za većinu desktop korisnika SMP kernel je sinonim za korišćenje jednog procesora sa višestrukim core-s kao recimo Intel Core 2 Duo. U realnosti paralelnog računarstva predhodni scenario je gotovo i nebitan. Puno je bitnije da operativni sistem podržava matične ploče na kojima ima nekoliko procesora recimo 4 komada Intel Core 2 Duo. OpenBSD nema nikakvih problema sa time. Za razliku od drugih operativnih sistema OpenBSD zahteva eksplicitnu komandu prilikom boot procesa da želite da koristite SMP kernel:

boot> bsd.mp

što će reći da morate da otkucate bsd.mp na početku boot-a da bi koristili SMP kernel. Jednom kada se uverite pregledom dmesg da SMP kernel nema nikakvih problema sa vašim hardwareom kreiraće te fajl /etc/boot.conf i editovati ga sledećim kodom

set image /bsd.mp

I da se na kraju vratimo na Intel Core 2 Duo. Evo kako izgleda dmesg tek da nemislite da lažemo;-)

OpenBSD 4.3-current (GENERIC.MP) #697: Sat May 31 12:02:33 MDT 2008
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 CPU 4300 @ 1.80GHz ("GenuineIntel" 686-class) 1.81 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CX16,xTPR
real mem  = 3211948032 (3063MB)
avail mem = 3112243200 (2968MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 02/08/07, BIOS32 rev. 0 @ 0xf0010, SMBIOS rev. 2.4 @ 0xf04f0 (66 entries)
bios0: vendor American Megatrends Inc. version "0702" date 02/08/2007
bios0: ASUSTeK Computer INC. P5L-VM 1394
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC SLIC OEMB HPET MCFG SSDT SSDT
acpi0: wakeup devices P0P1(S4) P0P3(S4) P0P4(S4) P0P5(S4) P0P6(S4) P0P7(S4) P0P8(S4) P0P9(S4) PS2K(S4) PS2M(S4) UAR2(S4) MC97(S4) USB1(S4) USB2(S4) USB3(S4) USB4(S4) EUSB(S4) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU 4300 @ 1.80GHz ("GenuineIntel" 686-class) 1.80 GHz
cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CX16,xTPR
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P1)
acpiprt2 at acpi0: bus 1 (P0P3)
acpiprt3 at acpi0: bus 2 (P0P4)
acpiprt4 at acpi0: bus -1 (P0P5)
acpicpu0 at acpi0: FVS, 1800, 1200 MHz
acpicpu1 at acpi0: FVS, 1800, 1200 MHz
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: PWRB
bios0: ROM list: 0xc0000/0xae00!
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945G Host" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel 82945G Video" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: aperture at 0xd0000000, size 0x10000000
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: apic 2 int 19 (irq 11)
azalia0: codec[s]: Realtek ALC883
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01: apic 2 int 16 (irq 10)
pci1 at ppb0 bus 2
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 2 int 20 (irq 5)
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 2 int 17 (irq 5)
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 2 int 18 (irq 3)
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: apic 2 int 19 (irq 11)
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: apic 2 i
nt 20 (irq 5)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb1 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xe1
pci2 at ppb1 bus 1
"VIA VT6306 FireWire" rev 0xc0 at pci2 dev 3 function 0 not configured
ral0 at pci2 dev 9 function 0 "Ralink RT2561S" rev 0x00: apic 2 int 21 (irq 10), address 00:0e:2e:c4:7c:dc
ral0: MAC/BBP RT2561C, RF RT2527
rl0 at pci2 dev 10 function 0 "Accton MPX 5030/5038" rev 0x10: apic 2 int 22 (irq 10), address 00:10:b5:07:95:61
rlphy0 at rl0 phy 0: RTL internal PHY
ichpcib0 at pci0 dev 31 function 0 "Intel 82801GB LPC" rev 0x01: PM disabled
pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x01: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: <LITE-ON, DVDRW LH-18A1P, GL0C> ATAPI 5/
cdrom removable
cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 4
pciide0: channel 1 disabled (no drives)
pciide1 at pci0 dev 31 function 2 "Intel 82801GB SATA" rev 0x01: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 2 int 17 (irq 5) for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <WDC WD1600JS-00NCB1>
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x01: apic 2 int 17 (irq 0)
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM non-parity PC2-5300CL5
spdmem1 at iic0 addr 0x51: 1GB DDR2 SDRAM non-parity PC2-5300CL5
spdmem2 at iic0 addr 0x52: 512MB DDR2 SDRAM non-parity PC2-5300CL5
spdmem3 at iic0 addr 0x53: 1GB DDR2 SDRAM non-parity PC2-5300CL5
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
wbsio0 at isa0 port 0x2e/2: W83627DHG rev 0x23
lm1 at wbsio0 port 0x290/8: W83627DHG
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
mtrr: Pentium Pro MTRR support
ulpt0 at uhub0 port 8 configuration 1 interface 1 "HP Photosmart C5200
 series" rev 2.00/1.00 addr 2
ulpt0: using bi-directional mode
umass0 at uhub0 port 8 configuration 1 interface 3 "HP Photosmart C5200 series" rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <HP, , 1.00> SCSI3 0/direct removable
sd0: drive offline
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
smp_kernel_i_korišćenje_višestrukih_procesora_multicore_processors.1213546644.txt.gz · Last modified: 2017/04/28 10:25 (external edit)