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. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-15-2005, 02:46 AM
|
#1
|
|
LQ Newbie
Registered: Oct 2005
Posts: 1
Rep:
|
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 
|
|
|
|
10-15-2005, 08:00 AM
|
#2
|
|
Member
Registered: Sep 2005
Posts: 244
Rep:
|
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 08:01 AM.
|
|
|
|
11-13-2005, 09:58 AM
|
#3
|
|
LQ Newbie
Registered: Oct 2004
Posts: 3
Rep:
|
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)
|
|
|
|
11-13-2005, 10:16 AM
|
#4
|
|
LQ Newbie
Registered: Oct 2004
Posts: 3
Rep:
|
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
|
|
|
|
11-15-2005, 10:15 AM
|
#5
|
|
Senior Member
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 4,579
|
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 |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:14 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|