LinuxÒÁµéÔ°ÂÛ̳'s Archiver

AIKO_sex ·¢±íÓÚ 2003-2-7 23:03

±ä̬µÄÈ˽øÀ´

Ò»¸öÍâ¹úhackerµÄÒ»¸öÍøÕ¾¿´µ½µÄ¾Ý˵Èç¹ûÄã²»ÅÂËÀ£¬ÄÇôÕâ¸ö¶«Î÷¾ÍÊÇ
¶ÔÄãµÄgentooÓÅ»¯µ½ËÀ£¨optimize your box to death£©Ô­ÎÄÈçÏ£º
-fprefetch-loop-arrays
-ffast-math
-fforce-addr (-fforce-mem is implied by -O3)
-falign-functions=4
-funroll-loops ( bigger exe, maybe faster, usually not worth it, I don't use it)

¼Çס´ò¿ªÄãµÄÓÅ»¯²ÎÊýàÞ£¬Ä¬ÈÏÊÇûÓдò¿ªµÄ

ÍûÁË˵ÊÇÕë¶Ôpentium3ÓÅ»¯µÄ

[SIZE=554]ÐÖµÜÃÇÉϰ¡[/SIZE]

AIKO_sex ·¢±íÓÚ 2003-2-7 23:10

Athlon (AMD)

CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer
-ffast-math  -funroll-loops -fforce-addr -falign-functions=4"
CXXFLAGS="${CFLAGS}"
note : -m3dnow and -mmmx optimisations are implied by -march=athlon

Athlon-tbird, aka K7 (AMD)

CFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer
  -funroll-loops -falign-functions=4 -maccumulate-outgoing-args"
CXXFLAGS="${CFLAGS}"

note : -m3dnow and -mmmx optimisations are implied by -march=athlon-tbird


Someone reported having a system working with no problem on an Athlon XP 2000+ with : Athlon XP 2000+

CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3
-pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop
-frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math
-fprefetch-loop-arrays"
CXXFLAGS="${CFLAGS}"

°¢Ì© ·¢±íÓÚ 2003-2-8 00:02

ÕæµÄ¼ÙµÄ°¡£¬ÐÖµÜÄã²âÊÔÁËÂð

AIKO_sex ·¢±íÓÚ 2003-2-8 06:02

1) set up Gentoo 1.1a w/stage3 per install docs
2) installed kernel-2.4.19-r4, preempt, lowlatency
3) *important: merged binutils-2.12+ in order to take advantage of combreloc (but built kernel with 2.11 beforehand just to be safe)
4) *USE flags="-march=i686 -O3 -pipe -fomit-frame-pointer" Many people use a lot of crazy optimizations, but the only one to me that makes a noticable difference in "feel" is -fomit-frame-pointer, and I don't need to debug my system so its all good.
4) *rebuilt glibc with new binutils installed
5) finish install per docs. (I use metalog, and lilo instead of grub)
6) reboot
7) use hdparm to make sure DMA is enabled
8) you now have a Gentoo system ready to build apps with the combreloc tweak (you can test this by running apps with 'LD_DEBUG=statistics' and checking the relocations)
9) build X, kdebase, kdenetwork, mozilla, vim, etc... (doesn't matter)
10) *add fam to start on boot (allows KDE to track files quicker)
11) *add your hostname to /etc/hosts (if it's not already there)

AIKO_sex ·¢±íÓÚ 2003-2-8 07:06

ʹÓÃ×îеÄ1.3stage1¿ÉÒÔÔö¼Ó10%µÄËÙ¶È£¬¹Ù·½ÍøÕ¾¿´µÄ£¬×îºÃÓÃ×îеÄgcc£¬Ò²¾ÍÊÇÏÈÉý¼¶ÍêÁËgccÔÙ±àÒë±È½ÏºÃ

AIKO_sex ·¢±íÓÚ 2003-2-8 07:07

[QUOTE][i]×î³õÓÉ °¢Ì© ·¢²¼[/i]
[B]ÕæµÄ¼ÙµÄ°¡£¬ÐÖµÜÄã²âÊÔÁËÂð [/B][/QUOTE]

Ö»ÊDz¿·ÖÓÅ»¯£¬»¹Ã»ÓÅ»¯µ½ËÀ¡£

Ä㻳ÒÉʲô£¿ÄãÓÇÓôʲô:)

°¢Ì© ·¢±íÓÚ 2003-2-8 10:44

ºÇºÇ¼ÈÈ»Ðֵܶ¼Õâô˵Á˻ؼÒˬһÏÂ

Ò³: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.