* [gentoo-user] switching CPU's -- what strange things do I need?
@ 2008-01-25 15:00 John covici
2008-01-25 15:42 ` Ricardo Saffi Marques
2008-01-25 17:11 ` Andrey Falko
0 siblings, 2 replies; 8+ messages in thread
From: John covici @ 2008-01-25 15:00 UTC (permalink / raw
To: gentoo-user
Hi folks. I right now have my CCFLAGS set to CFLAGS="-O2
-mtune=athlon-xp -pipe" -- now I am getting one of those new Intel
e8400 CPU's and so I have two questions.
What should I change my CCFLAGS to -- and do I have to recompile the
whole system after this is done or what?
Thanks in advance for any assistance.
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici@ccs.covici.com
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] switching CPU's -- what strange things do I need?
2008-01-25 15:00 [gentoo-user] switching CPU's -- what strange things do I need? John covici
@ 2008-01-25 15:42 ` Ricardo Saffi Marques
2008-01-25 17:11 ` Andrey Falko
1 sibling, 0 replies; 8+ messages in thread
From: Ricardo Saffi Marques @ 2008-01-25 15:42 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1861 bytes --]
Well, I'd change my CFLAGS, for sure, so that I'd get all the benefits of
having that better processor. What's your profile: x86 or x86_64 (amd64)?
For your processor, according to http://gentoo-wiki.com/Safe_Cflags (that I
always like to check):
> Intel Core 2 Duo/Quad / Xeon 51xx/53xx
>
> vendor_id : GenuineIntel
> cpu family : 6
> model : 15
> model name : Intel(R) Core(TM)2 CPU XXXX @ XXXGHz
>
> *32 bit profile (x86)*
>
> CHOST="i686-pc-linux-gnu"
> CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
> CXXFLAGS="${CFLAGS}"
>
> *64 bit profile (amd64)*
>
> CHOST="x86_64-pc-linux-gnu"
> CFLAGS="-march=nocona -O2 -pipe"
> CXXFLAGS="${CFLAGS}"
>
> *Note:*
>
> - GCC 4.3 has -march=core2[1]<http://www.gnu.org/software/gcc/gcc-4.3/changes.html>,
> but Gentoo has nothing above 4.2 in portage.
>
> So, I'd change my make.conf to one of those (again, depending of your
profile). And after that, even though some things may need a revdep-rebuild
and it may take a while, why not emerge -e world?
Regards,
Saffi
On 1/25/08, John covici <covici@ccs.covici.com> wrote:
>
> Hi folks. I right now have my CCFLAGS set to CFLAGS="-O2
> -mtune=athlon-xp -pipe" -- now I am getting one of those new Intel
> e8400 CPU's and so I have two questions.
>
> What should I change my CCFLAGS to -- and do I have to recompile the
> whole system after this is done or what?
>
> Thanks in advance for any assistance.
>
> --
> Your life is like a penny. You're going to lose it. The question is:
> How do
> you spend it?
>
> John Covici
> covici@ccs.covici.com
> --
> gentoo-user@lists.gentoo.org mailing list
>
>
--
Ricardo Saffi Marques
Laboratório de Administração e Segurança de Sistemas (LAS/IC)
Universidade Estadual de Campinas (UNICAMP)
Cell: +55 (19) 8128-0435
Skype: ricardo_saffi_marques
Website: http://www.rsaffi.com
[-- Attachment #2: Type: text/html, Size: 3017 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] switching CPU's -- what strange things do I need?
2008-01-25 15:00 [gentoo-user] switching CPU's -- what strange things do I need? John covici
2008-01-25 15:42 ` Ricardo Saffi Marques
@ 2008-01-25 17:11 ` Andrey Falko
2008-01-25 17:44 ` John covici
1 sibling, 1 reply; 8+ messages in thread
From: Andrey Falko @ 2008-01-25 17:11 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]
On Jan 25, 2008 10:00 AM, John covici <covici@ccs.covici.com> wrote:
> Hi folks. I right now have my CCFLAGS set to CFLAGS="-O2
> -mtune=athlon-xp -pipe" -- now I am getting one of those new Intel
> e8400 CPU's and so I have two questions.
>
> What should I change my CCFLAGS to -- and do I have to recompile the
> whole system after this is done or what?
I've done this before. I moved from an old Intel 3.06 Ghz to a new Athlon64
4600+. I did *not* change flags before the move from system to system. After
the move, however, I changed my -march flag (in your case -mtune, which is
equivalent) and recompiled everything to have the change take effect.
In your case, move the system from machine to machine, then change your
-mtune to: -mtune=nocona (see
http://gcc.gnu.org/onlinedocs/gcc-4.2.2/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options)
. When you are done with that recompile everything: emerge -e world
>
> Thanks in advance for any assistance.
>
> --
> Your life is like a penny. You're going to lose it. The question is:
> How do
> you spend it?
>
> John Covici
> covici@ccs.covici.com
> --
> gentoo-user@lists.gentoo.org mailing list
>
>
[-- Attachment #2: Type: text/html, Size: 1957 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] switching CPU's -- what strange things do I need?
2008-01-25 17:11 ` Andrey Falko
@ 2008-01-25 17:44 ` John covici
2008-01-25 17:48 ` Justin
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: John covici @ 2008-01-25 17:44 UTC (permalink / raw
To: gentoo-user
on Friday 01/25/2008 Andrey Falko(ma3oxuct@gmail.com) wrote
> On Jan 25, 2008 10:00 AM, John covici <covici@ccs.covici.com> wrote:
>
> > Hi folks. I right now have my CCFLAGS set to CFLAGS="-O2
> > -mtune=athlon-xp -pipe" -- now I am getting one of those new Intel
> > e8400 CPU's and so I have two questions.
> >
> > What should I change my CCFLAGS to -- and do I have to recompile the
> > whole system after this is done or what?
>
>
> I've done this before. I moved from an old Intel 3.06 Ghz to a new Athlon64
> 4600+. I did *not* change flags before the move from system to system. After
> the move, however, I changed my -march flag (in your case -mtune, which is
> equivalent) and recompiled everything to have the change take effect.
>
> In your case, move the system from machine to machine, then change your
> -mtune to: -mtune=nocona (see
> http://gcc.gnu.org/onlinedocs/gcc-4.2.2/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options)
> . When you are done with that recompile everything: emerge -e world
>
Thanks all -- I have a 32-bit profile, so I guess I will not be able
to use ncona -- is this correct?
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici@ccs.covici.com
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] switching CPU's -- what strange things do I need?
2008-01-25 17:44 ` John covici
@ 2008-01-25 17:48 ` Justin
2008-01-25 17:50 ` Ricardo Saffi Marques
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Justin @ 2008-01-25 17:48 UTC (permalink / raw
To: gentoo-user
Thats correct and be happy, because if so, you have to start from a
amd64 stage and not from x86 one.
John covici schrieb:
> on Friday 01/25/2008 Andrey Falko(ma3oxuct@gmail.com) wrote
> > On Jan 25, 2008 10:00 AM, John covici <covici@ccs.covici.com> wrote:
> >
> > > Hi folks. I right now have my CCFLAGS set to CFLAGS="-O2
> > > -mtune=athlon-xp -pipe" -- now I am getting one of those new Intel
> > > e8400 CPU's and so I have two questions.
> > >
> > > What should I change my CCFLAGS to -- and do I have to recompile the
> > > whole system after this is done or what?
> >
> >
> > I've done this before. I moved from an old Intel 3.06 Ghz to a new Athlon64
> > 4600+. I did *not* change flags before the move from system to system. After
> > the move, however, I changed my -march flag (in your case -mtune, which is
> > equivalent) and recompiled everything to have the change take effect.
> >
> > In your case, move the system from machine to machine, then change your
> > -mtune to: -mtune=nocona (see
> > http://gcc.gnu.org/onlinedocs/gcc-4.2.2/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options)
> > . When you are done with that recompile everything: emerge -e world
> >
> Thanks all -- I have a 32-bit profile, so I guess I will not be able
> to use ncona -- is this correct?
>
>
>
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] switching CPU's -- what strange things do I need?
2008-01-25 17:44 ` John covici
2008-01-25 17:48 ` Justin
@ 2008-01-25 17:50 ` Ricardo Saffi Marques
2008-01-25 21:37 ` Neil Walker
2008-01-25 21:44 ` Andrey Falko
3 siblings, 0 replies; 8+ messages in thread
From: Ricardo Saffi Marques @ 2008-01-25 17:50 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1876 bytes --]
I really don't know. I mean, I particularly always stick to Gentoo Safe
Cflags, but I know people that use a 32-bit profile and use -march=nocona.
Let's see what other ppl have to say.
On 1/25/08, John covici <covici@ccs.covici.com> wrote:
>
> on Friday 01/25/2008 Andrey Falko(ma3oxuct@gmail.com) wrote
> > On Jan 25, 2008 10:00 AM, John covici <covici@ccs.covici.com> wrote:
> >
> > > Hi folks. I right now have my CCFLAGS set to CFLAGS="-O2
> > > -mtune=athlon-xp -pipe" -- now I am getting one of those new Intel
> > > e8400 CPU's and so I have two questions.
> > >
> > > What should I change my CCFLAGS to -- and do I have to recompile the
> > > whole system after this is done or what?
> >
> >
> > I've done this before. I moved from an old Intel 3.06 Ghz to a new
> Athlon64
> > 4600+. I did *not* change flags before the move from system to system.
> After
> > the move, however, I changed my -march flag (in your case -mtune,
> which is
> > equivalent) and recompiled everything to have the change take effect.
> >
> > In your case, move the system from machine to machine, then change your
> > -mtune to: -mtune=nocona (see
> >
> http://gcc.gnu.org/onlinedocs/gcc-4.2.2/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options
> )
> > . When you are done with that recompile everything: emerge -e world
> >
> Thanks all -- I have a 32-bit profile, so I guess I will not be able
> to use ncona -- is this correct?
>
>
> --
> Your life is like a penny. You're going to lose it. The question is:
> How do
> you spend it?
>
> John Covici
> covici@ccs.covici.com
> --
> gentoo-user@lists.gentoo.org mailing list
>
>
--
Ricardo Saffi Marques
Laboratório de Administração e Segurança de Sistemas (LAS/IC)
Universidade Estadual de Campinas (UNICAMP)
Cell: +55 (19) 8128-0435
Skype: ricardo_saffi_marques
Website: http://www.rsaffi.com
[-- Attachment #2: Type: text/html, Size: 2819 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] switching CPU's -- what strange things do I need?
2008-01-25 17:44 ` John covici
2008-01-25 17:48 ` Justin
2008-01-25 17:50 ` Ricardo Saffi Marques
@ 2008-01-25 21:37 ` Neil Walker
2008-01-25 21:44 ` Andrey Falko
3 siblings, 0 replies; 8+ messages in thread
From: Neil Walker @ 2008-01-25 21:37 UTC (permalink / raw
To: gentoo-user
John covici wrote:
> Thanks all -- I have a 32-bit profile, so I guess I will not be able
> to use ncona -- is this correct?
>
No, it's not correct. "march=nocona" is just as valid under 32 bits as
64. It simply defines the capabilities of your processor to gcc. It does
NOT force gcc to produce 64 bit code. With later versions of gcc,
"march=native" may be a better choice but, with the current stable gcc,
"march=nocona" is the best choice.
Be lucky,
Neil
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] switching CPU's -- what strange things do I need?
2008-01-25 17:44 ` John covici
` (2 preceding siblings ...)
2008-01-25 21:37 ` Neil Walker
@ 2008-01-25 21:44 ` Andrey Falko
3 siblings, 0 replies; 8+ messages in thread
From: Andrey Falko @ 2008-01-25 21:44 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1675 bytes --]
On Jan 25, 2008 12:44 PM, John covici <covici@ccs.covici.com> wrote:
> on Friday 01/25/2008 Andrey Falko(ma3oxuct@gmail.com) wrote
> > On Jan 25, 2008 10:00 AM, John covici <covici@ccs.covici.com> wrote:
> >
> > > Hi folks. I right now have my CCFLAGS set to CFLAGS="-O2
> > > -mtune=athlon-xp -pipe" -- now I am getting one of those new Intel
> > > e8400 CPU's and so I have two questions.
> > >
> > > What should I change my CCFLAGS to -- and do I have to recompile the
> > > whole system after this is done or what?
> >
> >
> > I've done this before. I moved from an old Intel 3.06 Ghz to a new
> Athlon64
> > 4600+. I did *not* change flags before the move from system to system.
> After
> > the move, however, I changed my -march flag (in your case -mtune,
> which is
> > equivalent) and recompiled everything to have the change take effect.
> >
> > In your case, move the system from machine to machine, then change your
> > -mtune to: -mtune=nocona (see
> >
> http://gcc.gnu.org/onlinedocs/gcc-4.2.2/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options
> )
> > . When you are done with that recompile everything: emerge -e world
> >
> Thanks all -- I have a 32-bit profile, so I guess I will not be able
> to use ncona -- is this correct?
>
> No. nocona will not generate 64-bit code with a 32-bit profile. nocona is
more "native" to your cpu, but I am sure that you won't get much of a boost
using it over prescott.
>
> --
> Your life is like a penny. You're going to lose it. The question is:
> How do
> you spend it?
>
> John Covici
> covici@ccs.covici.com
> --
> gentoo-user@lists.gentoo.org mailing list
>
>
[-- Attachment #2: Type: text/html, Size: 2838 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-01-25 21:44 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-25 15:00 [gentoo-user] switching CPU's -- what strange things do I need? John covici
2008-01-25 15:42 ` Ricardo Saffi Marques
2008-01-25 17:11 ` Andrey Falko
2008-01-25 17:44 ` John covici
2008-01-25 17:48 ` Justin
2008-01-25 17:50 ` Ricardo Saffi Marques
2008-01-25 21:37 ` Neil Walker
2008-01-25 21:44 ` Andrey Falko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox