Re: make.conf and building multiple kernels and worlds

2007-01-10 Thread Garrett Cooper

Abdullah Al-Marrie wrote:

On 1/10/07, Garrett Cooper <[EMAIL PROTECTED]> wrote:

Abdullah Al-Marrie wrote:
> Mine is EMT64, but I use i386.
>
> Could you please tell me why P4 would be better for MySQL server or
> apache?
Crap, I can't find the article where Intel was comparing the Opterons to
the Xeons that I was reading last night. It mentioned what the Intel
guys used for GCC with -march on a Core 2 Duo system.

However, I did find a Gentoo Wiki page where it says that safe CFLAGS /
CPUTYPE values for EM64T CPUs is nocona:
. 


The only thing is that they use gcc-3.4 by default as well as gcc-4.1 /
gcc-4.2, so processor support may be better with the later versions 
of gcc.


-Garrett


So for i386 I should use prescott, right?
   prescott should be a safe bet, yes. However, I don't see why nocona 
support couldn't be used. CPUTYPE in freebsd's make.conf is a "soft 
alias" to -march, which adds CPU support for the target architecture, 
but doesn't force the binary to only work in the target architecture IIRC.

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


Re: make.conf and building multiple kernels and worlds

2007-01-10 Thread Abdullah Al-Marrie

On 1/10/07, Garrett Cooper <[EMAIL PROTECTED]> wrote:

Abdullah Al-Marrie wrote:
> Mine is EMT64, but I use i386.
>
> Could you please tell me why P4 would be better for MySQL server or
> apache?
Crap, I can't find the article where Intel was comparing the Opterons to
the Xeons that I was reading last night. It mentioned what the Intel
guys used for GCC with -march on a Core 2 Duo system.

However, I did find a Gentoo Wiki page where it says that safe CFLAGS /
CPUTYPE values for EM64T CPUs is nocona:
.
The only thing is that they use gcc-3.4 by default as well as gcc-4.1 /
gcc-4.2, so processor support may be better with the later versions of gcc.

-Garrett


So for i386 I should use prescott, right?

--
Regards,

-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: make.conf and building multiple kernels and worlds

2007-01-10 Thread Garrett Cooper

Abdullah Al-Marrie wrote:

Mine is EMT64, but I use i386.

Could you please tell me why P4 would be better for MySQL server or 
apache?
Crap, I can't find the article where Intel was comparing the Opterons to 
the Xeons that I was reading last night. It mentioned what the Intel 
guys used for GCC with -march on a Core 2 Duo system.


However, I did find a Gentoo Wiki page where it says that safe CFLAGS / 
CPUTYPE values for EM64T CPUs is nocona: 
. 
The only thing is that they use gcc-3.4 by default as well as gcc-4.1 / 
gcc-4.2, so processor support may be better with the later versions of gcc.


-Garrett


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


Re: make.conf and building multiple kernels and worlds

2007-01-10 Thread Abdullah Al-Marrie

On 1/10/07, Garrett Cooper <[EMAIL PROTECTED]> wrote:

Abdullah Al-Marrie wrote:
> On 1/10/07, Jonathan Horne <[EMAIL PROTECTED]> wrote:
>> gentlmen, thank you for these answers, i think ill find them useful.
>>
>> i did a some much needed reading into the names of the pentium
>> processors,
>> and apparently my p4-540 is a Prescott, and my xeon is a Prestonia.  i
>> dont see anything in the eample-make.conf that mentions Prestonia.. what
>> would the best choice for that one be?  just plain "pentium4" ?
>>
>> thanks,
>> jonathan
>>
>
> Sadly there is no good explination in the example when it comes to
> server apps like apache, mysql, and other apps.
>
> I mean what is the usage of using P4 of P3 when I compile mysql
> server? isn't prescott better even my cpu is xeon which is nocona.
Some Prescott processors were only 32-bit capable where a select few
were 64-bit capable. See: .
As for the prestonia chips, I *think* (not sure because IA64 was
released quite a few years back), that they are strictly 32-bit chips.
So, just to be safe I'd stick with pentium4, but be sure to enable SMP
and apic in the kernel as well in order to get hyperthreading. CNET PR:
.
-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"



Mine is EMT64, but I use i386.

Could you please tell me why P4 would be better for MySQL server or apache?

--
Regards,

-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: make.conf and building multiple kernels and worlds

2007-01-10 Thread Garrett Cooper

Abdullah Al-Marrie wrote:

On 1/10/07, Jonathan Horne <[EMAIL PROTECTED]> wrote:

gentlmen, thank you for these answers, i think ill find them useful.

i did a some much needed reading into the names of the pentium 
processors,

and apparently my p4-540 is a Prescott, and my xeon is a Prestonia.  i
dont see anything in the eample-make.conf that mentions Prestonia.. what
would the best choice for that one be?  just plain "pentium4" ?

thanks,
jonathan



Sadly there is no good explination in the example when it comes to
server apps like apache, mysql, and other apps.

I mean what is the usage of using P4 of P3 when I compile mysql
server? isn't prescott better even my cpu is xeon which is nocona.
   Some Prescott processors were only 32-bit capable where a select few 
