Re: /etc/make.conf CPUTYPE question (nacona vs. pentium4)

2007-01-10 Thread Pieter de Goeje
On Tuesday 09 January 2007 10:46, Oliver Fromme wrote:
 Hi,

 I'm trying to write an appropriate CPUTYPE entry for
 /etc/make.conf for the following machine:

 CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (2799.95-MHz 686-class CPU)
   Origin = GenuineIntel  Id = 0xf41  Stepping = 1
   Features=0xbfebfbffFPU,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
   Features2=0x441dSSE3,RSVD2,MON,DS_CPL,CNTX-ID,b14
   Logical CPUs per core: 2

 I've read the appropriate sections in the make.conf(5)
 manpage, /usr/share/examples/etc/make.conf and even
 /usr/share/mk/bsd.cpu.mk, but they don't really help.

 So far I've been using CPUTYPE=pentium4, but I wonder
 if nocona would be better, however I'm not sure if my
 CPU above qualifies as a nocona one.  I think the main
 difference is that nocona supports SSE3, and SSE3 is
 indeed listed in the CPU features above, so ...

From what I found on the Internet it seems that Nocona is the name of the 
first Xeon CPU that supports long mode (x86-64). Your CPU definately doesn't 
support long mode, so nocona isn't right. (S)SSE3 adds only a few 
instructions but they are really useful (in my opinion).

GCC(1) suggests:
   prescott
   Improved version of Intel Pentium4 CPU with MMX, SSE, SSE2 and
   SSE3 instruction set support.

Cheers,
Pieter
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /etc/make.conf CPUTYPE question (nacona vs. pentium4)

2007-01-10 Thread Nikolas Britton

On 1/9/07, Oliver Fromme [EMAIL PROTECTED] wrote:

Hi,

I'm trying to write an appropriate CPUTYPE entry for
/etc/make.conf for the following machine:

CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (2799.95-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf41  Stepping = 1
  Features=0xbfebfbffFPU,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
  Features2=0x441dSSE3,RSVD2,MON,DS_CPL,CNTX-ID,b14
  Logical CPUs per core: 2

I've read the appropriate sections in the make.conf(5)
manpage, /usr/share/examples/etc/make.conf and even
/usr/share/mk/bsd.cpu.mk, but they don't really help.

So far I've been using CPUTYPE=pentium4, but I wonder
if nocona would be better, however I'm not sure if my
CPU above qualifies as a nocona one.  I think the main
difference is that nocona supports SSE3, and SSE3 is
indeed listed in the CPU features above, so ...

Does anybody know for sure?  Thank you very much in advance!

Best regards
   Oliver



nocona I believe added 64-bit extensions to the processor. Does your
processor have 64-bit extensions? A better make.conf would be
something like this though:

CPUTYPE?=pentium3
CFLAGS+= -mtune=nocona
COPTFLAGS+= -mtune=nocona

or

CPUTYPE?=pentium3
CFLAGS+= -mtune=prescott
COPTFLAGS+= -mtune=prescott

then use an if endif block to override system wide settings, such as
with this example:

.if ${.CURDIR:M*/databases/mysql*}
BROKEN=yes
.endif
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /etc/make.conf CPUTYPE question (nacona vs. pentium4)

2007-01-10 Thread Garrett Cooper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nikolas Britton wrote:
 On 1/9/07, Oliver Fromme [EMAIL PROTECTED] wrote:
 Hi,

 I'm trying to write an appropriate CPUTYPE entry for
 /etc/make.conf for the following machine:

 CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (2799.95-MHz 686-class CPU)
   Origin = GenuineIntel  Id = 0xf41  Stepping = 1
   Features=0xbfebfbffFPU,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
   Features2=0x441dSSE3,RSVD2,MON,DS_CPL,CNTX-ID,b14
   Logical CPUs per core: 2

 I've read the appropriate sections in the make.conf(5)
 manpage, /usr/share/examples/etc/make.conf and even
 /usr/share/mk/bsd.cpu.mk, but they don't really help.

 So far I've been using CPUTYPE=pentium4, but I wonder
 if nocona would be better, however I'm not sure if my
 CPU above qualifies as a nocona one.  I think the main
 difference is that nocona supports SSE3, and SSE3 is
 indeed listed in the CPU features above, so ...

 Does anybody know for sure?  Thank you very much in advance!

 Best regards
Oliver

 
 nocona I believe added 64-bit extensions to the processor. Does your
 processor have 64-bit extensions? A better make.conf would be
 something like this though:
 
 CPUTYPE?=pentium3
 CFLAGS+= -mtune=nocona
 COPTFLAGS+= -mtune=nocona
 
 or
 
 CPUTYPE?=pentium3
 CFLAGS+= -mtune=prescott
 COPTFLAGS+= -mtune=prescott
 
 then use an if endif block to override system wide settings, such as
 with this example:
 
 .if ${.CURDIR:M*/databases/mysql*}
 BROKEN=yes
 .endif

Oliver,
It appears that there may be some confusion as to which processor you
are running in your machine.
You can better determine what processor you have by looking at the
Intel processor number site:
http://www.intel.com/products/processor_number/index_view_p4.htm. By
looking at both the frequency and the cache size, you can determine what
your CPU is and what support you should enable. If you know the purchase
/ build date for your CPU you can also determine what the model is for
the processor as well much better.
If your CPU does support nocona, you might want to try enabling the
support, but as others have said you may want to strictly add support
like Nikolas showed, just to be on the safe side. I'm not sure how well
supported the nocona P4 architecture is with the version of GCC used by
FreeBSD.

Nikolas,
You are correct. The nocona CPUs are dual-core (only?) 32/64bit capable
EM64T processors.

- -Garrett
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.1 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFpN09EnKyINQw/HARAtFhAJ0bwguE3KaeajJWjN/rhsI3zBpSLQCdHBVm
WcKhstnftKsEI4dhfe1fVfI=
=yb3C
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


/etc/make.conf CPUTYPE question (nacona vs. pentium4)

2007-01-09 Thread Oliver Fromme
Hi,

I'm trying to write an appropriate CPUTYPE entry for
/etc/make.conf for the following machine:

CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (2799.95-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf41  Stepping = 1
  Features=0xbfebfbffFPU,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
  Features2=0x441dSSE3,RSVD2,MON,DS_CPL,CNTX-ID,b14
  Logical CPUs per core: 2

I've read the appropriate sections in the make.conf(5)
manpage, /usr/share/examples/etc/make.conf and even
/usr/share/mk/bsd.cpu.mk, but they don't really help.

So far I've been using CPUTYPE=pentium4, but I wonder
if nocona would be better, however I'm not sure if my
CPU above qualifies as a nocona one.  I think the main
difference is that nocona supports SSE3, and SSE3 is
indeed listed in the CPU features above, so ...

Does anybody know for sure?  Thank you very much in advance!

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

With sufficient thrust, pigs fly just fine.  However, this
is not necessarily a good idea.  It is hard to be sure where
they are going to land, and it could be dangerous sitting
under them as they fly overhead. -- RFC 1925
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]