Hyperthreading

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Hyperthreading

Danilo Lara
Bom dia pessoal.
Instalei um open 3.9 num servidor Intel HT.
Compilei um kernel adicionando o arqivo GENERIC.MP e no meu dmesg agora
aparece as duas cpus.No FreeBSD além de fazer isso tem que acrescentar
uma opção no loader.conf ou no sysctl,que é a opção:
machdep.hyperthreading_allowed=1
No open tb é preciso isso?Porque no meu comando top não está aparecendo
a coluna(C) onde mostra em qual cpu o comando está sendo executado.Ou o
open não tem isso mesmo?

Valeu.

--
Danilo Augusto Vicente Lara
[hidden email]
Cel.: 61 9994-1361

_______________________________________________
OpenBSD mailing list
[hidden email]
http://neei.uevora.pt/mailman/listinfo/openbsd
Reply | Threaded
Open this post in threaded view
|

Re: Hyperthreading

Pedro Martelletto
On Wed, May 17, 2006 at 09:58:57AM -0300, Danilo Augusto wrote:
> machdep.hyperthreading_allowed=1
> No open tb é preciso isso?

Não.

> Porque no meu comando top não está aparecendo a coluna(C) onde mostra
> em qual cpu o comando está sendo executado.Ou o open não tem isso
> mesmo?

Eu tenho quase certeza que o OpenBSD não mostra isso no top. Você pode
verificar o número de CPUs em uso pelo kernel com 'sudo sysctl hw.ncpu'.

-p.
_______________________________________________
OpenBSD mailing list
[hidden email]
http://neei.uevora.pt/mailman/listinfo/openbsd
Reply | Threaded
Open this post in threaded view
|

Re: Hyperthreading

Danilo Lara
Eu olhei esse parametro,está igual a 1,então será que ele tá usando as
duas?Acho que ele começa a contar do zero né?

valeu.

On Wed, 2006-05-17 at 10:12 -0300, Pedro Martelletto wrote:
--
Danilo Augusto Vicente Lara
[hidden email]
Cel.: 61 9994-1361

_______________________________________________
OpenBSD mailing list
[hidden email]
http://neei.uevora.pt/mailman/listinfo/openbsd
Reply | Threaded
Open this post in threaded view
|

Re: Hyperthreading

Pedro Martelletto
On Wed, May 17, 2006 at 10:23:04AM -0300, Danilo Augusto wrote:
> Eu olhei esse parametro,está igual a 1,então será que ele tá usando as
> duas?Acho que ele começa a contar do zero né?

Ele começa a contar do 1 mesmo.

Tem como você mostrar o dmesg da máquina?

-p.
_______________________________________________
OpenBSD mailing list
[hidden email]
http://neei.uevora.pt/mailman/listinfo/openbsd
Reply | Threaded
Open this post in threaded view
|

Re: Hyperthreading

Danilo Lara
On Wed, 2006-05-17 at 10:31 -0300, Pedro Martelletto wrote:
> On Wed, May 17, 2006 at 10:23:04AM -0300, Danilo Augusto wrote:
> > Eu olhei esse parametro,está igual a 1,então será que ele tá usando as
> > duas?Acho que ele começa a contar do zero né?
>
> Ele começa a contar do 1 mesmo.
>
> Tem como você mostrar o dmesg da máquina?
>
> -p.

OpenBSD 3.9-stable (gol) #0: Wed May 17 06:18:25 BRT 2006
    [hidden email]:/usr/src/sys/arch/i386/compile/gol
cpu0: Intel(R) Pentium(R) 4 CPU 3.20GHz ("GenuineIntel" 686-class) 3.21
GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,CNXT-ID
real mem  = 1072996352 (1047848K)
avail mem = 972509184 (949716K)
using 4278 buffers containing 53751808 bytes (52492K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 10/20/04, BIOS32 rev. 0 @
0xf0010
apm0 at bios0: Power Management spec V1.2
apm0: AC on, no battery
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf69b0/192 (10 entries)
pcibios0: PCI Interrupt Router at 000:02:0 ("SiS 85C503 System" rev
0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000
cpu1 at mainbus0: (uniprocessor)
cpu1: Intel(R) Pentium(R) 4 CPU 3.20GHz ("GenuineIntel" 686-class) 3.21
GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,CNXT-ID
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "SiS 655 PCI" rev 0x50
ppb0 at pci0 dev 1 function 0 "SiS 648FX AGP" rev 0x00
pci1 at ppb0 bus 1
pcib0 at pci0 dev 2 function 0 "SiS 964 ISA" rev 0x36
pciide0 at pci0 dev 2 function 5 "SiS 5513 EIDE" rev 0x01: 655: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
wd0 at pciide0 channel 0 drive 0: <Maxtor 6L250R0>
wd0: 16-sector PIO, LBA48, 238475MB, 488397168 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
wd1 at pciide0 channel 1 drive 0: <Maxtor 6L300R0>
wd1: 16-sector PIO, LBA48, 286188MB, 586114704 sectors
atapiscsi0 at pciide0 channel 1 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, CD-ROM GCR-8523B, 1.03> SCSI0
5/cdrom removable
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 6
cd0(pciide0:1:1): using PIO mode 4, DMA mode 2
auich0 at pci0 dev 2 function 7 "SiS 7012 AC97" rev 0xa0: irq 10,
SiS7012 AC97
ac97: codec id 0x41445368 (Analog Devices AD1888)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
ohci0 at pci0 dev 3 function 0 "SiS 5597/5598 USB" rev 0x0f: irq 10,
version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: SiS OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 3 function 1 "SiS 5597/5598 USB" rev 0x0f: irq 11,
version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: SiS OHCI root hub, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ohci2 at pci0 dev 3 function 2 "SiS 5597/5598 USB" rev 0x0f: irq 3,
version 1.0, legacy support
usb2 at ohci2: USB revision 1.0
uhub2 at usb2
uhub2: SiS OHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 3 function 3 "SiS 7002 USB" rev 0x00: irq 5
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: SiS EHCI root hub, rev 2.00/1.00, addr 1
uhub3: 8 ports with 8 removable, self powered
sis0 at pci0 dev 4 function 0 "SiS 900 10/100BaseTX" rev 0x91: irq 11,
address 00:11:d8:ad:f6:81
rlphy0 at sis0 phy 1: RTL8201L 10/100 PHY, rev. 1
pciide1 at pci0 dev 5 function 0 "SiS 180 SATA" rev 0x01: DMA
pciide1: using irq 11 for native-PCI interrupt
vga1 at pci0 dev 9 function 0 "Trident TGUI 9440" rev 0xe3
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
isa0 at pcib0
isadma0 at isa0
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
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: W83627THF
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask ff6d netmask ff6d ttymask ffef
pctr: user-level cycle counter enabled
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302


--
Danilo Augusto Vicente Lara
[hidden email]
Cel.: 61 9994-1361

_______________________________________________
OpenBSD mailing list
[hidden email]
http://neei.uevora.pt/mailman/listinfo/openbsd
Reply | Threaded
Open this post in threaded view
|

Re: Hyperthreading

Pedro Martelletto
No top, você vê 'onproc/<cpu>' pra algum processo?

-p.
_______________________________________________
OpenBSD mailing list
[hidden email]
http://neei.uevora.pt/mailman/listinfo/openbsd
Reply | Threaded
Open this post in threaded view
|

Re: Hyperthreading

Danilo Lara
On Wed, 2006-05-17 at 11:26 -0300, Pedro Martelletto wrote:
> No top, você vê 'onproc/<cpu>' pra algum processo?
>
> -p.
Vejo um 'onproc' somente para o processo top.
Não aparece 'onproc/<cpu>',só 'onproc'


--
Danilo Augusto Vicente Lara
[hidden email]
Cel.: 61 9994-1361

_______________________________________________
OpenBSD mailing list
[hidden email]
http://neei.uevora.pt/mailman/listinfo/openbsd
Reply | Threaded
Open this post in threaded view
|

Re: Hyperthreading

Pedro Martelletto
On Wed, May 17, 2006 at 11:32:18AM -0300, Danilo Augusto wrote:
> Vejo um 'onproc' somente para o processo top.
> Não aparece 'onproc/<cpu>',só 'onproc'

Então o kernel está definitivamente usando só um processador. Você
ativou suporte a SMP nesse kernel? Que tal tentar dar boot no /bsd.mp?

-p.
_______________________________________________
OpenBSD mailing list
[hidden email]
http://neei.uevora.pt/mailman/listinfo/openbsd
Reply | Threaded
Open this post in threaded view
|

Re: Hyperthreading

Danilo Lara
On Wed, 2006-05-17 at 11:40 -0300, Pedro Martelletto wrote:
> On Wed, May 17, 2006 at 11:32:18AM -0300, Danilo Augusto wrote:
> > Vejo um 'onproc' somente para o processo top.
> > Não aparece 'onproc/<cpu>',só 'onproc'
>
> Então o kernel está definitivamente usando só um processador. Você
> ativou suporte a SMP nesse kernel? Que tal tentar dar boot no /bsd.mp?
>
> -p.
Compilei e instalei o GENERIC.MP mas mesmo assim não deu,engraçado que
com o GENERIC.MP nem aparece o cpu1,só o cpu0 mas quando compilo um
kernel próprio aparece mas está usando só uma cpu.

Valeu.

--
Danilo Augusto Vicente Lara
[hidden email]
Cel.: 61 9994-1361

_______________________________________________
OpenBSD mailing list
[hidden email]
http://neei.uevora.pt/mailman/listinfo/openbsd
Reply | Threaded
Open this post in threaded view
|

Re: Hyperthreading

Pedro Martelletto
Dá uma olhada nesse post:

http://marc.theaimsgroup.com/?l=openbsd-misc&m=110370141221987&w=2

-p.
_______________________________________________
OpenBSD mailing list
[hidden email]
http://neei.uevora.pt/mailman/listinfo/openbsd
Reply | Threaded
Open this post in threaded view
|

Re: Hyperthreading

Manuel Pata
In reply to this post by Danilo Lara
Em vez de compilares o kernel tenta antes utilizar estes dois:
<http://ftp.fmed.uc.pt/OpenBSD/3.9/i386/bsd.mp>
<http://ftp.fmed.uc.pt/OpenBSD/snapshots/i386/bsd.mp>

E verifica se estás a fazer boot ao kernel correcto! ;)

Danilo Augusto wrote:

> On Wed, 2006-05-17 at 11:40 -0300, Pedro Martelletto wrote:
>> On Wed, May 17, 2006 at 11:32:18AM -0300, Danilo Augusto wrote:
>>> Vejo um 'onproc' somente para o processo top.
>>> Não aparece 'onproc/<cpu>',só 'onproc'
>> Então o kernel está definitivamente usando só um processador. Você
>> ativou suporte a SMP nesse kernel? Que tal tentar dar boot no /bsd.mp?
>>
>> -p.
> Compilei e instalei o GENERIC.MP mas mesmo assim não deu,engraçado que
> com o GENERIC.MP nem aparece o cpu1,só o cpu0 mas quando compilo um
> kernel próprio aparece mas está usando só uma cpu.
>
> Valeu.
>

--
Manuel Pata
pata (ate) alface (dote) de
_______________________________________________
OpenBSD mailing list
[hidden email]
http://neei.uevora.pt/mailman/listinfo/openbsd