Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Optimizing Gentoo 2006.0 for my Hardware [RESOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
mikelarry
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2005
Posts: 95
Location: Milwaukee, WI

PostPosted: Fri Mar 03, 2006 4:40 am    Post subject: Optimizing Gentoo 2006.0 for my Hardware [RESOLVED] Reply with quote

Question to all Gentoo gurus...

I'm looking at rebuilding my Gentoo system from scratch from a 2006.0 Stage3 tarball and noticed only x86, i586, i686 exist for my options. Previously I used the Pentium4 Stage3. Currently I have a Pentium 4 Prescott processor in my system. I would like to still perform a Stage3 install however all the docs I googled seem to point me to do a Stage1 install which isn't recommended anymore.

Could I still build my G2 system from Stage3 i686 tarball, configure my CFLAG, and rebuild my system? If so which shell command should I use after configuring my CFLAGS to rebuild my system?

Otherwise can someone maybe guide me in the right direction to perform a Stage1 from a novice standpoint?

Also my main Gentoo box at home is my desktop and server so I'm looking at it being very stable and fast what are some tuning options I can set in my make.config that may create a performance boost or increase stability? One I was looking at was -march=prescott. I read through things on Gentoo's site but many of the option are unclear.

Thanks for any help!

Existing /etc/make.conf
Code:
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"


/proc/cpuinfo
Code:
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Pentium(R) 4 CPU 3.00GHz
stepping        : 1
cpu MHz         : 3395.005
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pni monitor ds_cpl cid xtpr
bogomips        : 6793.01

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Pentium(R) 4 CPU 3.00GHz
stepping        : 1
cpu MHz         : 3395.005
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pni monitor ds_cpl cid xtpr
bogomips        : 6785.91


Last edited by mikelarry on Mon Mar 06, 2006 6:06 pm; edited 3 times in total
Back to top
View user's profile Send private message
azdruid
Tux's lil' helper
Tux's lil' helper


Joined: 19 Feb 2006
Posts: 75

PostPosted: Fri Mar 03, 2006 5:57 am    Post subject: Reply with quote

Yeah, I noticed too that subarchitecture-specific stage3s are no longer built for 2006.0.

It's quite simple. Just make that CFLAGS change (-march=prescott), and do

Code:
emerge -e world


That command will rebuild all the packages on your system with the new CFLAGS.

Feel free to also take the opportunity to upgrade your compiler to GCC 4.1, which offers some significant speed increases.
Back to top
View user's profile Send private message
playahater
Guru
Guru


Joined: 02 Jul 2005
Posts: 382
Location: Serbia

PostPosted: Fri Mar 03, 2006 11:56 am    Post subject: Reply with quote

well .. i think it is not enough just to do emerge world ..
if u want to rebuild your whole system .. i suggest ..

Code:
emerge --sync && emerge -u portage && /usr/portage/scripts/bootstrap.sh

Code:
# man gcc-config
# gcc-config -l
# gcc-config  #number
# env-update
# source /etc/profile


Code:
# emerge -e system

Code:
# emerge -e world


you do that in case that there`s a toolchain that needs to be updated/rebuild .. however, if that is not the case, the normal system rebuild is

Code:
# emerge -uDNav system && emerge -uDNav world



at least that is what i do when there is something to rebuild/update .. :)

Cheers
_________________
http://droopia.net
Back to top
View user's profile Send private message
mikelarry
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2005
Posts: 95
Location: Milwaukee, WI

PostPosted: Mon Mar 06, 2006 6:00 pm    Post subject: Reply with quote

Thanks for the help!

Here's some additional references that may help people that run past this post.

Great Stage 1/3 Guide I Used for Reference:
http://jackass.homelinux.org/forums/

Great Guide to GCC Optimization:
http://www.coyotegulch.com/products/acovea/index.html

More Optimization Stuff:
https://forums.gentoo.org/viewtopic-t-231170-highlight-acovea+guide.html

CFLAGS:
http://gentoo-wiki.com/CFLAGS

Safe CFLAGS:
http://gentoo-wiki.com/Safe_Cflags

Better USE Flag Reference:
http://gentoo-portage.com/USE

The options that worked well for me:
Code:
CFLAGS="-O3 -march=prescott -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
Back to top
View user's profile Send private message
cwall64
Tux's lil' helper
Tux's lil' helper


Joined: 28 Nov 2003
Posts: 128
Location: Houston, TX

PostPosted: Tue Mar 07, 2006 5:00 am    Post subject: Reply with quote

So, basically it is best now to start out with a stage 1 install, since it looks like a bootstrap is required to get the chip specific optimizations (e.g. -march=pentium4)? Or going back to the 2005.1-r1 release which still has the different architecture stages? Damn, just had a HDD fail on me or this machine would have been running fine since 1.4, and I was looking forward to using the new installer! 8O
_________________
Intel Core2Quad Q9400
Gigabyte GA-EP45-UD3P
8GB DDR2-1066 RAM OCZ
GeForce 9600GT
5x Seagate 1TB 7200.12 (4x Software RAID5)
Gentoo 64-bit
Back to top
View user's profile Send private message
playahater
Guru
Guru


Joined: 02 Jul 2005
Posts: 382
Location: Serbia

PostPosted: Tue Mar 07, 2006 12:53 pm    Post subject: Reply with quote

cwall64 wrote:
So, basically it is best now to start out with a stage 1 install, since it looks like a bootstrap is required to get the chip specific optimizations (e.g. -march=pentium4)? Or going back to the 2005.1-r1 release which still has the different architecture stages?


why do you think that .. you can pick whatever stage3 architecture and rebuild the toolchain, system and start compiling new packages .. and it would last shorter that to do a stage 1 .. at the end you get your hole system compiled with your flags ..

Cheers
_________________
http://droopia.net
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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