Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 10-15-2005, 03:46 AM   #1
LQ Newbie
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
Optimization Question

Hi folks.

After compiling LFS on a pentium3 machine, I am planning to use CPIO to copy it across to a pentium2 box.

My temporary system does not have any optimizations, but I would like to optimize the final system with --march=pentium2.

From the book:

"The set +h command turns off bash's hash function. Normally hashing is a useful feature [...] However, we'd like the new tools to be used as soon as they are installed."

Does this mean that as I compile new binaries (--march=pentium2) they will not be able to be executed on the current pentium3 system?

Thanks in Advance
Old 10-15-2005, 09:00 AM   #2
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
I won't do optimizations with critical packages like binutils and gcc, they are known to fail and the speed boost is really minimum. Just follow the book and you'll have a fast system
You can do optimizations with BLFS wich is less critical like mozilla firefox or other packages. if the optimizations fails you can uninstall and use the standard settings.

Last edited by mr_demilord; 10-15-2005 at 09:01 AM.
Old 11-13-2005, 10:58 AM   #3
LQ Newbie
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
I wouldn't recommend overly Optimizing your system, as you are porting over to a P2 I don't think that you would want 2 be recompiling brocken packages all the time so I wouldn't try optimizing everything. I would recommend optimizing smallish programs (less than 5SBU). When you do however CHECK THE BINARIES.

I would say NEVER optimize glibc. (coming from past experience here!) GCC responds better to optimizations but I would recommend compiling it with and without optimizations and comparing the checksuite results. This is very timely but i wouldn't reocommend 'blindly' optimzing a large or critical package.

I recommend just keeping the system with default optimizations generally as they gave me a screamingly fast system on my first (Duron 1.3Ghz and 256Mb RAM) (don't optimize X either if you follow BLFS).

Good luck I'm sure that if you follow the general advice in the book you should get a good system @ the end of all your working.
(If you build a complex system I recommend paco as a small and powerful package manager for tarball installations)
Old 11-13-2005, 11:16 AM   #4
LQ Newbie
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
Oh just read your origional post again, well march=pentium2 just optimizes binaries for this type of processor. However the Pentium2 is a particular branch of the x86 processor family so Pentium2 optimized binaries will run on Pentium Family/ Athlon/ Duron, and x86_64 (64bit Athlon systems). The binary file will run 'faster' on Pentium depending on how succesfull the optimizations are, but still keeps x86 compatability, just probably runs slower on other systems
Old 11-15-2005, 11:15 AM   #5
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,693
Blog Entries: 4

Rep: Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026Reputation: 3026
Mostly, my experience has been that CPU optimization tweaks are not the biggest component of "perceived system speed." Almost invariably, the most important variable is the hdparm configuration -- parameters controlling hard-disk I/O, which are set by an init-script at startup time.

Typically, "distros" (like your bootstrap-system) use very conservative settings for these parameters. Disk throughput is therefore "very reliable, but very slow." And since disk throughput affects just about everything, it slows the whole machine down.

There are oodles of existing documents on hdparm, both here and elsewhere on the net, so I won't repeat them here.


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
Network Optimization shilo Slackware 1 10-14-2005 04:24 PM
process optimization chuck232 Mandriva 8 01-18-2005 10:25 AM
firewall optimization canyon289 Linux - Games 0 10-21-2004 09:45 PM
Squirrelmail optimization Swift&Smart Linux - Software 2 07-31-2004 06:49 PM
mpg123 optimization? uem-Tux Linux - Software 1 07-02-2003 03:14 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:14 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