were 64-bit capable. See: .
   As for the prestonia chips, I *think* (not sure because IA64 was 
released quite a few years back), that they are strictly 32-bit chips. 
So, just to be safe I'd stick with pentium4, but be sure to enable SMP 
and apic in the kernel as well in order to get hyperthreading. CNET PR: 
.

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


Re: make.conf and building multiple kernels and worlds

2007-01-10 Thread Abdullah Al-Marrie

On 1/10/07, Jonathan Horne <[EMAIL PROTECTED]> wrote:

gentlmen, thank you for these answers, i think ill find them useful.

i did a some much needed reading into the names of the pentium processors,
and apparently my p4-540 is a Prescott, and my xeon is a Prestonia.  i
dont see anything in the eample-make.conf that mentions Prestonia.. what
would the best choice for that one be?  just plain "pentium4" ?

thanks,
jonathan



Sadly there is no good explination in the example when it comes to
server apps like apache, mysql, and other apps.

I mean what is the usage of using P4 of P3 when I compile mysql
server? isn't prescott better even my cpu is xeon which is nocona.

--
Regards,

-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: make.conf and building multiple kernels and worlds

2007-01-10 Thread Jonathan Horne
gentlmen, thank you for these answers, i think ill find them useful.

i did a some much needed reading into the names of the pentium processors,
and apparently my p4-540 is a Prescott, and my xeon is a Prestonia.  i
dont see anything in the eample-make.conf that mentions Prestonia.. what
would the best choice for that one be?  just plain "pentium4" ?

thanks,
jonathan

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


Re: make.conf and building multiple kernels and worlds

2007-01-10 Thread Jonathan Horne
gentlmen, thank you for these answers, i think ill find them useful.

i did a some much needed reading into the names of the pentium processors,
and apparently my p4-540 is a Prescott, and my xeon is a Prestonia.  i
dont see anything in the eample-make.conf that mentions Prestonia.. what
would the best choice for that one be?  just plain "pentium4" ?

thanks,
jonathan



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


Re: make.conf and building multiple kernels and worlds

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

Pieter de Goeje wrote:
> On Tuesday 09 January 2007 17:21, Jonathan Horne wrote:
>> i am finally looking at make.conf and how editing it could improve my
>> system(s).
>>
>> 1) does specifying a cpu architecture really help?
> It depends, but generally: yes. (although the perceived speed increase is 
> probably marginal)
> It really helps when you are using programs which use a lot of floating point 
> operations. gcc is then able to use the faster sse2 instructions instead of 
> plain x87 instructions.
> 
>> 2) if i am building for a p4-540 (nacona?), a p3, and a p4-xeon, what
>> problems am i setting myself up for by specifying a cpu type on my build
>> box?
> You should choose the lowest common denominator: the p3 in this case. You'll 
> run into trouble if you build programs for a new processor and then run them 
> on an old one.
> 
>> at this point, im wondering how to go about building for more than one
>> architecture effectively.  right now, i build one world, and 3 different
>> kernels, but they are all build with generic options.
>>
>> just wondering how i can effectivly leverage my build server to have the
>> best compile options for my target boxes.
>>
>> any suggestions?
> The kernel probably won't be any faster, but in any case here's how:
> #make CPUTYPE=pentium4 buildkernel
> 
>> thanks,
>> jonathan
> Cheers,
> Pieter

In this case you may want to setup different /etc/make.conf files
beforehand and just set /etc/make.conf as a symlink to the relevant
make.conf for the architecture you are compiling for.

There is also distcc to look into though for compiling across multiple
machines (it's in ports).
- -Garrett
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.1 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFpOBMEnKyINQw/HARAnf+AKCcpy9qqrzCjRnmRxUJAkoK41UnJwCeMvz6
7UrCHtaXN9CMTlRXGHUDuJA=
=tCOQ
-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]"


Re: make.conf and building multiple kernels and worlds

2007-01-10 Thread Pieter de Goeje
On Tuesday 09 January 2007 17:21, Jonathan Horne wrote:
> i am finally looking at make.conf and how editing it could improve my
> system(s).
>
> 1) does specifying a cpu architecture really help?
It depends, but generally: yes. (although the perceived speed increase is 
probably marginal)
It really helps when you are using programs which use a lot of floating point 
operations. gcc is then able to use the faster sse2 instructions instead of 
plain x87 instructions.

> 2) if i am building for a p4-540 (nacona?), a p3, and a p4-xeon, what
> problems am i setting myself up for by specifying a cpu type on my build
> box?
You should choose the lowest common denominator: the p3 in this case. You'll 
run into trouble if you build programs for a new processor and then run them 
on an old one.

>
> at this point, im wondering how to go about building for more than one
> architecture effectively.  right now, i build one world, and 3 different
> kernels, but they are all build with generic options.
>
> just wondering how i can effectivly leverage my build server to have the
> best compile options for my target boxes.
>
> any suggestions?
The kernel probably won't be any faster, but in any case here's how:
#make CPUTYPE=pentium4 buildkernel

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