You are not logged in.

#1 2006-08-29 09:49:01

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

arch KDE packages not compiled using -fpic ?

this week-end i gave prelink a shot. then i realized that actually most (if not all) kde apps could not be prelinked.
it looks like they're not compiled with -fpic option, and prelink cannot "link against non-pic libraries".
it's not that i absolutely want to prelink my whole system, it's just that i thought this -fpic option was a good thing so i'm surprised it's not used in arch kde packages.
any plans to enable -fpic for kde in the near future ?


what goes up must come down

Offline

#2 2006-08-29 15:38:53

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: arch KDE packages not compiled using -fpic ?

I thought using -fpic slowed things down if they weren't prelinked?

Offline

#3 2006-08-29 20:13:58

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: arch KDE packages not compiled using -fpic ?

-fpic hmm.. never knew of that. To "prelink" a lot of KDE apps though you can launch kdeinit & at xorg startup (.xinitrc for example). Although i'm not 100% on this.


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

#4 2006-08-29 21:22:14

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: arch KDE packages not compiled using -fpic ?

Gullible Jones wrote:

I thought using -fpic slowed things down if they weren't prelinked?

never heard about that. are you sure ?
@test1000 : i know you can skip kdeinit if kde is prelinked, by setting KDE_IS_PRELINKED to 1. i didn't know about this trick, though. maybe i'll give it a shot, but i suspect kdeinit should be launch once user is logged in.


what goes up must come down

Offline

#5 2006-08-30 09:22:56

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: arch KDE packages not compiled using -fpic ?

-fpic can reeaalllyy slow stuff down that isn't prelinked (I discovered that on my gentoo box), and it also breaks some things (can't remember the specifics).  As far as I am aware, you shouldn't be using -fpic unless you really know what you are up to.  And in my experience, even with KDE_IS_PRELINKED set, kdeinit still gets used, but I don't know if that was just me being stupid or not.


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

#6 2006-08-30 09:49:06

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: arch KDE packages not compiled using -fpic ?

a few months ago, i had a gentoo box compiled with USE="pic" and didn't encounter any problems. but this use flag is not used by every ebuild.
i didn't know -fpic could slow things... and never noticed it.


what goes up must come down

Offline

#7 2006-08-30 09:51:46

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: arch KDE packages not compiled using -fpic ?

brazzmonkey wrote:

a few months ago, i had a gentoo box compiled with USE="pic" and didn't encounter any problems. but this use flag is not used by every ebuild.
i didn't know -fpic could slow things... and never noticed it.

I don't notice the slowdown on my Athlon64, but on my old (socket A) Sempron 2500+ and my even older (socket A) Duron 1.2GHz, you can really feel it.  Probably because the Athlon64 has enough grunt to cover the slowdown though wink


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

#8 2006-08-30 10:04:19

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: arch KDE packages not compiled using -fpic ?

mine is a duron 1.3 ghz. once prelink is installed on gentoo, every program that can be prelinked is prelinked. maybe this explains why i never encountered any slowdowns...


what goes up must come down

Offline

#9 2006-08-30 10:20:53

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: arch KDE packages not compiled using -fpic ?

brazzmonkey wrote:

mine is a duron 1.3 ghz. once prelink is installed on gentoo, every program that can be prelinked is prelinked. maybe this explains why i never encountered any slowdowns...

On my Duron, I found (for a reason I'm yet to uncover) that when the system was prelinked, the CPU kept overheating (majorly overheating).  Yet, when I unprelinked it, temperatures returned to normal.  So I unprelinked, and the system was a lot slower than before.  I think I should submit that to Ripley's Believe It Or Not...


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

#10 2006-08-30 11:57:51

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: arch KDE packages not compiled using -fpic ?

overheating !? damn ! that's weird.
personally i never checked the temps. i don't want to be scared by those numbers. they lead you to some kind of paranoia. proper cooling is all we need...

it's funny how gentoo and arch communities don't agree on prelink : many gentoo users think it's a speed enhancement (for launching program at least), whereas on these forums it is considered as deprecated and useless.

i don't know what to think, really. and i won't recompile the whole kde thing just to see whether prelink speeds things up a (very little) bit.


what goes up must come down

Offline

#11 2006-08-30 16:12:10

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: arch KDE packages not compiled using -fpic ?

Personally, I found LDFLAGS can do just as much as prelinking, and it's easier to maintain, it's a whole less command to type after an upgrade/install wink


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

#12 2006-08-30 17:57:19

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: arch KDE packages not compiled using -fpic ?

LDFLAGS can also really screw you up if you aren't careful, as I discovered on Gentoo.

Offline

#13 2006-08-30 19:48:29

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: arch KDE packages not compiled using -fpic ?

yes, but changing LDFLAGS means re-compiling. no ?


what goes up must come down

Offline

#14 2006-08-30 19:52:02

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: arch KDE packages not compiled using -fpic ?

brazzmonkey wrote:

yes, but changing LDFLAGS means re-compiling. no ?

Yup.


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

#15 2006-08-30 20:18:46

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: arch KDE packages not compiled using -fpic ?

otoh, you may say that if i want my kde to be prelinked, i need to re-compile it too...
so i suppose the best is to leave things as they are wink


what goes up must come down

Offline

#16 2006-08-30 21:07:55

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: arch KDE packages not compiled using -fpic ?

brazzmonkey wrote:

otoh, you may say that if i want my kde to be prelinked, i need to re-compile it too...
so i suppose the best is to leave things as they are wink

Yeah tongue


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

#17 2006-09-04 10:03:00

superstoned
Member
Registered: 2006-09-04
Posts: 268

Re: arch KDE packages not compiled using -fpic ?

prelinking kde and using KDE_IS_PRELINKED=1 is slower than using kdeinit so if compiling with -fpic is a slowdown, it's smart not to use it...

now i'd love to tell where i read this, but it's some time ago on a KDE blog. i've used to run gentoo, and try to optimize it - but arch is clearly faster here. i used prelink (and KDE_IS_PRELINKED=1) on gentoo - it sucks to read some time later it didn't help at all ;-)

anyway, i think the reason was kdeinit can spawn new processes faster than they can be started, even with prelink...


-=] life sucks deeply [=-

Offline

#18 2006-09-04 12:38:34

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: arch KDE packages not compiled using -fpic ?

kde + prelink used to work fine on my gentoo.


what goes up must come down

Offline

#19 2006-09-04 13:25:04

superstoned
Member
Registered: 2006-09-04
Posts: 268

Re: arch KDE packages not compiled using -fpic ?

i didn't say it didn't work, just that it didn't have any advantages in speed over kdeinit, and in fact the latter is faster.


-=] life sucks deeply [=-

Offline

#20 2006-09-04 14:54:32

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: arch KDE packages not compiled using -fpic ?

well i meant kde did start faster. not for everybody, though, according to many discussions on gentoo forums.


what goes up must come down

Offline

#21 2006-09-04 17:27:59

superstoned
Member
Registered: 2006-09-04
Posts: 268

Re: arch KDE packages not compiled using -fpic ?

brazzmonkey wrote:

well i meant kde did start faster. not for everybody, though, according to many discussions on gentoo forums.

well, it might very well be that KDE itself startsup faster with prelink, but the subsequent starting of apps is faster with kdeinit... it does sound reasonable, imho.


-=] life sucks deeply [=-

Offline

#22 2006-09-04 20:40:41

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: arch KDE packages not compiled using -fpic ?

sure thing. but obviously it depended on the app...


what goes up must come down

Offline

Board footer

Powered by FluxBB