Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Are we missing some easy optimizations (LDFLAGS)?
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Wed Jan 19, 2005 6:26 am    Post subject: Reply with quote

dirtyepic wrote:
taskara wrote:
has anyone tried with

LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"

as per LDFLAGS Central?


--enable-new-dtags is default for recent binutils. i played with --sort-common, but not long enough to make a judgement.


oh yeah that's right.. thanks
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
WladyX
Guru
Guru


Joined: 25 Nov 2004
Posts: 503
Location: Romania

PostPosted: Tue Mar 01, 2005 10:08 pm    Post subject: Reply with quote

I admit i haven't read the whole thread, but i have a quick question, if i use LDFLAGS="-Wl,-O1", can i use prelink, or it isn't recomanded, also if prelink is discouraged do i have to recompile everything with -pic? Thanks.
_________________
We are not alone.
Back to top
View user's profile Send private message
radfoj
Guru
Guru


Joined: 31 Dec 2004
Posts: 490
Location: Tísek, Czech Republic

PostPosted: Tue Mar 01, 2005 10:45 pm    Post subject: Reply with quote

WladyX wrote:
I admit i haven't read the whole thread, but i have a quick question, if i use LDFLAGS="-Wl,-O1", can i use prelink, or it isn't recomanded, also if prelink is discouraged do i have to recompile everything with -pic? Thanks.

From my experience:
I added this flag maybe month ago, and reemerged only "system", not all "world". Then some other packages.
I am especially KDE/QT user and have still USE-flag pic in my make.conf and I am still prelinking. Without any problems yet. But without any speedup feelings from LDFLAGS="-Wl,-O1"
Still prelinking for me rulez. Maybe I missed something.:D
Back to top
View user's profile Send private message
WladyX
Guru
Guru


Joined: 25 Nov 2004
Posts: 503
Location: Romania

PostPosted: Tue Mar 01, 2005 10:53 pm    Post subject: Reply with quote

Thanks for the answer :D
_________________
We are not alone.
Back to top
View user's profile Send private message
virtual
Tux's lil' helper
Tux's lil' helper


Joined: 12 Aug 2004
Posts: 132
Location: Bergen

PostPosted: Fri Mar 04, 2005 5:18 pm    Post subject: Reply with quote

Hi,

I little warning about LDFLAGS an compiler ver. and apps.

I have noticed that with kdelibs and gcc 3.3.5-r1 and LDFLAGS I have had compilation problems when doing emerge -u and kdelibs was one of the packages it needed to update, also when doing a new install on another pc I had to comment out my LDFLAGS. LDFLAGS seem dangerous because my system has been running perfectly for several months and now they suddenly cause problems.

P.S. I didn't notice any difference anyway, I always prelink with or without LDFLAGS
_________________
The roots of education are bitter but it's fruit is sweet.
Back to top
View user's profile Send private message
lefou
Apprentice
Apprentice


Joined: 18 Feb 2004
Posts: 199
Location: Germany, Lusatia

PostPosted: Fri Mar 04, 2005 7:13 pm    Post subject: Reply with quote

I never got any problems, except with emerging emacs. emacs compiled well, but at the end of the build-run I got error messages about LDFLAGS, so I emerge emacs without LDFLAGS.
Back to top
View user's profile Send private message
arnvidr
l33t
l33t


Joined: 19 Aug 2004
Posts: 629
Location: Oslo, Norway

PostPosted: Wed Mar 09, 2005 5:16 pm    Post subject: Reply with quote

Try this out? Don't mind if I do...:)
Back to top
View user's profile Send private message
lefou
Apprentice
Apprentice


Joined: 18 Feb 2004
Posts: 199
Location: Germany, Lusatia

PostPosted: Wed Mar 09, 2005 5:19 pm    Post subject: Reply with quote

No risk, no fun :twisted:
Back to top
View user's profile Send private message
arnvidr
l33t
l33t


Joined: 19 Aug 2004
Posts: 629
Location: Oslo, Norway

PostPosted: Thu Mar 10, 2005 9:17 am    Post subject: Reply with quote

But so exciting :)
Didn't you feel the rush of adrenaline as you changed a variable in make.conf? :wink:
Back to top
View user's profile Send private message
lefou
Apprentice
Apprentice


Joined: 18 Feb 2004
Posts: 199
Location: Germany, Lusatia

PostPosted: Thu Mar 10, 2005 11:31 am    Post subject: Reply with quote

