Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 05-19-2007, 12:45 AM   #1
Senior Member
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,006

Rep: Reputation: 168Reputation: 168
upgrading from source (SPEED=UP)

I have a full install of slack 10.2 on another partion .
I haven't done much with because it was put there as a back up system for my mane system .
( So I'm in no hurry to fix anything on my main system )
So there is no question that upgrading is the way to go .( no kruft )
Now if I upgrade from source I get to do a little tunning to the system libraries .
Best of all I get to match them to the CPU . ( I also have another computer to use while this one is crunching source )
as well as tunning the major sub systems like X and Kde
I the size worth the speed should I use these optomizations ?
dose any body else have other speed ups

Last edited by rob.rice; 05-19-2007 at 12:54 AM.
Old 05-19-2007, 01:36 AM   #2
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,855

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
Expect a very minimal improvement for a lot of work, since you'll be rebuilding nearly the whole system.
Old 05-19-2007, 02:33 AM   #3
Registered: Dec 2005
Posts: 57

Rep: Reputation: 15
most likely you wont realize any performance improvement. i like compiling packages, but not because i can optimize them (however i do), but because i can customize them
Old 05-19-2007, 12:30 PM   #4
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287
What exactly do you want to speed up or optimize ? I'll assume overall system responsiveness and speed.

What window manager are you using ? If it's KDE or GNOME ... might wanna try some others.

Because gcc is truly a black box when it comes to optimizations, recompiling most things won't help much performance-wise. In certain circumstances tho, you can compile say a 3D graphics engine and then the game that runs on it from source and see a moderate improvement in performance.

Mostly you'll want to compile a kernel from source, especially taking note of processor options, I/O scheduler and a few other things. See here (also has boot speed optimizations):

I also hope you know which CFLAGS to use. I usually stick with the same ones used for the kernel. So when you compile the kernel with the right processor selected, you'll notice it will spit out what CFLAGS it's using. I use those for anything I want to optimize, it seems to work best. Also, I would strongly recommend NOT even using the '-O3' option. It doesn't help, and it will most likely break the program you're compiling. '-O2' works just fine. Some suggest '-Os' ... you could try that, but I don't trust it.

Last edited by H_TeXMeX_H; 05-19-2007 at 12:35 PM.
Old 05-19-2007, 02:06 PM   #5
Registered: Dec 2005
Location: ~
Distribution: Slackware -current, OpenBSD
Posts: 451

Rep: Reputation: 42
Well, i'm trying to do almost the same thing.
I did a clean install and every changelog update is installed from packages and then recompiled (with slackbuild) almost immediately. I'm recompiling as many packages as i can or feel like. I'm comparing it to my gentoo install on the next partition (same hardware & kernel). To be honest, they almost feel the same, perhaps gentoo is 4% more responsive, but maybe my imagination. Anyway, it's fun if you feel like doing it and have the time. Otherwise, the previous posts are right imo.
I'm using -O2 -march=pentium4 -pipe
Probably helpful:
I'd like to hear about your results
Old 05-19-2007, 04:15 PM   #6
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Try -O3 (that's my personal preference). If it doesn't work, then -O2.

-O3 -march=prescott -fomit-frame-pointer -pipe


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
upgrading from gcc-3.3.3 to 3.4.4 from source emf Linux - Software 5 06-01-2005 05:55 AM
Upgrading a package from source? thebudbottle Linux - Newbie 1 03-24-2005 03:58 PM
Upgrading Libs From Source Pizentios Linux - Software 4 01-04-2005 05:35 PM
Installing/upgrading from source? rustynailz Linux - Software 0 09-09-2004 01:20 PM
upgrading packages from source nukeu666 Linux - Newbie 1 08-03-2004 10:51 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration