Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Optimizing Linux kernel, libraries, software

Posted on 2004-04-14
3
Medium Priority
?
277 Views
Last Modified: 2013-12-15
I've installed Linux Slackware 9.1. This distribution is compiled for 486 architecture. I've got P4 class processor and want use this machine as production server, so I would like to know, how to optimize the system for best performance. I want to compile all the software from source code, let these use all P4 processor features. But I think, I have to recompile libc/glibc frst, because these are compiled for 486, too (don't know how to do it). Then I have to compile new kernel with P4 support (this is not problem, but I don't know, wheter linux kernel uses libc/glibc). I have no idea about order of these steps. Short, what I need to know:
a) Do I have to recompile libc/glibc, how?
b) Does the kernel use libc/glibc?(have to compile kernel after libc/glibc recompilation?)
c) How to compile programs to force compiler to use P4 features and newly recompiled libc/glibc libraries
Every idea or links will help.
Thanx
0
Comment
Question by:karelrambousek
  • 2
3 Comments
 
LVL 4

Expert Comment

by:bobgunzel
ID: 10831059
Basically compiling for a specific processor affects only the kernel. You don't need to recompile the software. So you only have to build a new kernel.

Bob Gunzel
0
 
LVL 3

Author Comment

by:karelrambousek
ID: 10831565
This is not true!!! If I use old libc/glibc compiled for 486 CPUs, the performance won't be the best. This question is not easy, I know.
So waiting for your answers. EXPERTS !!! :)
Thanx
0
 
LVL 4

Accepted Solution

by:
bobgunzel earned 1000 total points
ID: 10831944
In that case you'll have to get the sources and the slackware build-files, like gcc.SlackBuild, change the options parameter to O3 and use pentium4 for the -march and -mcpu options.
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month13 days, 7 hours left to enroll

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question