Rebuild Slackware (LinkedIn project)
An interesting project, here
|
Thanks, but I won't register to Linkedin for that.
Please post a link to a publicly available web page if any. |
Quote:
While we wait for the answer I will copy and past his post: Quote:
|
<non constructive>Recompiling my 1111 packages to get a performance increase I'm no sure that it I will even notice is not on the top of my TODO list</non constructive>
But that could interest some, and probably some slackers did that already. Maybe they could post here how they did it, then? |
Maybe the odd package could benefit from targeted recompilation, but I have to agree with Didier. A complete rebuild seems like it wouldn't give a worthwhile return on investment.
|
Tommaso ought to be running Gentoo instead.
|
While were on the subject. How safe is gcc -O3 these days. I know that it had a reputation for causing problems in the past? Is that still the case?
|
If that person were using Google+ to discuss it instead of LinkedIn, I would possibly read it. But I unsubscribed from that Slackware group on LinkedIn long ago because of all the SPAM I got in my mailbox from one of the other members promoting his books.
Anyway, looking at his "/etc/make.conf" perhaps he should have a look at the Alien's ARM project where I am modifying lots of SlackBuild scripts to read a configuration file "/etc/slackbuild/machine.conf". I use that filename and in my SlackBuild script modifications am using a variable definition block which I discussed with Pat and which has his approval (basically he changed a few things to arrive at the final design). As an example, look at http://taper.alienbase.nl/gitweb/?p=...bc200c;hb=HEAD for the new stype of SlackBuild. Eric |
It looks like the "unsafe" math optimisations are associated -Ofast, so -O3 is looking pretty tame.
|
The old style block of code dealing with $ARCH doesn't have to be anywhere near as ugly as it is: The selections in the case statement are duplicated in the if/then/elif/else blocks below it, and then there's that completely unnecessary double call to uname -m)
I use the following construct in my build scripts which is much cleaner. Code:
case "${ARCH:=$(uname -m)}" in |
I just tried march=core2 on ffmpeg and MPlayer and it appears to have doubled the cpu utilisation while playing back a vidieo, so I'll be sticking with the defaults in future.
|
Reply from Tommaso:
Quote:
|
Quote:
This is really cool! :D |
Quote:
|
Quote:
|
Quote:
To the OP, please take your funroll-loops and go use Gentoo. |
-O2 is the safest optimization you can make. -O3 still can cause issues.
|
Quote:
|
Quote:
Discarding a distro because some people do things with it that one wouldn't do with the own system seems to me somewhat weird, you are actually robbing yourself of an experience just because others do things you don't like. I have tried it (and other source-based distributions) and if Slackware wouldn't exist a source-based distribution like Gentoo would be the next closest thing to what I expect from a distribution. |
Quote:
|
Quote:
|
Quote:
I think Gentoo is a decent distro, but it really depends on you. I think it is senseless to try to rebuild slackware because you want a bit of extra performance, don't you ? It isn't even designed for that. Honestly, if the project wasn't on Linkedin, and if it wasn't focused on funroll-loops, I'd say it's not a bad idea. Maybe people want to rebuild slackware and can't figure out how to do it properly. |
Quote:
Quote:
But anyways, I rather questioned your tone. If you would have said "Hey, that is what Gentoo does, maybe you should rather look at that." I wouldn't have objected your post. Instead it was more like "Go away, this is not like we do it in Slackware!" After all, it is still open source and the OP can do what he likes with his systems, regardless if you like that attitude or not. |
Meh, GCC, as much as it was traditionally 'flagship' compiler in linux community it was never really the best piece of code, and considering how big, fat and hard to maintain has become it never will be. Hence, I would suggest that everyone looking to some optimizations in compiling shift their attention to LLVM/Clang. Its codebase is very clean, it is backed up by big names: google, apple, so it is very actively developed and has bright future. Completely open source as well. Its performance jumped quite so in recent SVN builds, and I would not be suprised if already surpassed gcc in both compiling speed and speed of created binaries. I was happy to see it included in Slackware 14 release, and I hope that one day all Slackware packages will be prebuilt with clang. I understand slackware's conservative approach to changes in software (and I am like that too, so I feel with slackware at home) but consider that FreeBSD already switched to clang and dropped gcc, and that alone says much...
|
Instead of rebuilding 32-bit Slackware, I think you will gain much more performance from using 64-bit Slackware.
|
Quote:
|
Quote:
the FreeBSD change is primary for License reasons, not cause of a better compiler. and that's the same reason Apple and others are so interested in clang, they can make their own stuff out of it and stop sharing any time they want, and that's the reason why there is so much marketing blabla arraound. the best thing on clang is that gcc has now competition and therefore more will to change some things. gcc is now written in C++, so it seems still to be maintainable , has also nice error messages, and the result performs much better than clang binaries. and talking about supported platfroms, naja, you simply can not replace gcc. |
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
shadowww, thanks a lot for your words, they are a real eye opener for me, I promise that I will even work more hard from now to lower my fanboyism (except for Slackware) and to acquire knowledge, even if I have heavy doubts that I will ever reach the level of wisdom you have obviously reached.
|
I will not join that discussion about Gentoo and the 'better' compiler. It's ridiculous to talk about something that is not finished and can't even compile a complete Linux kernel (right now) and compare it to the GCC .
I really like the idea of a make.conf like in FreeBSD. Maybe you don't get the biggest performance boost out of it, maybe even none, but it's still a cool thing. Even if it is just for the fun and the education you'll get out of some tryouts with compilerflags. I can't nor I want to understand people beeing against that kind of thing. There is nothing bad about it and when the OP has the efford to finish it I will definitely give it a try. Even if it gives you nothing, it's still better then another gnome fork. For some time I was rebuilding a lot of Slackware packages with my own flags etc. First just for my 3 RaspberryPis, but now even on my other machines. It would be handy to have a config for that. |
Quote:
As for me, I would have gutted the troll and buried him under a rock. Eric |
I am surprised nobody has mentioned Netbsd. If one really wants, they install applications straight from the Netbsd sources with "pkgsrc":
http://wiki.netbsd.org/pkgsrc/how_to...gsrc_on_linux/ It's probably a PITA but if you've got nothing to do it's a good waste of time. There used to be a couple of Slackware-based distros using pkgrsc but they're no longer maintained. There are some ready made pkgscr binaries here but I am not sure how they'd work on a modern system: http://code.google.com/p/pkgsrc-on-slack/downloads/list |
All times are GMT -5. The time now is 01:29 PM. |