Inurement: I try to change one setting a week in make.conf. 8O
Back to top
View user's profile Send private message
Sheepdogj15
Guru
Guru


Joined: 07 Jan 2005
Posts: 430
Location: Backyard

PostPosted: Sat Mar 12, 2005 6:32 am    Post subject: Reply with quote

ARGH i put LDFLAGS="-Wl,-01" in my make.conf and after emerging, it totally moobarred my system!

i'm seriously reinstalling Gentoo as we speak.

i think it's unstable on AMD64.
Back to top
View user's profile Send private message
blueSceaDa
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jan 2005
Posts: 90

PostPosted: Sat Mar 12, 2005 10:27 am    Post subject: Reply with quote

yeah you put LDFLAGS="-Wl,-01" which is wrong, it's the letter O and not a zero before the 1
so correctly it is LDFLAGS="-Wl,-O1"
_________________
Athlon XP 2500+ @ ~2100MHz; GeForce FX 5600 256MB; 3x256MB RAM; ASUS A7N8X-X
echo 'LDFLAGS="-Wl,-O1"' >> /etc/make.conf - no problems here
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Sat Mar 12, 2005 10:40 am    Post subject: Reply with quote

Sheepdogj15 wrote:
i think it's unstable on AMD64.

It's been working fine on my amd64 for months...
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Sheepdogj15
Guru
Guru


Joined: 07 Jan 2005
Posts: 430
Location: Backyard

PostPosted: Sat Mar 12, 2005 7:56 pm    Post subject: Reply with quote

blueSceaDa wrote:
yeah you put LDFLAGS="-Wl,-01" which is wrong, it's the letter O and not a zero before the 1
so correctly it is LDFLAGS="-Wl,-O1"


actually though, i was just transcribing it as i am on my Windows box now. what actually was in my make.conf i copied and pasted from an earlier example, so it should have been exactly as you guys have been typing it (in fact, it was the OP for this very thread IIRC).

Maedhros wrote:
It's been working fine on my amd64 for months...


hmmm...

interestingly i was still having problems as i was trying to install, until i commented out the LDFLAGS line. :?

i wonder how on configurations might be differing. have you noticed any packages that were sporadically failing to compile?
Back to top
View user's profile Send private message
Birtz
Apprentice
Apprentice


Joined: 09 Feb 2005
Posts: 272
Location: Osijek / Croatia

PostPosted: Mon Mar 14, 2005 12:05 am    Post subject: Reply with quote

Maedhros wrote:
Sheepdogj15 wrote:
i think it's unstable on AMD64.

It's been working fine on my amd64 for months...

Ditto :wink:

@Sheepdogj15:
I seriously doubt that your problems are LDFLAGS related. Maybe a conglomerate with your CFLAGS, who knows? BTW. what were you CFLAGS when you borked the system?
_________________
It is not enough to have a good mind. The main thing is to use it well.
-- Rene Descartes

Don't have a childhood hero? How about Rob Hubbard http://www.freenetpages.co.uk/hp/tcworh/profile.htm
Back to top
View user's profile Send private message
Sheepdogj15
Guru
Guru


Joined: 07 Jan 2005
Posts: 430
Location: Backyard

PostPosted: Mon Mar 14, 2005 9:08 pm    Post subject: Reply with quote

Birtz wrote:
Maybe a conglomerate with your CFLAGS, who knows?


hmm. perhaps.

Quote:
BTW. what were you CFLAGS when you borked the system?


once i get a chance to, i'll post them. But i remember they weren't too out there. -O2 -pipe and a couple of others.
Back to top
View user's profile Send private message
saturas
Tux's lil' helper
Tux's lil' helper


Joined: 06 Dec 2004
Posts: 104
Location: romania

PostPosted: Thu May 05, 2005 3:00 pm    Post subject: hi all Reply with quote

i tryed the LDFLAGS trick and after emerge -e world, i got no improvements. i olso tried prelinking but no results there olso
i loged on the #gentoo irc channel and asked there if did someone got some speed after prelink or LDFLAGS. nobody seem to got some visible speed. so what are you talking about, people?

here is some information about my computer. i have a barton 2500+, 512MB, ASUS Nforce2, i use as wm gnome.

10x
Back to top
View user's profile Send private message
Russel-Athletic
n00b
n00b


Joined: 07 Jan 2005
Posts: 47

