Which CPUTYPE in make.conf?

2010-04-24 Thread Mike Clarke

I have a AMD Athlon 4850e which is described as Athlon 64 X2 
Dual-Core processor.

/usr/share/examples/etc/make.conf lists recognised CPU types, but which 
of athlon64, athlon-mp or athlon-xp is the most appropriate for this 
CPU? I've been using athlon64 so far without any problems but I don't 
know if it's the most appropriate choice or if there's even any 
significant difference between them.

-- 
Mike Clarke
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Which CPUTYPE in make.conf?

2010-04-24 Thread Антон Клесс
I deal with AMD Athlon 64 X2 4800+ Windsor (AM2, L2 2048Kb) and wondering of
it's CPUTYPE too.


2010/4/24 Mike Clarke jmc-freeb...@milibyte.co.uk


 I have a AMD Athlon 4850e which is described as Athlon 64 X2
 Dual-Core processor.

 /usr/share/examples/etc/make.conf lists recognised CPU types, but which
 of athlon64, athlon-mp or athlon-xp is the most appropriate for this
 CPU? I've been using athlon64 so far without any problems but I don't
 know if it's the most appropriate choice or if there's even any
 significant difference between them.

 --
 Mike Clarke
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Which CPUTYPE in make.conf?

2010-04-24 Thread Michael Powell
Mike Clarke wrote:

 
 I have a AMD Athlon 4850e which is described as Athlon 64 X2
 Dual-Core processor.
 
 /usr/share/examples/etc/make.conf lists recognised CPU types, but which
 of athlon64, athlon-mp or athlon-xp is the most appropriate for this
 CPU? I've been using athlon64 so far without any problems but I don't
 know if it's the most appropriate choice or if there's even any
 significant difference between them.
 

athlon64 is probably a good choice. I haven't looked at it in a while, and 
there isn't much difference. IIRC the older athlon-xp included support for 
3D Now and mmx while the athlon64 adds sse and/or sse2.

I think this matters more to third party ports software builds than it does 
the system. I thought that large pieces of the kernel were designed to not 
make much, if any, use the various SIMD extensions. Maybe this has changed 
and I'm behind the times. 

Your use of athlon64 seems reasonable to me. It is what I've been using. If 
it can be done better I'm always on the look out for better.

-Mike
  

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Which CPUTYPE in make.conf?

2010-04-24 Thread C. P. Ghost
On Sat, Apr 24, 2010 at 7:32 PM, Michael Powell nightre...@hotmail.com wrote:
 I think this matters more to third party ports software builds than it does
 the system. I thought that large pieces of the kernel were designed to not
 make much, if any, use the various SIMD extensions. Maybe this has changed
 and I'm behind the times.

I wouldn't bother setting CPUTYPE at all. It's more trouble than it's worth.

And you're right: for most ports and for the whole system, it doesn't really
matter. If you have a very specific port that needs particular tuning, it has
either already been tuned individually by the port maintainer, or you could
apply more optimizations yourself (which would likely require a specially
compiled tool chain, when -Osomething with the base gcc/binutils isn't
enough).

Unless you have a very specific need, better leave CPUTYPE alone.

 Your use of athlon64 seems reasonable to me. It is what I've been using. If
 it can be done better I'm always on the look out for better.

 -Mike

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Which CPUTYPE in make.conf?

2010-04-24 Thread Michael Powell
C. P. Ghost wrote:

 On Sat, Apr 24, 2010 at 7:32 PM, Michael Powell nightre...@hotmail.com
 wrote:
 I think this matters more to third party ports software builds than it
 does the system. I thought that large pieces of the kernel were designed
 to not make much, if any, use the various SIMD extensions. Maybe this has
 changed and I'm behind the times.
 
 I wouldn't bother setting CPUTYPE at all. It's more trouble than it's
 worth.

