Solved

Optimizing Linux kernel, libraries, software

Posted on 2004-04-14
3
268 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
Comment Utility
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
Comment Utility
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 500 total points
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now