CPUTYPE Optimizations

RW list-freebsd-2004 at morbius.sent.com
Tue Apr 18 12:05:51 UTC 2006


On Tuesday 18 April 2006 05:47, Brian McKeon wrote:
> Bradford Fisher wrote:
> >Gathering information as I begin building my optimized make.conf, I
> >collected from my sysctl output that I'm running on an Intel Pentium(R)
> >4 2.53 GHz processor.  I was wondering what architecture would be best
> >applied to the CPUTYPE flag.
> >
> >Thanks,
> >-Brad
> >_______________________________________________
> >freebsd-questions at freebsd.org mailing list
> >http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >To unsubscribe, send any mail to
> > "freebsd-questions-unsubscribe at freebsd.org"
>
> CPUTYPE=pentium4
> or
> CPUTYPE=pentium4m
> for a mobile chip
>
> seems logical. however it depends on the type of pentium 4 you have.
> There is one chip with more bells and whistles (SSE3 I believe) that has
> a specific CPUTYPE associated with it you'd have to check out GCC's
> website and lookinto the -march option I know the optimized p4 has a
> different name from the general p4 variants, but its exact name escapes
> me as I only have the general run of the mill version.
>

Just run 

   grep SSE /var/run/dmesg.boot

if you see SSE3 the type is prescott

It's sometimes useful to look in /usr/share/mk/bsd.cpu.mk where a lot of this 
stuff is defined.


More information about the freebsd-questions mailing list