Solved

Optimizing Linux kernel, libraries, software

Posted on 2004-04-14
3
272 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 500 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

713 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