View previous topic :: View next topic |
Author |
Message |
neonik Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/74597107743aef36de4fa7.png)
Joined: 08 Oct 2003 Posts: 501
|
Posted: Sat Dec 27, 2003 10:43 am Post subject: Upgrade: PIII to AthlonXP, CFLAGS and such |
|
|
I'm planning to upgrade my system and use an Athlon XP CPU instead of my present Pentium 3. I have, however, a Pentium 3 optimized system, in my make.conf I've got PIII/4 optimization compiler flags. Now to the question self: Will there be any noticeable performance leaks with the new CPU and would you advise me then to recompile the entire system using the appropriate Athlon XP CFLAGS?
As far as I know, the both CPUs have almost the same architecture. AMD's Athlon CPUs are anyway in the group of i686 processors, so are the Intel's >= Pentium III CPUs. My kernel is optimized for Pentium III, as well. I know I'll have to recompile it but will I be able to start the system as usual at all?
Well, the questions might be stupid and the answer clear, but I'm quite a newbie concerning this issue (never used processors other than Intel) and I don't know much about software-processor relationns. Therefore I'd love to hear your advises/suggestions and ideas. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neonik Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/74597107743aef36de4fa7.png)
Joined: 08 Oct 2003 Posts: 501
|
Posted: Sat Dec 27, 2003 11:02 am Post subject: |
|
|
I also would like to ask whether I should take the mainboard with a nForce2 chipset or the VIA Apollo 600.
I heard there were some problems with nForce2 mainboards. And also, what's the advantage of the nVidia's mainboards? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ewan.paton Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/4862803774025594fb9d79.gif)
Joined: 29 Jul 2003 Posts: 1219 Location: glasgow, scotland
|
Posted: Sat Dec 27, 2003 11:06 am Post subject: |
|
|
the athlon xp has all the same optimizations as the p3 like mmx and sse1 extenions so it should be a case of pluging the drive in and it will run it also has 3dnow extensions which are probably just mulimedia stuff like mmx & sse as long as you havent optimised for a p4 which have sse2 extensions you should be ok. personaly i would remake the kernel though for paranoia sake. _________________ Giay tay nam | Giay nam cao cap | Giay luoi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neonik Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/74597107743aef36de4fa7.png)
Joined: 08 Oct 2003 Posts: 501
|
Posted: Sat Dec 27, 2003 4:28 pm Post subject: |
|
|
Thanks for your reply, ivan.paton. It confirms my suspicions
Well now one more thing that also has confirmed that upgrading should go fine: I've compared the flags available for the both CPUs.
My Pentium 3 has following flags:
Quote: | fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse |
An Athlon XP (however not a Barton) has these flags:
Quote: | fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow |
Which means the only difference between them are:
Quote: | syscall mmxext 3dnowext 3dnow |
Which aren't necessary and, provided it's an upgrade, theoretically, shouldn't make troubles.
Data taken from /proc/cpuinfo.
My make.conf CFLAGS:
Code: |
# source /etc/make.conf
# echo $CFLAGS
-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe
|
This is the proposed standard optimization.
Now the proposed Athlon XP optimization:
Quote: | CFLAGS="-mcpu=athlon-xp -O3 -pipe" |
Seeing the difference between the optimization settings I've been using for my processor (which I am extremely satisfied with - it works faster than ever before), and the proposed default Athlon XP one, I will need to read some more about possible Athlon XP compiler flags. While we're on this, does anyone happen to have flags for Athlon XP processors he's very satisfied with?
Thanks again for the reply ewan.paton.
Anyone happen to have an idea about what to choose: nForce2 or VIA KT600? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ewan.paton Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/4862803774025594fb9d79.gif)
Joined: 29 Jul 2003 Posts: 1219 Location: glasgow, scotland
|
Posted: Sat Dec 27, 2003 5:36 pm Post subject: |
|
|
from what a remeber the nvidia is meant to be faster and was slightly more hassle about 6 months ago, most amd xp boards should work fine out the box now but you may wish to google for a more reliable source than my memory.
just for kicks you might want to run some benchmarks before and after recompiling, also unless you have a very fast hard drive i would try 02 it produces smaller binaries which compile and load faster _________________ Giay tay nam | Giay nam cao cap | Giay luoi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neonik Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/74597107743aef36de4fa7.png)
Joined: 08 Oct 2003 Posts: 501
|
Posted: Sat Dec 27, 2003 9:07 pm Post subject: |
|
|
Thanks for your reply, ewan.paton, again.
Now I guess I have finally realized why I had set CFLAGS with the -O3 optimization instruction when I was installing Gentoo: My HDD is pretty fast.
Thanks again. I think when it comes to a system upgrade you never know what to choose, unless you're certain
Now to decide whether ATi Radeon or nVidia GeForce...
This is all because it's all almost the same...
Thanks again for the replies. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ewan.paton Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/4862803774025594fb9d79.gif)
Joined: 29 Jul 2003 Posts: 1219 Location: glasgow, scotland
|
Posted: Sat Dec 27, 2003 9:29 pm Post subject: |
|
|
my vote has to be nvidia all the way under linux its opengl so all the directx 9 probs dont matter but if you are after a £300 monster for god stake wait i hear march is when they start rolling out the new lines which are twice the speed. i have 2 diffrent nvidia and 2 difrent ati cards the nvidias take 5 mins to setup and have good drivers, after 7 months of using gentoo i still havent got dri working i also think nvidia are more commited to linux. _________________ Giay tay nam | Giay nam cao cap | Giay luoi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neonik Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/74597107743aef36de4fa7.png)
Joined: 08 Oct 2003 Posts: 501
|
Posted: Sat Dec 27, 2003 10:25 pm Post subject: |
|
|
Yeah, that was also my thought - that nVidia cards are better supported on Linux systems than the of ATi. I was, however, going to purchase some kind of Radeon 9800XT or GeForce FX 5950. Had stopped once at the Radeon card due to its support for OpenGL 2 whereas the nVidia's card only supports OpenGL 1.5. Don't really think it's much of a difference, or even if it was so, it would't be worth the price of the extra 60 EUR/USD to the price it's going at and the work required to be done to succesfully set up the card and so on.
I've also read an interesting article recently that nVidia may release a new Detonator providing some new features. But I doubt it would enable features the graphics card is already enabled for. Or would it?
So I guess I'll wait then till March...
Thanks again. ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Su-34 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/330922840446736c11fa.jpg)
Joined: 27 Jan 2004 Posts: 110 Location: Sky
|
Posted: Thu Feb 26, 2004 6:00 pm Post subject: |
|
|
My Pentium 3 has following flags:
Quote: | fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse |
i ve the same cpu. and i want to install gentoo linux on my pc.. how can i compile cflags with those previous flags??
thanks |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neonik Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/74597107743aef36de4fa7.png)
Joined: 08 Oct 2003 Posts: 501
|
Posted: Thu Feb 26, 2004 7:37 pm Post subject: |
|
|
You don't need them all, mcpu=pentium3 would involve inclusion of all proper compilation flags. Compilations like -march=pentiumpentium3 -march=pentium3 -msse and so on are not required if you have just -march=pentium3. Just read manual pages for GCC (man gcc).
Default offered by Gentoo: -O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe. You might want to replace -O3 with -O2 or if you have not much HDD space with -Os. -On (n=s|0|1|2|3) flags specify how big the binary will be and how much it will optimize. _________________ Best regards,
neonik
netshot-0.0.8 - script that takes screenshots, generates their thumbnails and uploads them all! (has not been updated). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Su-34 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/330922840446736c11fa.jpg)
Joined: 27 Jan 2004 Posts: 110 Location: Sky
|
Posted: Fri Feb 27, 2004 10:06 am Post subject: |
|
|
or if you have not much HDD space with -Os.
sorry does not -Os optimize only cpu with very small cache? (like k-6, pentium pentiumpro, ecc..)????
thank in advance |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neonik Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/74597107743aef36de4fa7.png)
Joined: 08 Oct 2003 Posts: 501
|
Posted: Fri Feb 27, 2004 10:41 am Post subject: |
|
|
Su-34 wrote: | ... sorry does not -Os optimize only cpu with very small cache? ... |
No, it doesn't.
man gcc wrote: | -Os Optimize for size. -Os enables all -O2 optimizations that do not
typically increase code size. It also performs further optimiza-
tions designed to reduce code size.
-Os disables the following optimization flags: -falign-functions
-falign-jumps -falign-loops -falign-labels -freorder-blocks
-fprefetch-loop-arrays |
_________________ Best regards,
neonik
netshot-0.0.8 - script that takes screenshots, generates their thumbnails and uploads them all! (has not been updated). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Su-34 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/330922840446736c11fa.jpg)
Joined: 27 Jan 2004 Posts: 110 Location: Sky
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neonik Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/74597107743aef36de4fa7.png)
Joined: 08 Oct 2003 Posts: 501
|
Posted: Fri Feb 27, 2004 6:02 pm Post subject: |
|
|
That link will give you some information, but, as always, the best source is code, thus read "man gcc". I've seen many people include in their CFLAGS many many funky freaky additional flags that are already included by -march=pentium3 or -mcpu=pentium3 and other flags, it's not necessary therefore.
Read also this: http://www.freehackers.org/gentoo/gccflags/flag_gcc3.html _________________ Best regards,
neonik
netshot-0.0.8 - script that takes screenshots, generates their thumbnails and uploads them all! (has not been updated). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
altorus Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/5833800303f3ed455641b8.jpg)
Joined: 17 Aug 2003 Posts: 89 Location: Melbourne, Australia
|
Posted: Sat Feb 28, 2004 2:38 am Post subject: |
|
|
I would highly recommend a nforce2 based motherbord. They are fast and stable. Just one thing if you are running an early 2.6 kernel, disable APIC - tho i beleive this has been fixed in 2.6.3 and onwards
Given the video card discussions i figure its safe to asume that you aren't going an built in gfx nforce2 board - very good idea, this is the only thing that i have found to be unstable.
Ooh and the linux section over at the nforcershq.com forums are your friend |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|