PostPosted: Thu May 05, 2005 5:08 pm    Post subject: Reply with quote

I read in a bug report that the proper LDFlags are -O1 rather -Wl, -O1.
So which ist it?

And somebody Problems with -z now?
Back to top
View user's profile Send private message
saturas
Tux's lil' helper
Tux's lil' helper


Joined: 06 Dec 2004
Posts: 104
Location: romania

PostPosted: Thu May 05, 2005 5:40 pm    Post subject: Reply with quote

i used LDFLAGS="-Wl,-O1" and i had no problems. my only problem is that i see no speed improvement. i tested ubuntu last week and it seems to be much faster then gentoo. (using gnome on both of them). this is getting frustrating. i wander what flags did they use to compile packages
Back to top
View user's profile Send private message
saturas
Tux's lil' helper
Tux's lil' helper


Joined: 06 Dec 2004
Posts: 104
Location: romania

PostPosted: Thu May 05, 2005 7:26 pm    Post subject: Reply with quote

Russel-Athletic wrote:
I read in a bug report that the proper LDFlags are -O1 rather -Wl, -O1.
So which ist it?

And somebody Problems with -z now?


-Wl forces the slowdown
Back to top
View user's profile Send private message
superstoned
Guru
Guru


Joined: 17 Dec 2004
Posts: 432

PostPosted: Thu May 05, 2005 8:54 pm    Post subject: Re: hi all Reply with quote

saturas wrote:
i tryed the LDFLAGS trick and after emerge -e world, i got no improvements. i olso tried prelinking but no results there olso
i loged on the #gentoo irc channel and asked there if did someone got some speed after prelink or LDFLAGS. nobody seem to got some visible speed. so what are you talking about, people?

here is some information about my computer. i have a barton 2500+, 512MB, ASUS Nforce2, i use as wm gnome.

10x

most of these improvements are very small. it needs several to really count... compare eg KDE 3.2 with gcc 3.1 to KDE 3.4 with gcc 3.4.x and prelink. you'll know what optimization means then :D
or compare suse 9.3 with a nicely configured gentoo - prelink/ldflags, gcc 3.4.1 etc
Back to top
View user's profile Send private message
Sheepdogj15
Guru
Guru


Joined: 07 Jan 2005
Posts: 430
Location: Backyard

PostPosted: Thu May 05, 2005 9:24 pm    Post subject: Reply with quote

Oh hey. I've since tried again (even using a little bit beefier LDFLAGS), and i have not ran into any problems. the only thing is that Firefox seems a bit buggy, but that could be from my CFLAGS too.

so, it had to have been something in my configuration that was messed up, last time. doesn't seem to be a problem now
_________________
Sheepdog
Why Risk It? | Samba Howto
Back to top
View user's profile Send private message
Sir-Gentoo
n00b
n00b


Joined: 06 May 2005
Posts: 14

PostPosted: Fri May 06, 2005 3:54 pm    Post subject: Reply with quote

hi, i didnt read the whole thread, but the first sites and the last ones, and i would like to know, if its all about adding this line to my make.conf:

LDFLAGS="-Wl,-O1"

or do i have to add some other things. or should there be more options in the ldflags thing? i mean somethin like this:

LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"

or is the first line ok, and should be used, or can i get the most,fastet, and coolest speed with another option?

thx :)
Back to top
View user's profile Send private message
saturas
Tux's lil' helper
Tux's lil' helper


Joined: 06 Dec 2004
Posts: 104
Location: romania

PostPosted: Fri May 06, 2005 9:15 pm    Post subject: Reply with quote

after my experience, and the people to whom i've talked, it depends on your system. if you have a good procesor and enough memory, with prelink or LDFLAGS you will not see much speed than without them. :) you could give a try. it won't harm(i refer to prelink and LDFLAGS="-Wl,-O1 "). i sugest you to concentrate on compiler's options they are more eficient
_________________
"I can't go on. I'll go on."
S.B
Back to top
View user's profile Send private message
Sir-Gentoo
n00b
n00b


Joined: 06 May 2005
Posts: 14

PostPosted: Sat May 07, 2005 5:30 pm    Post subject: Reply with quote

so i put the LDFLAGS="-Wl,-O1" line into my make.conf and gonna recompile some things this night, ok, some much :)
is it really important to recompile glibc when i update my linux-headers, and would be gcc faster if i recompile it with the ldflags? would be cool :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Page 7 of 8

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum