Re: [FUG-BR] SMP

2006-03-24 Por tôpico Luiz Neto

> 
> # sysctl machdep.hyperthreading_allowed=1
> 

> -- 
> Rainer Alves
> 

Deu certo.
Muito obrigado.

Luiz.
___
freebsd mailing list
freebsd@fug.com.br
http://lists.fug.com.br/listinfo.cgi/freebsd-fug.com.br


Re: [FUG-BR] SMP

2006-03-24 Por tôpico Rainer Alves
Luiz Neto wrote:
> Comprei um pc PIV 3.00GHZ HT  habilitei o kernel com 
> 
> options SMP  
> device apic
...
> Googleando por ai vi que no top não aparece as duas cpus e sim uma coluna "C"
> onde deve alternar entre 1 e 0 dependendo do processo. Mas isso não está
> acontecendo como mostra o top abaixo

# sysctl machdep.hyperthreading_allowed=1

"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."

-- 
Rainer Alves

___
freebsd mailing list
freebsd@fug.com.br
http://lists.fug.com.br/listinfo.cgi/freebsd-fug.com.br


[FUG-BR] SMP

2006-03-24 Por tôpico Luiz Neto
Caros, boa tarde.

Comprei um pc PIV 3.00GHZ HT  habilitei o kernel com 

options SMP  
device apic


meu dmesg está assim,

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 #1: Thu Mar 23 18:39:07 UTC 2006
root@:/usr/src/sys/i386/compile/MULAMBO
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (3000.13-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf41  Stepping = 1
Features=0xbfebfbff
  Features2=0x441d>
  Hyperthreading: 2 logical CPUs
real memory  = 2147287040 (2047 MB)
avail memory = 2096324608 (1999 MB)
ACPI APIC Table: 
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0  irqs 0-23 on motherboard
ioapic1  irqs 24-47 on motherboard
cpu0:  on acpi0
acpi_throttle0:  on cpu0
cpu1:  on acpi0

SMP: AP CPU #1 Launched!

Googleando por ai vi que no top não aparece as duas cpus e sim uma coluna "C"
onde deve alternar entre 1 e 0 dependendo do processo. Mas isso não está
acontecendo como mostra o top abaixo


0.0% user,  0.0% nice,  0.2% system,  0.0% interrupt, 99.8% idle
Mem: 40M Active, 6440K Inact, 22M Wired, 20M Buf, 1934M Free
Swap:

  PID USERNAME  THR PRI NICE   SIZERES STATE  C   TIME   WCPU COMMAND
  410 root1  960 13356K 12816K select 0   0:01  0.00% clamd
  392 mysql   6  200 56880K 24556K kserel 0   0:00  0.00% mysqld
  394 root1   80  1224K   672K nanslp 0   0:00  0.00% svscan
  585 root1  960  6076K  3100K select 0   0:00  0.00% sshd
  588 root1  200  4160K  2868K pause  0   0:00  0.00% csh
  412 qmails  1  960  1236K   676K select 0   0:00  0.00% qmail-send
  288 root1  960  1292K   856K select 0   0:00  0.00% syslogd
  609 root1  960  2348K  1572K CPU0   0   0:00  0.00% top
  450 root1   80  1312K  1020K nanslp 0   0:00  0.00% cron
  367 root1   80  1644K  1096K wait   0   0:00  0.00% sh


Alguém poderia me ajudar??

Grato.

Luiz.
___
freebsd mailing list
freebsd@fug.com.br
http://lists.fug.com.br/listinfo.cgi/freebsd-fug.com.br


Re: [FUG-BR] SMP

2005-03-07 Por tôpico Willian Bittar Martins Rodrigues
Muito obrigado pela ajuda...

Willian Bittar
- Original Message - 
From: "Carlos Anderson Jardim" <[EMAIL PROTECTED]>
To: 
Sent: Monday, March 07, 2005 1:27 PM
Subject: Re: [FUG-BR] SMP


Willian,

Se voce compilou seu kernel com o smp ativo

optionsSMP # Symmetric MultiProcessor Kernel
optionsAPIC_IO # Symmetric (APIC) I/O

Voce pode verificar usando:

#dmesg | grep cpu

 cpu0 (BSP): apic id:  3, version: 0x00040011, at 0xfee0
 cpu1 (AP):  apic id:  0, version: 0x00040011, at 0xfee0

Para ver se esta sendo utilizado note que o "C" será a CPU1 ou CPU2:

#top

  PID USERNAME  PRI NICE  SIZERES STATE  C   TIME   WCPUCPU
COMMAND
21999 user   18   0   160M   157M pause  1   5:13  0.00%  0.00% smbd
28356 user2   0 15964K 12108K select 0   4:43  0.00%  0.00% smbd
28389 user2   0 11480K  7624K select 1   4:36  0.00%  0.00% smbd
22147 user2   0  6964K  6100K select 1   4:36  0.00%  0.00%
cupsd
28372 user2   0 11212K  6720K select 0   4:01  0.00%  0.00% smbd
28380 user2   0 10724K  7252K select 1   3:59  0.00%  0.00% smbd

Atencioasmente,


Carlos Anderson Jardim
Tecnologia da Informacao - Redes e Internet
Santa Casa de São José dos Campos
Tel.: (12) 3925-1873 - 3925-1925




Willian Bittar Martins Rodrigues escreveu:

>Pessoal como faço para saber se o freebsd reconheceu ou não os dois
>processadores ?
>
>Willian Bittar
>

___
Para enviar um novo email para a lista: freebsd@fug.com.br
Sair da Lista: http://mail.fug.com.br/mailman/listinfo/freebsd_fug.com.br
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/



___
Para enviar um novo email para a lista: freebsd@fug.com.br
Sair da Lista: http://mail.fug.com.br/mailman/listinfo/freebsd_fug.com.br
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/


Re: [FUG-BR] SMP

2005-03-07 Por tôpico Carlos Anderson Jardim
Willian,
Se voce compilou seu kernel com o smp ativo
optionsSMP # Symmetric MultiProcessor Kernel
optionsAPIC_IO # Symmetric (APIC) I/O
Voce pode verificar usando:
#dmesg | grep cpu
cpu0 (BSP): apic id:  3, version: 0x00040011, at 0xfee0
cpu1 (AP):  apic id:  0, version: 0x00040011, at 0xfee0
Para ver se esta sendo utilizado note que o "C" será a CPU1 ou CPU2:
#top
 PID USERNAME  PRI NICE  SIZERES STATE  C   TIME   WCPUCPU 
COMMAND
21999 user   18   0   160M   157M pause  1   5:13  0.00%  0.00% smbd
28356 user2   0 15964K 12108K select 0   4:43  0.00%  0.00% smbd
28389 user2   0 11480K  7624K select 1   4:36  0.00%  0.00% smbd
22147 user2   0  6964K  6100K select 1   4:36  0.00%  0.00% 
cupsd
28372 user2   0 11212K  6720K select 0   4:01  0.00%  0.00% smbd
28380 user2   0 10724K  7252K select 1   3:59  0.00%  0.00% smbd

Atencioasmente,

Carlos Anderson Jardim
Tecnologia da Informacao - Redes e Internet
Santa Casa de São José dos Campos
Tel.: (12) 3925-1873 - 3925-1925 


Willian Bittar Martins Rodrigues escreveu:
Pessoal como faço para saber se o freebsd reconheceu ou não os dois
processadores ?
Willian Bittar
___
Para enviar um novo email para a lista: freebsd@fug.com.br
Sair da Lista: http://mail.fug.com.br/mailman/listinfo/freebsd_fug.com.br
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/


[FUG-BR] SMP

2005-03-07 Por tôpico Willian Bittar Martins Rodrigues
Pessoal como faço para saber se o freebsd reconheceu ou não os dois
processadores ?

Willian Bittar



___
Para enviar um novo email para a lista: freebsd@fug.com.br
Sair da Lista: http://mail.fug.com.br/mailman/listinfo/freebsd_fug.com.br
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/