Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
athlon cflags
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
ne0_2k
Apprentice
Apprentice


Joined: 26 Nov 2005
Posts: 243

PostPosted: Mon Dec 12, 2005 1:15 pm    Post subject: athlon cflags Reply with quote

Hi ,

i want to install gentoo on a regular amd athlon (not xp).
i wanted to know what cflags i should use to optimize performace.
also when i installed on a pentium 3 it didn't use the mmx and sse flags by default even though it supported them. do i need to add these flags and flags such as 3dnow and how do i check if my processsor actually supports them ?

thanks
Back to top
View user's profile Send private message
ecosta
Guru
Guru


Joined: 09 May 2003
Posts: 477
Location: Brussels,BE

PostPosted: Mon Dec 12, 2005 1:30 pm    Post subject: Reply with quote

Have a look at: http://gentoo-wiki.com/Safe_Cflags

You can run
Code:
# emerge --info

... to findout what USE flags are enabled. Some default flags aren't specified in /etc/make.conf

To know what your CPU supports, do the following:
Code:
$ cat /proc/cpuinfo


Hope this helps.
Ed.
_________________
Linux user #201331
A8N-SLI Delux / AMD64 X2 3800+ / 1024 MB RAM / 5 x 250 GB SATA RAID 1/5 / ATI Radeon X700 256MB.
Back to top
View user's profile Send private message
ne0_2k
Apprentice
Apprentice


Joined: 26 Nov 2005
Posts: 243

PostPosted: Mon Dec 12, 2005 1:38 pm    Post subject: Reply with quote

ecosta wrote:
Have a look at: http://gentoo-wiki.com/Safe_Cflags

You can run
Code:
# emerge --info

... to findout what USE flags are enabled. Some default flags aren't specified in /etc/make.conf

To know what your CPU supports, do the following:
Code:
$ cat /proc/cpuinfo


Hope this helps.
Ed.


it does thanks. one more thing though. what stage file should i use ?
Back to top
View user's profile Send private message
ecosta
Guru
Guru


Joined: 09 May 2003
Posts: 477
Location: Brussels,BE

PostPosted: Mon Dec 12, 2005 1:41 pm    Post subject: Reply with quote

If this is your first Gentoo install or you have little experiance in Linux as a whole I'd go for a stage3 without changing any CFLAGS. Gentoo has recently changed it's Documentation , etc to stage3 also.You can always change them later and re-emerge the whole lot with
Code:
emerge -e system && emerge -e world

... which will take for ever ;)

I personaly do a stage1 install 'cause I add a few things like RAID and LVM during the install.

Best of luck.
Ed.

PS: All info you will ever need in installing gentoo is here: http://www.gentoo.org/doc/en/handbook/index.xml
_________________
Linux user #201331
A8N-SLI Delux / AMD64 X2 3800+ / 1024 MB RAM / 5 x 250 GB SATA RAID 1/5 / ATI Radeon X700 256MB.
Back to top
View user's profile Send private message
ne0_2k
Apprentice
Apprentice


Joined: 26 Nov 2005
Posts: 243

PostPosted: Mon Dec 12, 2005 1:53 pm    Post subject: Reply with quote

ecosta wrote:
If this is your first Gentoo install or you have little experiance in Linux as a whole I'd go for a stage3 without changing any CFLAGS. Gentoo has recently changed it's Documentation , etc to stage3 also.You can always change them later and re-emerge the whole lot with
Code:
emerge -e system && emerge -e world

... which will take for ever ;)

I personaly do a stage1 install 'cause I add a few things like RAID and LVM during the install.

Best of luck.
Ed.

PS: All info you will ever need in installing gentoo is here: http://www.gentoo.org/doc/en/handbook/index.xml


actually i meant what arcithecture for the stage 3. should i use the athlon-xp stage file ?
the kernel uses this stage file when i compile it ?
Back to top
View user's profile Send private message
kommissar
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2005
Posts: 78

PostPosted: Mon Dec 12, 2005 2:53 pm    Post subject: Reply with quote

ne0_2k wrote:
actually i meant what arcithecture for the stage 3. should i use the athlon-xp stage file ?
the kernel uses this stage file when i compile it ?

No you won't be able to use the athlon-xp stage file. The binaries are specifcally compiled for the xp's and won't work with your tbird. You'll need to use the generic i686 file to install your stage 3. After you've done all that you can change your CFLAGS' -march to athlon-tbird and then emerge -e system && emerge -e world like ecosta wrote in order to get the full optimization effect.
Code:
CFLAGS="-O3 -march=athlon-tbird -fforce-addr..."


The kernel you emerge depends upon which one you want. You just emerge the sources and then it is compiled separately to the specifications you have in make.conf
Back to top
View user's profile Send private message
ne0_2k
Apprentice
Apprentice


Joined: 26 Nov 2005
Posts: 243

PostPosted: Mon Dec 12, 2005 5:22 pm    Post subject: Reply with quote

what does the emerge -e do ? and whats the difference between "system" and "world" ?
also how do you know the architecture is athlon-tbird and not just athlon ?

thanks
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Dec 12, 2005 6:30 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Duplicate Threads.

Use this instead: https://forums.gentoo.org/viewtopic-t-333123-highlight-cflags+central.html

emerge -e system will emerge the basic system packages, emerge -e world will emerge every installed package.
cat /proc/cpuinfo will give you the cpu family and stepping, you can use those to look up what cpu you have on the safe_cflags page on the wiki.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum