Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2006 13:05:23 +0100
From:      RW <list-freebsd-2004@morbius.sent.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: CPUTYPE Optimizations
Message-ID:  <200604181305.25735.list-freebsd-2004@morbius.sent.com>
In-Reply-To: <44446F47.4010200@yahoo.com>
References:  <53599B87179DE947A3F8E90550BA89296BFF@amserver.AffidavitMaker.local> <44446F47.4010200@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list
> >http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >To unsubscribe, send any mail to
> > "freebsd-questions-unsubscribe@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604181305.25735.list-freebsd-2004>