View previous topic :: View next topic |
Author |
Message |
cokey Advocate
Joined: 23 Apr 2004 Posts: 3355
|
Posted: Sat Mar 26, 2005 9:50 pm Post subject: |
|
|
ebrostig wrote: | And please don't forget... In order to get a real fast and really uber-1337 installation, make sure you install as many ebuilds as possible from this forum. |
wtf, i've been on these forums for years and years now and i've never seen that!!! I've seen the mods/admin forum more times than that! _________________ https://otw20.com/ OTW20 The new place for off the wall chat |
|
Back to top |
|
|
Mystilleef Guru
Joined: 27 Apr 2003 Posts: 561 Location: Earth
|
|
Back to top |
|
|
predatorfreak l33t
Joined: 13 Jan 2005 Posts: 708 Location: USA, Michigan.
|
Posted: Mon Mar 28, 2005 3:54 pm Post subject: |
|
|
Well, heres some compile tests using the towers of hanoi benchmark. It compares using the i386 march to i686 aswell as comparing -Os to -O2 and other optomizations. I use -pipe -fomit-frame-pointer -march=i386 -mcpu=i386 for my C/CXXFLAGS.
Benchmark: http://www.dcaf-security.org/compile-test-1.txt _________________ System: predatorbox
Distro: Arch Linux x86_64
Current projects: blackhole, convmedia and anything else I cook up. |
|
Back to top |
|
|
PrakashP Veteran
Joined: 27 Oct 2003 Posts: 1249 Location: C.C.A.A., Germania
|
Posted: Mon Mar 28, 2005 10:01 pm Post subject: |
|
|
Use -static. We hate libraries. Hds are big and redundant code isn't a problem, but loading times suck, so get rid of libraries and stuff everything into the executable. |
|
Back to top |
|
|
ciaranm Retired Dev
Joined: 19 Jul 2003 Posts: 1719 Location: In Hiding
|
Posted: Mon Mar 28, 2005 10:14 pm Post subject: |
|
|
PrakashP wrote: | Use -static. We hate libraries. Hds are big and redundant code isn't a problem, but loading times suck, so get rid of libraries and stuff everything into the executable. |
Leave that one out. That's not what the static flag does. |
|
Back to top |
|
|
amne Bodhisattva
Joined: 17 Nov 2002 Posts: 6378 Location: Graz / EU
|
Posted: Mon Mar 28, 2005 10:17 pm Post subject: |
|
|
Ehm ciaranm you realize this thread is full of misinformation already? _________________ Dinosaur week! (Ok, this thread is so last week) |
|
Back to top |
|
|
ciaranm Retired Dev
Joined: 19 Jul 2003 Posts: 1719 Location: In Hiding
|
Posted: Mon Mar 28, 2005 10:23 pm Post subject: |
|
|
amne wrote: | Ehm ciaranm you realize this thread is full of misinformation already? |
There's a difference between daft ricer misinformation and just being plain incorrect... |
|
Back to top |
|
|
PrakashP Veteran
Joined: 27 Oct 2003 Posts: 1249 Location: C.C.A.A., Germania
|
Posted: Mon Mar 28, 2005 10:36 pm Post subject: |
|
|
Hmm is it really that wrong? I thought as long as you have static laibraries (.a) and link an executable with -static all code from static libs get into the executable - which is basically what I proclaimed. I know that not all libs are built static, but well.
Last edited by PrakashP on Mon Mar 28, 2005 10:42 pm; edited 1 time in total |
|
Back to top |
|
|
codergeek42 Bodhisattva
Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Mon Mar 28, 2005 10:40 pm Post subject: |
|
|
PrakashP wrote: | Hmm is it really that wrong? I thought as long as you have static laibraries (.a) and link an executable with -static all code from static libs get into the executable - which is basically what I proclaimed. I know that not all libs are build static, but well. | add "static" to your USE flags and ad "-static" to your LDFLAGS _________________ ~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF |
|
Back to top |
|
|
amne Bodhisattva
Joined: 17 Nov 2002 Posts: 6378 Location: Graz / EU
|
Posted: Tue Mar 29, 2005 9:10 am Post subject: |
|
|
One of the most useful tools has been completely forgotten:
app-benchmarks/acovea. Acovea never lies! Best used without thinking twice what this actually does and how it works. I did emerge -e world with the flags it gave me and my system feels at least 1,4% faster now. _________________ Dinosaur week! (Ok, this thread is so last week) |
|
Back to top |
|
|
gentoo_lan l33t
Joined: 08 Sep 2004 Posts: 891 Location: Charles Town, WV
|
Posted: Tue Mar 29, 2005 9:25 am Post subject: |
|
|
amne wrote: | One of the most useful tools has been completely forgotten:
app-benchmarks/acovea. Acovea never lies! Best used without thinking twice what this actually does and how it works. I did emerge -e world with the flags it gave me and my system feels at least 1,4% faster now. |
That is definitely a good one. You should run it with lots of stuff going on so you get your system optimized for a dirty environment and I would run it only once since it is so reliable. |
|
Back to top |
|
|
wilburpan l33t
Joined: 21 Jan 2003 Posts: 977
|
Posted: Tue Mar 29, 2005 2:41 pm Post subject: |
|
|
In defense of acovea, I've found that the best thing acovea did for my system was give me a set of very stable CFLAGS. I used to use -O2 and/or -Os, but there always would be some package that would break while compiling.
Here's my CFLAGS, generated by acovea:
Code: | CFLAGS="-march=pentium3 -O2 -mno-align-stringops -minline-all-stringops -fno-crossjumping -fmove-all-movables -mno-push-args -fno-delayed-branch -fno-thread-jumps -fno-defer-pop -Wall -pipe" |
Which seems like at first glance that I'm uber-ricing my machine, but on closer inspection will show that I've actually got my CFLAGS somewhere between -O1 and -O2. -O1.5, if you will.
I would highly recommend that if you decide to run acovea, that you do so when you're on vacation. _________________ I'm only hanging out in OTW until I get rid of this stupid l33t ranking.....Crap. That didn't work. |
|
Back to top |
|
|
gentoo_lan l33t
Joined: 08 Sep 2004 Posts: 891 Location: Charles Town, WV
|
Posted: Tue Mar 29, 2005 8:42 pm Post subject: |
|
|
wilburpan wrote: | In defense of acovea, I've found that the best thing acovea did for my system was give me a set of very stable CFLAGS. I used to use -O2 and/or -Os, but there always would be some package that would break while compiling.
Here's my CFLAGS, generated by acovea:
Code: | CFLAGS="-march=pentium3 -O2 -mno-align-stringops -minline-all-stringops -fno-crossjumping -fmove-all-movables -mno-push-args -fno-delayed-branch -fno-thread-jumps -fno-defer-pop -Wall -pipe" |
Which seems like at first glance that I'm uber-ricing my machine, but on closer inspection will show that I've actually got my CFLAGS somewhere between -O1 and -O2. -O1.5, if you will.
I would highly recommend that if you decide to run acovea, that you do so when you're on vacation. |
I have used acovea. I just feel the results it gave me were not very good. So I decided to go back to very conservative CFLAGS. |
|
Back to top |
|
|
stonent Veteran
Joined: 07 Aug 2003 Posts: 1139 Location: Texas
|
Posted: Wed Mar 30, 2005 9:27 am Post subject: |
|
|
All uber ricers have to expand their CFLAGS especially when filing a bug report.
Code: | -march=pentium3 -O2 -pipe |
-O2 should become:
Code: | -fdefer-pop -fdelayed-branch -fguess-branch-probability -fcprop-registers -floop-optimize -fif-conversion -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dom -ftree-dse -ftree-ter -ftree-live_range_split -ftree-sra -ftree-copyrename -ftree-fre -ftree-ch -fmerge-constants -fthread-jumps -fcrossjumping -foptimize-sibling-calls -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop -frerun-loop-opt -fcaller-saves -fforce-mem -fpeephole2 -fschedule-insns -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove -fstrict-aliasing -fdelete-null-pointer-checks -freorder-blocks -freorder-functions -funit-at-a-time -falign-functions -falign-jumps -falign-loops -falign-labels -ftree-pre |
_________________ Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism. |
|
Back to top |
|
|
gentoo_lan l33t
Joined: 08 Sep 2004 Posts: 891 Location: Charles Town, WV
|
Posted: Wed Mar 30, 2005 9:34 am Post subject: |
|
|
stonent wrote: | All uber ricers have to expand their CFLAGS especially when filing a bug report.
Code: | -march=pentium3 -O2 -pipe |
-O2 should become:
Code: | -fdefer-pop -fdelayed-branch -fguess-branch-probability -fcprop-registers -floop-optimize -fif-conversion -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dom -ftree-dse -ftree-ter -ftree-live_range_split -ftree-sra -ftree-copyrename -ftree-fre -ftree-ch -fmerge-constants -fthread-jumps -fcrossjumping -foptimize-sibling-calls -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop -frerun-loop-opt -fcaller-saves -fforce-mem -fpeephole2 -fschedule-insns -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove -fstrict-aliasing -fdelete-null-pointer-checks -freorder-blocks -freorder-functions -funit-at-a-time -falign-functions -falign-jumps -falign-loops -falign-labels -ftree-pre |
|
I would prefer to have my real make.conf and then a make.conf to use to file a bug report. It can't be the CFLAGS so why give them the correct CFLAGS information in the first place. |
|
Back to top |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Wed Mar 30, 2005 10:06 am Post subject: |
|
|
gentoo_lan wrote: | I would prefer to have my real make.conf and then a make.conf to use to file a bug report. It can't be the CFLAGS so why give them the correct CFLAGS information in the first place. |
Thanks for getting on-topic again.
You are correct, but filing bug reports with empty CFLAGS will make those devs suspicious. Worse, they might even ask you to set the dreaded -g flag and not use the strip option...
BTW, doing this:
find /etc/ -type f -exec sed -i '/^#.*/d' \;
will make every app that reads configs from there go faster because they have to read less comments, which they discard anyway!
Remember you will have to run this after every etc-update again, so you might want to make this a cron job too!
(( Note: it will also break your init scripts and others, but hey, rebooting is for wimps anyway! )) _________________ Please put [SOLVED] in your topic if you are a moron. |
|
Back to top |
|
|
WaterSoul Apprentice
Joined: 31 Jan 2004 Posts: 158
|
Posted: Wed Mar 30, 2005 10:54 pm Post subject: |
|
|
Oh my god, this topic rocks!! I'll try the uber ricer opts on a few apps
but I guess some won't work on my amd64 ^^
really good job there! |
|
Back to top |
|
|
discomfitor l33t
Joined: 21 Feb 2003 Posts: 927 Location: None
|
Posted: Thu Mar 31, 2005 7:01 am Post subject: |
|
|
nephros wrote: |
BTW, doing this:
find /etc/ -type f -exec sed -i '/^#.*/d' \;
will make every app that reads configs from there go faster because they have to read less comments, which they discard anyway!
Remember you will have to run this after every etc-update again, so you might want to make this a cron job too!
(( Note: it will also break your init scripts and others, but hey, rebooting is for wimps anyway! )) |
I like it. And when I get some time (swamped with wine/WoW/actual work stuff now) I'll put it in along with some other entertaining bits. _________________ There is no substitute for experience.
Imperfection indicates a lack of effort. |
|
Back to top |
|
|
dcrook Tux's lil' helper
Joined: 22 Jul 2004 Posts: 83
|
Posted: Mon Apr 11, 2005 11:39 pm Post subject: |
|
|
Darckness wrote: | nephros wrote: |
BTW, doing this:
find /etc/ -type f -exec sed -i '/^#.*/d' \;
will make every app that reads configs from there go faster because they have to read less comments, which they discard anyway!
Remember you will have to run this after every etc-update again, so you might want to make this a cron job too!
(( Note: it will also break your init scripts and others, but hey, rebooting is for wimps anyway! )) |
I like it. And when I get some time (swamped with wine/WoW/actual work stuff now) I'll put it in along with some other entertaining bits. |
While you are at it, add something to strip the comments from all the shell, python and perl scripts from the system. That should make them all go extra fast since the interpreter won't have to waste time reading comments. |
|
Back to top |
|
|
groovin Guru
Joined: 07 Feb 2004 Posts: 429 Location: California, USA
|
Posted: Thu Apr 14, 2005 5:11 am Post subject: |
|
|
in the spirit of funroll-loops?? it seems to me that the funroll guys put that page up humourously but also with some malice towards gentoo... yeah its funny, but i think they really meant some parts of it to insult gentoo and the community. so, with that, id say its not in the spirit of funroll...
* i havent visited their site since it first went up, and i dont remember them ever saying the whole is a big joke, nor have i spoke to them so i might be wrong and it is just a big funny joke. my bad. |
|
Back to top |
|
|
nadir-san Apprentice
Joined: 29 May 2004 Posts: 174 Location: Ireland
|
Posted: Thu Apr 14, 2005 10:04 am Post subject: |
|
|
yeah, definately, I figure they dont appreciate what it's all about, they are basically just being negative, when gentoo is a positive experience |
|
Back to top |
|
|
discomfitor l33t
Joined: 21 Feb 2003 Posts: 927 Location: None
|
Posted: Sat Apr 16, 2005 6:58 am Post subject: |
|
|
By "in the spirit of funroll-loops", I meant the humorous aspect. I don't really care if they're mocking us as a community or not, the fact remains that they are correct about ricing. The purpose of this is to (hopefully) turn people away from ricing, just as funroll-loops should do. _________________ There is no substitute for experience.
Imperfection indicates a lack of effort. |
|
Back to top |
|
|
cokey Advocate
Joined: 23 Apr 2004 Posts: 3355
|
Posted: Sat Apr 16, 2005 10:44 am Post subject: |
|
|
dammit people, personally I just laugh at the people who laugh at gentoo, i can sit back safe in the knowlege that they are pathetic trying to argue about what distro I use!!!!!!! I've used russian distros before so im not worried.
I love gentoo because, lets face it, im lazy and i cant be bothered with the problems i got with mandrake, and to a lesser extent fedora and debian. _________________ https://otw20.com/ OTW20 The new place for off the wall chat |
|
Back to top |
|
|
wjholden l33t
Joined: 01 Mar 2004 Posts: 826 Location: Augusta, GA
|
Posted: Mon Apr 18, 2005 1:27 am Post subject: |
|
|
nephros wrote: | BTW, doing this:
find /etc/ -type f -exec sed -i '/^#.*/d' \;
will make every app that reads configs from there go faster because they have to read less comments, which they discard anyway!
Remember you will have to run this after every etc-update again, so you might want to make this a cron job too!
(( Note: it will also break your init scripts and others, but hey, rebooting is for wimps anyway! )) |
Code: | #/bin/bash
emerge sync
emerge --depclean world
emerge -vDeUN world
revdep-rebuild
chmod 500 -R /etc/init.d/
find /etc/ -type f -exec sed -i '/^#.*/d' \; |
|
|
Back to top |
|
|
ciaranm Retired Dev
Joined: 19 Jul 2003 Posts: 1719 Location: In Hiding
|
Posted: Mon Apr 18, 2005 7:47 am Post subject: |
|
|
destuxor wrote: | Code: | #/bin/bash
emerge sync
emerge --depclean world
emerge -vDeUN world
revdep-rebuild
chmod 500 -R /etc/init.d/
find /etc/ -type f -exec sed -i '/^#.*/d' \; |
|
If you don't want to break your init scripts, use sed address ranges. 2,$ should 'work'. |
|
Back to top |
|
|
|