Actually, I've been setting CPUTYPE for many years and have never had any 
trouble as a result. I've always used the form: CPUTYPE?= blah instead of 
CPUTYPE= without the question mark. 
 
 And you're right: for most ports and for the whole system, it doesn't
 really matter. If you have a very specific port that needs particular
 tuning, it has either already been tuned individually by the port
 maintainer, or you could apply more optimizations yourself (which would
 likely require a specially compiled tool chain, when -Osomething with
 the base gcc/binutils isn't enough).

I have also used CFLAGS= -O2 -pipe COPTFLAGS= -O2 -pipe. About the only 
place it will really make any difference is in some multimedia apps. And 
you're right that if needed the port maintainer has already taken care of 
this.
 
 Unless you have a very specific need, better leave CPUTYPE alone.

Thing is, any performance increase is only going to be very small. So small 
the difference can probably not be seen subjectively. I'll do it as long as 
it creates no problem; if any problem were to arise over this I'd kill it in 
a heartbeat and not fuss over it. It is a point of diminishing returns. 
 
[snip]
-Mike
 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


which cputype for Althon 64 X2 Dual Core

2007-12-21 Thread Jeffrey Goldberg
I'm building a new server with 7.0 BETA4 (it will track stable) with  
the following CPU


CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ (2600.02-MHz K8- 
class CPU)

  Origin = AuthenticAMD  Id = 0x60fb1  Stepping = 1
   
Features 
= 
0x178bfbff 
 
FPU 
,VME 
,DE 
,PSE 
,TSC 
,MSR 
,PAE 
,MCE 
,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT

  Features2=0x2001SSE3,CX16
  AMD Features=0xea500800SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+, 
3DNow!

  AMD Features2=0x11fLAHF,CMP,SVM,ExtAPIC,CR8,Prefetch
  Cores per package: 2

What optimizations should I make in make.conf?

The example make.conf says

  AMD64 architecture: opteron, athlon64, nocona, prescott, core2

But I don't know whether althon64 or core2 would be the safest and  
most appropriate.


Also GENERIC for amd64 lists

cpuHAMMER

is that the best (only) choice?  And if not, where can I find a list  
of alternatives?  I didn't find anything in the NOTES files telling me  
what was available.


-j


--
Jeffrey Goldberghttp://www.goldmark.org/jeff/

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


Re: which cputype for Althon 64 X2 Dual Core

2007-12-21 Thread Chuck Swiger

On Dec 21, 2007, at 4:33 PM, Jeffrey Goldberg wrote:
I'm building a new server with 7.0 BETA4 (it will track stable) with  
the following CPU


CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ (2600.02-MHz K8- 
class CPU)

[ ... ]


What optimizations should I make in make.conf?


A reasonable starting point is no special optimizations, and simply  
disable debug options like WITNESS, INVARIANTS, etc.


If you plan to go beyond that, you'll need to start by doing some  
benchmarks before and after setting something like the CPU  
architecture that the compiler should tune for, and see whether you  
actually get any significant differences.



The example make.conf says

 AMD64 architecture: opteron, athlon64, nocona, prescott, core2

But I don't know whether althon64 or core2 would be the safest and  
most appropriate.


Also GENERIC for amd64 lists

   cpuHAMMER

is that the best (only) choice?


Yes, as far as AMD64 code goes.  You could always switch down to  
running in 32-bit mode, though.


--
-Chuck

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


Re: which cputype for Althon 64 X2 Dual Core

2007-12-21 Thread Jeffrey Goldberg
First of all, thank you very much for your response.  I have some  
follow up questions below.


On Dec 21, 2007, at 6:45 PM, Chuck Swiger wrote:


On Dec 21, 2007, at 4:33 PM, Jeffrey Goldberg wrote:



What optimizations should I make in make.conf?


A reasonable starting point is no special optimizations, and simply  
disable debug options like WITNESS, INVARIANTS, etc.


I didn't see mention of these in the example make.conf so I don't know  
how to disable those if they are enabled in the first place.


If you plan to go beyond that, you'll need to start by doing some  
benchmarks [...]


I'm after the low hanging fruit and I don't really have the  
inclination to do such extensive tuning.  I was just wondering if  
there is anything obvious.



The example make.conf says

AMD64 architecture: opteron, athlon64, nocona, prescott, core2

But I don't know whether althon64 or core2 would be the safest and  
most appropriate.


Also GENERIC for amd64 lists

  cpuHAMMER

is that the best (only) choice?


Yes, as far as AMD64 code goes.  You could always switch down to  
running in 32-bit mode, though.


That answer the question for the kernel configuration.  But what  
should I put in make.conf as cputype?  Right now, I've just left it  
unspecified.


I started a make buildworld and was surprised to see that it is using

  -O2 -fno-strict-aliasing -pipe

even though I didn't tell it to do so.  -O2 sounds like an odd default  
when it appears to be recommended against.


Where should I look for the defaults?

Cheers,

-j

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


Re: Which CPUTYPE?

2005-09-16 Thread Lowell Gilbert
Kiffin Gish [EMAIL PROTECTED] writes:

 I have the following configuration:
 
 CPU: AMD Sempron(tm) Processor 3100+ (1800.08-MHz 686-class CPU)
   Origin = AuthenticAMD  Id = 0xfc0  Stepping = 0
  
 Features=0x78bfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
 CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2
   AMD Features=0xc050NX,AMIE,DSP,3DNow!
 
 What CPUTYPE do I define in:

You don't need to change the defaults at all, you know.  It's not like
you're likely to *notice* any difference.  And the specific answers
depend on the version of FreeBSD you are running.

 - make.conf

man make.conf and search for CPUTYPE.  It will point you at a
sample or default configuration file.

 - kernel config

man 5 config and search for cpu.  You'll want the 686 version
according to that dmesg output.  On -STABLE (at least; I think this is
true on all versions, but I'm not sure), that is I686_CPU.  In any
case, it will already be in your configuration file (or GENERIC), and
you just need to remove the others in your config file.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Which CPUTYPE?

2005-09-15 Thread Kiffin Gish
I have the following configuration:

CPU: AMD Sempron(tm) Processor 3100+ (1800.08-MHz 686-class CPU)
  Origin = AuthenticAMD  Id = 0xfc0  Stepping = 0
 
Features=0x78bfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2
  AMD Features=0xc050NX,AMIE,DSP,3DNow!

What CPUTYPE do I define in:

- make.conf
- kernel config

Thankls a lot in advance.

-- 
Kiffin Rex Gish
Gouda, The Netherlands

 


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


Which CPUTYPE?

2005-09-12 Thread Kiffin Gish
I'm a bit confused which CPUTYPE I should be using in the make.conf file.

For my Dell Inspiron 8200 laptop, dmesg shows the following:

CPU: Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz (1993.54 686-class CPU)

and for my web server, dmesg shows the same thing although is has a 

AMD Sempron 1800BOX3100+

I see in the documentation that CPUTYPE=i686 is for older Pentium types, so
does that mean I should use CPUTYPE=i686 (even though dmesg shgows
'686-class CPU')

And my kernel file then? cpu I686_CPU or I586_CPU.

What should I use for my laptop? For my web server?

Thanks a lot in advance.

-- 
Kiffin Rex Gish
Gouda, The Netherlands

 


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


Re: Which CPUTYPE?

2005-09-12 Thread richard cinema
try the cpucaps,which is good for check your cpu abilities.

On 9/13/05, Kiffin Gish [EMAIL PROTECTED] wrote:
 
 I'm a bit confused which CPUTYPE I should be using in the make.conf file.
 
 For my Dell Inspiron 8200 laptop, dmesg shows the following:
 
 CPU: Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz (1993.54 686-class CPU)
 
 and for my web server, dmesg shows the same thing although is has a
 
 AMD Sempron 1800BOX3100+
 
 I see in the documentation that CPUTYPE=i686 is for older Pentium types, 
 so
 does that mean I should use CPUTYPE=i686 (even though dmesg shgows
 '686-class CPU')
 
 And my kernel file then? cpu I686_CPU or I586_CPU.
 
 What should I use for my laptop? For my web server?
 
 Thanks a lot in advance.
 
 --
 Kiffin Rex Gish
 Gouda, The Netherlands
 
 
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]

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


Re: Which CPUTYPE?

2005-09-12 Thread richard cinema
or if you can access a windows install, use cpuz do it

On 9/13/05, Kiffin Gish [EMAIL PROTECTED] wrote:
 
 I'm a bit confused which CPUTYPE I should be using in the make.conf file.
 
 For my Dell Inspiron 8200 laptop, dmesg shows the following:
 
 CPU: Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz (1993.54 686-class CPU)
 
 and for my web server, dmesg shows the same thing although is has a
 
 AMD Sempron 1800BOX3100+
 
 I see in the documentation that CPUTYPE=i686 is for older Pentium types, 
 so
 does that mean I should use CPUTYPE=i686 (even though dmesg shgows
 '686-class CPU')
 
 And my kernel file then? cpu I686_CPU or I586_CPU.
 
 What should I use for my laptop? For my web server?
 
 Thanks a lot in advance.
 
 --
 Kiffin Rex Gish
 Gouda, The Netherlands
 
 
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]

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


Re: Which CPUTYPE?

2005-09-12 Thread Charles Swiger

On Sep 12, 2005, at 1:58 PM, Kiffin Gish wrote:
CPU: Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz (1993.54 686- 
class CPU)


and for my web server, dmesg shows the same thing although is has a

AMD Sempron 1800BOX3100+

I see in the documentation that CPUTYPE=i686 is for older Pentium  
types, so

does that mean I should use CPUTYPE=i686 (even though dmesg shgows
'686-class CPU')

And my kernel file then? cpu I686_CPU or I586_CPU.

What should I use for my laptop? For my web server?


Both of your machines are 686-class machines, using -mpentium or - 
mpentiumpro would be fine.  There is an advantage to not compiling  
the kernel with 386 and 486 suppport, but after that the difference  
between 586 and 686 is fairly minimal


--
-Chuck


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