View previous topic :: View next topic |
Author |
Message |
RedDawn Guru
Joined: 22 Sep 2003 Posts: 368 Location: Los Angeles, California
|
Posted: Tue Nov 04, 2003 1:38 am Post subject: DANM MY SYSTEM IS FAST!!! |
|
|
I was having prob with my Gentoo system and i decided to just leave it and go back to slackware!!! BUT I MISSED PORTAGE TO MUCH!! so i decided to make my system and take it to the MAX!!!!!!! i mean MAX!! so i tried flags iv'e never ever ever even hearod of but know but saw online and they said that their system was stable so i tried!!
this is what my CFLAGS look like
CFLAGS="-march=athlon-xp -m3dnow -m3dnow -msse -mfpmath=sse -mmmx -O3 -fforce-addr -pipe -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays"
and this is what my Use flags look like!!
USE="3dnow aalib acl acpi alsa apache2 apm arts avi berkdb bonobo cdr crypt cups curl dedicated dga directfb doc dvb dvd encode esd ethereal evo fastcgi fbcon flash foomaticdb freetds gb gd gdbm gif gphoto2 gpm gtk2 gtkhtml imap imlib innodb java jikes jpeg kde kerberos krb4 ladcca lcms ldap libwww mad maildir mbox mmx motif mozilla mpeg mpi mysql nas ncurses oggvorbis opengl oss pam pdflib perl png prelude python qt quicktime readline ruby samba sasl slang slp snmp spell sse ssl svga tcpd tiff truetype usb videos X Xaw3d xmms xv zlib x86"
and everything works without a glicth!!! althoug the CFLAGS were meant for a AMD2000+XP i figure ehh... same company same architechture so i used them.... KDE IS FAST A HELL!!!!!!!!!!!!!!!!!!!!!!!!!!! my comp boot atleast 20 secs faster although i have no clue what my use or cflags have to do with boot time and such!!!
man i love gentoo!!
edit: AMD1800+ 1.53Ghz..
512MB RAM PC133 OV 266
NVIDIA GEFORCE MX440
Yamaha Sound Card
6.5Gb MAster
240 GB Slave
... |
|
Back to top |
|
|
RedBeard0531 Guru
Joined: 21 Sep 2002 Posts: 415 Location: maryland
|
Posted: Tue Nov 04, 2003 2:21 am Post subject: |
|
|
if you think that was fast, try -Os! _________________ OH MY GOD! Kenny just killed Kenny!
That Basterd! |
|
Back to top |
|
|
ex0 Tux's lil' helper
Joined: 10 Jul 2003 Posts: 110 Location: Australia
|
Posted: Tue Nov 04, 2003 3:12 am Post subject: |
|
|
I got an Athlon-XP 2000+, maybe I should try tthese flags |
|
Back to top |
|
|
drakonite l33t
Joined: 02 Nov 2002 Posts: 768 Location: Lincoln, NE
|
Posted: Tue Nov 04, 2003 3:13 am Post subject: |
|
|
Hehe... That's funny. Most of those flags are automatically used when you specify -march=athlon-xp and -O3 ... And the others can have a detrimental effect to performance.
In other words... Just a simple CFLAGS="-march=athlon-xp -Os -pipe" will be just as fast, and probably make things faster. _________________ Shoot Pixels Not People
My GPG/PGP Public key |
|
Back to top |
|
|
RedDawn Guru
Joined: 22 Sep 2003 Posts: 368 Location: Los Angeles, California
|
Posted: Tue Nov 04, 2003 3:36 am Post subject: Say what u want!! |
|
|
All i know is that my computer just got a danm 50% boost in performance compared to othertimes i've installed Gentoo.. this being my 6 time!! so........i dont know!! all i know is that i LOVE IT!!! |
|
Back to top |
|
|
MADcow l33t
Joined: 23 Jan 2003 Posts: 742 Location: RIT (Henrietta, New York, United States)
|
Posted: Tue Nov 04, 2003 3:49 am Post subject: |
|
|
Code: | USE="3dnow enlightenment ethereal fb fbcon fbdev freetype \
freetype-version-1 galeon glut gtk2 mail netkit-fingerd netkit-rsh \
netkit-tftp nocardbus nowin nslookup nvidia offensive parse-clocks \
radeon src sse type1 usb wavelan yp-tools -apm -arts -cups -kde \
-gnome -quicktime -gdbm -berkdb -gpm"
|
Code: | CFLAGS="-march=athlon-mp -O3 -finline-functions -fomit-frame-pointer -pipe -fforce-addr -funroll-loops -frerun-loop-opt -frerun-cse-after-loop -falign-functions=4 -fexpensive-optimizations -falign-jumps=4 -ffast-math -mmmx -msse -fprefetch-loop-arrays -mfpmath=sse"
|
no problems yet, and i'm on month 3 or so of those cflags.
and my system is faster
|
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20053
|
Posted: Tue Nov 04, 2003 4:18 am Post subject: |
|
|
Moved from Other Things Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Retriever II Tux's lil' helper
Joined: 07 Sep 2003 Posts: 93 Location: Northampton, MA, USA
|
Posted: Tue Nov 04, 2003 4:21 am Post subject: |
|
|
I think all those flags are just a placebo
When I started using Gentoo, I stuffed as many cflags in as I could - I've since simlpified them a bit. More stable that way. |
|
Back to top |
|
|
Zeitgeist Apprentice
Joined: 13 Mar 2003 Posts: 165 Location: Ouagadougou, Burkina Faso
|
Posted: Tue Nov 04, 2003 6:43 am Post subject: |
|
|
You probaly don't even know what all those flags do or the things they break |
|
Back to top |
|
|
darkie_ n00b
Joined: 05 Jun 2003 Posts: 26 Location: Sweden
|
Posted: Tue Nov 04, 2003 7:31 am Post subject: |
|
|
with a risk of sounding stupid, but when do you put these flags? is it when your compiling the kernel or when is it?
and what does the different flags mean? like this -03 that is directly after what processor you have? |
|
Back to top |
|
|
zhenlin Veteran
Joined: 09 Nov 2002 Posts: 1361
|
Posted: Tue Nov 04, 2003 10:12 am Post subject: |
|
|
Quote: |
-00, -01, -02, -03
Forces GCC to halt with a fatal error, immediately.
|
Of course CFLAGS are a placebo. But - when measured, they have a slight effect too.
I suppose it is the same kind of faith that religious people have in their scriptures - it is common sense that a system compiled using optimisations specific to your system will be faster, right?
(Religous discussion must go into the 'Christians on this board' thread) |
|
Back to top |
|
|
Mystilleef Guru
Joined: 27 Apr 2003 Posts: 561 Location: Earth
|
Posted: Tue Nov 04, 2003 12:07 pm Post subject: |
|
|
You need to be cautious with which flags you use. As a rule, don't use flags for which you don't know it's function or effect. Many of them have catastrophic side effects. _________________ simple, sleek and sexy text editor for gnome
"My logic is undeniable." |
|
Back to top |
|
|
ed0n l33t
Joined: 23 Apr 2003 Posts: 638 Location: Prishtine/Kosove
|
Posted: Tue Nov 04, 2003 12:08 pm Post subject: |
|
|
mine is too prelinked system linux-2.6.0-test9 whoooahh am I flying? |
|
Back to top |
|
|
ShockValue Tux's lil' helper
Joined: 26 Mar 2003 Posts: 137
|
Posted: Tue Nov 04, 2003 4:47 pm Post subject: |
|
|
Mystilleef wrote: | You need to be cautious with which flags you use. As a rule, don't use flags for which you don't know it's function or effect. Many of them have catastrophic side effects. |
This is true. I radically changed my flags the other day after reading some posts on this topic. Then i did a
and walked away. When I returned a day later, I had a completely b0rked and unusable system. After hours surfing the web and on #Gentoo, I gave up and started over. Lesson learned. Starting over with:
CFLAGS="-march=pentium4 -Os -pipe" |
|
Back to top |
|
|
MOS-FET Apprentice
Joined: 20 May 2003 Posts: 291 Location: Cologne, Germany
|
Posted: Tue Nov 04, 2003 10:36 pm Post subject: |
|
|
well i was using -march=athlon-xp -O3 -pipe -mfpmath=sse,387 -mmmx -msse -m3dnow and a lot of other stuff all the time, but i've read trough a lot of posts in this forum and came to the conclusion that -Os would be better because a lot of people recommended it. well the thing of -Os is that it optimizes binaries for size, so programs get smaller, and it's always a good thing to have small programs because your harddisk is the slowest part of your PC. i don't believe that all the other optimizations make a _real_ difference. i'm sure benchmarks would do a little better, or e.g. encoding a movie would be a little faster, but i don't think your every-day-apps get considerably faster.
well i'm just compiling my whole system with -Os -pipe -mfpmath=sse,387 -mmmx -msse -m3dnow see how it goes.
tom |
|
Back to top |
|
|
MOS-FET Apprentice
Joined: 20 May 2003 Posts: 291 Location: Cologne, Germany
|
Posted: Tue Nov 04, 2003 11:26 pm Post subject: |
|
|
hmm another thought ... when you have a closer look at the compiling process, you'll see that some packages override your CFLAGS. it seems that a lot of background processes (e.g. alsa, the kernel, samba) us the -O2 flag. other apps that use a lot of CPU are compiled with -O3 (transcode, xine-lib ...) and the rest would just compile with your CFLAGS. so, from this i think -O2 seems to be a good compromise between speed & stability (samba needs to be fast, but stable as well), while -O3 is more agressive and thus a little faster (for xine-lib for example) but probably less stable. -Os optimizes for binary size and should be a good choice for every-day-apps, especially large every-day-apps like kde, openoffice etc because such apps usually don't need much CPU power or run-time-optimization, but they just take long to load.
well, just my thoughts ...
tom |
|
Back to top |
|
|
Yossarian Tux's lil' helper
Joined: 15 Jul 2003 Posts: 117 Location: Austin, Tx.
|
Posted: Tue Nov 04, 2003 11:26 pm Post subject: |
|
|
darkie_ wrote: | with a risk of sounding stupid, but when do you put these flags? is it when your compiling the kernel or when is it?
and what does the different flags mean? like this -03 that is directly after what processor you have? |
You put the flags in your make.conf after CFLAGS=
Check out this link for an explanation of what different CFLAGS do.
http://gcc.gnu.org/onlinedocs/gcc-3.2.3/gcc/Optimize-Options.html#Optimize%20Options _________________ Peace
Yossarian |
|
Back to top |
|
|
MOS-FET Apprentice
Joined: 20 May 2003 Posts: 291 Location: Cologne, Germany
|
Posted: Tue Nov 04, 2003 11:56 pm Post subject: |
|
|
thanks for that great link! uff so i've read this link and found out that some of my thoughts where just useless :-) well it says:
-O1 does some small optimization
-O2 does some more code-speed optimization, -fomit-frame-pointer is _not_ turned on _only_when_ this would prevent you from debugging, so if you don' t need debugging, add -fomit-frame-pointer
-O3 optimizes even more
-O0 (zero) no optimization
-Os this turns on all -O2 speed optimizations that don't result in a larger binary file, and it makes some extra size-optimizations
a VERY important sentence: if more than one "-O" is specified, the last one is the one that counts. so, for example, alsa compiles with -O2 as standard, plus the -Os that i've set in /etc/make.conf - so as the end result, it will compile with -Os.
tom |
|
Back to top |
|
|
MADcow l33t
Joined: 23 Jan 2003 Posts: 742 Location: RIT (Henrietta, New York, United States)
|
Posted: Wed Nov 05, 2003 1:35 am Post subject: |
|
|
"You probaly don't even know what all those flags do or the things they break", ET AL.
guys, i think it's sort of mean to make fun of me for using a lot of flags. i know exactly what they do, so don't make fun of me for not knowing what they do, because i DO. i understand exactly what almost every optimization i use does. maybe they don't help much, but i have been doing it that way for months with no crashes, so just shut up.
i'm sorry if your rude comments were directed at the other guy, but it's probably the same for him. i have a feeling he wouldn't compile his apps with flags that he didn't understand, either. |
|
Back to top |
|
|
MOS-FET Apprentice
Joined: 20 May 2003 Posts: 291 Location: Cologne, Germany
|
Posted: Wed Nov 05, 2003 12:57 pm Post subject: |
|
|
i'm sure nobdoy wanted to be rude in this forum. well ok it may be that you know what each flag is doing, but i don't think this is enough. when you only read the description on the gcc page, there are so many "if's" and "when's" that you just can't know what a flag is exactly doing for a certain package. a flag that really speeds up one package may decrease the speed of another package, or it may be good to use a flag together with this flag, but not with another flag and so on. it's just damn complex i guess. i had A LOT of flags turned on, too, and my system never crashed, but for me i can just say that now that i've re-compiled almost everything with -Os my system "feels" faster than before because there's just much less app loading time, and i guess that's what counts the most on a desktop system (my opinion).
tom |
|
Back to top |
|
|
MADcow l33t
Joined: 23 Jan 2003 Posts: 742 Location: RIT (Henrietta, New York, United States)
|
Posted: Wed Nov 05, 2003 10:20 pm Post subject: |
|
|
yea, mos-fet.
i'm sorry everyone. i was having a bad day and felt like yelling. no harm intended. |
|
Back to top |
|
|
RedDawn Guru
Joined: 22 Sep 2003 Posts: 368 Location: Los Angeles, California
|
Posted: Thu Nov 06, 2003 7:30 pm Post subject: of course i know wut all those flags mean!! |
|
|
you gotta be kiddin me if you think ima spend a day and a half compiling my system when i know that it will crash or break sonner or later!! gosh if you guys/girls dont have anything nice to say "JUST DONT SAY SHIT" "sorry moderators" but gosh...... |
|
Back to top |
|
|
Robin79 l33t
Joined: 18 Oct 2003 Posts: 632 Location: /home/valdemarsvik
|
Posted: Fri Nov 07, 2003 7:59 am Post subject: |
|
|
What flag should i use for my P4 for maximum optimization? _________________ Gentoo 2005.0
ASUS P5AD2 Deluxe MB
Intel P4 3.2GHz
PCI-E Nvidia Geforce PCX 5750
--------------------
Registered Linux User Nr # 319050 http://counter.li.org |
|
Back to top |
|
|
professorn Apprentice
Joined: 18 Sep 2003 Posts: 235 Location: Stockholm, Sweden
|
Posted: Fri Nov 07, 2003 5:31 pm Post subject: |
|
|
-march=pentium4 ? |
|
Back to top |
|
|
|