LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-19-2007, 12:45 AM   #1
rob.rice
Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 784

Rep: Reputation: 104Reputation: 104
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
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,755

Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
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
berVi
Member
 
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
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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):
http://www.linuxquestions.org/questi...09#post2672909

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
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current, OpenBSD
Posts: 449

Rep: Reputation: 41
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: http://gentoo-wiki.com/CFLAGS
I'd like to hear about your results
 
Old 05-19-2007, 04:15 PM   #6
Alien_Hominid
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.

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


Reply


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


All times are GMT -5. The time now is 12:00 AM.

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