Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
AMD AM2 Dual-Core 6000+ Question
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
kpep01
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2005
Posts: 96
Location: Seattle Area, WA

PostPosted: Wed Jun 13, 2007 1:04 am    Post subject: AMD AM2 Dual-Core 6000+ Question Reply with quote

I've decided to seek a bit of adventure and go in over my head (again). The new box has an AMD AM2 Dual Core 6000+ on it. I'm presently downloading the iso for the AMD 64, figuring that will do the trick.

My question will be in setting a couple of my make parameters.

I'm assuming I should go:

CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon-xp -pipe -02"
CXXFLAGS="[CFLAGS]"
MAKEOPTS="-j3"

I'm assuming -j3 since it is a dual core processor.

I get a bit confused in the documentation as it says the above utilizes 64-bit, while another part of the documentation (albeit a bit old documentation) says to use march=k8.

The fact is, this system will be "surrounding" a Win2k network (for those that can't handle a real computer in the office). So, maybe 64-bit will screw things up when it comes to running printers, etc through cups and samba.

If I'm wrong (or if there are different things to consider) , please correct me before I screw myself.

Thanx.
_________________
There is no higher religion than human service.
To work for the common good is the highest creed.
-Albert Schweitzer
Back to top
View user's profile Send private message
sternklang
Veteran
Veteran


Joined: 10 Sep 2005
Posts: 1641
Location: Somewhere in time and space

PostPosted: Wed Jun 13, 2007 3:04 am    Post subject: Reply with quote

Hi

You should set -march=k8 or -march=athlon64, not athlon-xp, in your CFLAGS. You are correct about using -j3 for a dual-core processor.

Good luck!
Back to top
View user's profile Send private message
kpep01
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2005
Posts: 96
Location: Seattle Area, WA

PostPosted: Wed Jun 13, 2007 3:45 am    Post subject: Reply with quote

Thanx for the notes, sternklang. I greatly appreciate it.
_________________
There is no higher religion than human service.
To work for the common good is the highest creed.
-Albert Schweitzer
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Wed Jun 13, 2007 11:25 am    Post subject: Reply with quote

You should go with CFLAGS="-march=athlon64 -msse3 -O2 -pipe". You could even go -O3 instead of -O2 (note that's a letter O, not a number 0), which I personally use. You can also up your makeopts to -j4 or -j5. And I'd add LDFLAGS="-Wl,-O1".

This 64-bit system will not screw up the network functionality at all, that's completely transparent.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
kpep01
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2005
Posts: 96
Location: Seattle Area, WA

PostPosted: Thu Jun 14, 2007 4:16 am    Post subject: Reply with quote

Thanx for the hints, yngwin.

I'm comparing my current make.conf to the one I'm creating in order to streamline from my past stupidities.

I've not used LDFLAGS before, so, it's total unknown to me. I'll have to learn something more about that one, but, in the mean time I'll give it a go. If I'm reading correctly, -WI is a capital "eye."

Two inputs have said that CFLAGS should be -march=athlon64, so, I'm using that plus the extra little tricks from yngwin. I guess I need to study a bit more sometime to understand what all of this sage advise really means.

Thanx to both yngwin and sternklang for your input to my learning curve.
_________________
There is no higher religion than human service.
To work for the common good is the highest creed.
-Albert Schweitzer
Back to top
View user's profile Send private message
Phenax
l33t
l33t


Joined: 10 Mar 2006
Posts: 972

PostPosted: Thu Jun 14, 2007 4:58 am    Post subject: Re: AMD AM2 Dual-Core 6000+ Question Reply with quote

Quote:

CHOST="x86_64-pc-linux-gnu"

Yes.

Quote:

CFLAGS="-march=athlon-xp -pipe -02"

Code:
CFLAGS="-march=k8 -pipe -O2 -msse3
would likely be more suited.

Quote:

CXXFLAGS="[CFLAGS]"

No.
Code:
CXXFLAGS="${CFLAGS}"


Quote:

MAKEOPTS="-j3"

That specifies the number of jobs to deploy on a compile. You can put it whatever you want really, -j3 is a good place to start for a dual core.

LDFLAGS Info
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Thu Jun 14, 2007 9:09 am    Post subject: Reply with quote

kpep01 wrote:
I've not used LDFLAGS before, so, it's total unknown to me. I'll have to learn something more about that one, but, in the mean time I'll give it a go. If I'm reading correctly, -WI is a capital "eye."

No, it's not. It is -Wl,-O1 which is capital W, small "el", and capital letter O, number 1.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
sternklang
Veteran
Veteran


Joined: 10 Sep 2005
Posts: 1641
Location: Somewhere in time and space

PostPosted: Thu Jun 14, 2007 12:08 pm    Post subject: Reply with quote

kpep01 wrote:
I've not used LDFLAGS before, so, it's total unknown to me. I'll have to learn something more about that one, but, in the mean time I'll give it a go.

You could start with this Gentoo Wiki article on safe LDFLAGS. The linked LWN article is an excellent explanation on why this works.

kpep01 wrote:
I guess I need to study a bit more sometime to understand what all of this sage advise really means.


These wiki articles are also a good place to start.

Best of luck! I just switched from a Socket754 Athlon64 3000+ to an AM2 X2 6000+ (a dead motherboard is a good excuse to upgrade!) an am loving it. :D
Back to top
View user's profile Send private message
sternklang
Veteran
Veteran


Joined: 10 Sep 2005
Posts: 1641
Location: Somewhere in time and space

PostPosted: Wed Jun 27, 2007 12:43 pm    Post subject: Reply with quote

Gentoo developer nightmorph just finished this Compilation Optimization Guide which is the official last word on optimization in Gentoo.
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