Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Gentoo Chat
  • Search

DANM MY SYSTEM IS FAST!!!

Opinions, ideas and thoughts about Gentoo. Anything and everything about Gentoo except support questions.
Post Reply
  • Print view
Advanced search
24 posts • Page 1 of 1
Author
Message
RedDawn
Guru
Guru
User avatar
Posts: 368
Joined: Mon Sep 22, 2003 5:56 pm
Location: Los Angeles, California
Contact:
Contact RedDawn
Website

DANM MY SYSTEM IS FAST!!!

  • Quote

Post by RedDawn » Tue Nov 04, 2003 1:38 am

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
...
Top
RedBeard0531
Guru
Guru
User avatar
Posts: 415
Joined: Sat Sep 21, 2002 11:51 pm
Location: maryland

  • Quote

Post by RedBeard0531 » Tue Nov 04, 2003 2:21 am

if you think that was fast, try -Os!
OH MY GOD! Kenny just killed Kenny!
That Basterd!
Top
ex0
Tux's lil' helper
Tux's lil' helper
Posts: 110
Joined: Thu Jul 10, 2003 12:37 pm
Location: Australia

  • Quote

Post by ex0 » Tue Nov 04, 2003 3:12 am

I got an Athlon-XP 2000+, maybe I should try tthese flags :)
Top
drakonite
l33t
l33t
User avatar
Posts: 768
Joined: Sat Nov 02, 2002 7:24 am
Location: Lincoln, NE
Contact:
Contact drakonite
Website

  • Quote

Post by drakonite » Tue Nov 04, 2003 3:13 am

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
Top
RedDawn
Guru
Guru
User avatar
Posts: 368
Joined: Mon Sep 22, 2003 5:56 pm
Location: Los Angeles, California
Contact:
Contact RedDawn
Website

Say what u want!!

  • Quote

Post by RedDawn » Tue Nov 04, 2003 3:36 am

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!!!
Top
MADcow
l33t
l33t
Posts: 742
Joined: Thu Jan 23, 2003 1:24 am
Location: RIT (Henrietta, New York, United States)

  • Quote

Post by MADcow » Tue Nov 04, 2003 3:49 am

Code: Select all

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: Select all

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 ;)
:lol:
Top
pjp
Administrator
Administrator
User avatar
Posts: 20668
Joined: Tue Apr 16, 2002 10:35 pm

  • Quote

Post by pjp » Tue Nov 04, 2003 4:18 am

Moved from Other Things Gentoo.
Quis separabit? Quo animo?
Top
Retriever II
Tux's lil' helper
Tux's lil' helper
Posts: 93
Joined: Sun Sep 07, 2003 7:18 pm
Location: Northampton, MA, USA
Contact:
Contact Retriever II
Website

  • Quote

Post by Retriever II » Tue Nov 04, 2003 4:21 am

I think all those flags are just a placebo :D

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.
Top
Zeitgeist
Apprentice
Apprentice
User avatar
Posts: 165
Joined: Thu Mar 13, 2003 12:06 am
Location: Ouagadougou, Burkina Faso

  • Quote

Post by Zeitgeist » Tue Nov 04, 2003 6:43 am

You probaly don't even know what all those flags do or the things they break
Top
darkie_
n00b
n00b
User avatar
Posts: 26
Joined: Thu Jun 05, 2003 6:58 pm
Location: Sweden
Contact:
Contact darkie_
Website

  • Quote

Post by darkie_ » Tue Nov 04, 2003 7:31 am

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?
Top
zhenlin
Veteran
Veteran
Posts: 1361
Joined: Sat Nov 09, 2002 4:38 pm

  • Quote

Post by zhenlin » Tue Nov 04, 2003 10:12 am

-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)
Top
Mystilleef
Guru
Guru
User avatar
Posts: 561
Joined: Sun Apr 27, 2003 6:12 pm
Location: Earth
Contact:
Contact Mystilleef
Website

  • Quote

Post by Mystilleef » Tue Nov 04, 2003 12:07 pm

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."
Top
ed0n
l33t
l33t
User avatar
Posts: 638
Joined: Wed Apr 23, 2003 12:08 pm
Location: Prishtine/Kosove
Contact:
Contact ed0n
Website

  • Quote

Post by ed0n » Tue Nov 04, 2003 12:08 pm

mine is too prelinked system linux-2.6.0-test9 whoooahh am I flying?
Top
ShockValue
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 137
Joined: Wed Mar 26, 2003 9:27 pm

  • Quote

Post by ShockValue » Tue Nov 04, 2003 4:47 pm

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

Code: Select all

emerge -eD world
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"
Top
MOS-FET
Apprentice
Apprentice
User avatar
Posts: 291
Joined: Tue May 20, 2003 11:33 pm
Location: Cologne, Germany
Contact:
Contact MOS-FET
Website

  • Quote

Post by MOS-FET » Tue Nov 04, 2003 10:36 pm

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
Top
MOS-FET
Apprentice
Apprentice
User avatar
Posts: 291
Joined: Tue May 20, 2003 11:33 pm
Location: Cologne, Germany
Contact:
Contact MOS-FET
Website

  • Quote

Post by MOS-FET » Tue Nov 04, 2003 11:26 pm

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
Top
Yossarian
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 117
Joined: Tue Jul 15, 2003 2:20 am
Location: Austin, Tx.

  • Quote

Post by Yossarian » Tue Nov 04, 2003 11:26 pm

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 ... %20Options
Peace
Yossarian
Top
MOS-FET
Apprentice
Apprentice
User avatar
Posts: 291
Joined: Tue May 20, 2003 11:33 pm
Location: Cologne, Germany
Contact:
Contact MOS-FET
Website

  • Quote

Post by MOS-FET » Tue Nov 04, 2003 11:56 pm

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
Top
MADcow
l33t
l33t
Posts: 742
Joined: Thu Jan 23, 2003 1:24 am
Location: RIT (Henrietta, New York, United States)

  • Quote

Post by MADcow » Wed Nov 05, 2003 1:35 am

"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.
Top
MOS-FET
Apprentice
Apprentice
User avatar
Posts: 291
Joined: Tue May 20, 2003 11:33 pm
Location: Cologne, Germany
Contact:
Contact MOS-FET
Website

  • Quote

Post by MOS-FET » Wed Nov 05, 2003 12:57 pm

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
Top
MADcow
l33t
l33t
Posts: 742
Joined: Thu Jan 23, 2003 1:24 am
Location: RIT (Henrietta, New York, United States)

  • Quote

Post by MADcow » Wed Nov 05, 2003 10:20 pm

yea, mos-fet.
i'm sorry everyone. i was having a bad day and felt like yelling. no harm intended.
Top
RedDawn
Guru
Guru
User avatar
Posts: 368
Joined: Mon Sep 22, 2003 5:56 pm
Location: Los Angeles, California
Contact:
Contact RedDawn
Website

of course i know wut all those flags mean!!

  • Quote

Post by RedDawn » Thu Nov 06, 2003 7:30 pm

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...... :evil:
Top
Robin79
l33t
l33t
User avatar
Posts: 632
Joined: Sat Oct 18, 2003 11:42 am
Location: /home/valdemarsvik

  • Quote

Post by Robin79 » Fri Nov 07, 2003 7:59 am

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
Top
professorn
Apprentice
Apprentice
Posts: 235
Joined: Thu Sep 18, 2003 12:51 pm
Location: Stockholm, Sweden

  • Quote

Post by professorn » Fri Nov 07, 2003 5:31 pm

-march=pentium4 ?
Top
Post Reply
  • Print view

24 posts • Page 1 of 1

Return to “Gentoo Chat”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic