Solved

Optimizing Linux kernel, libraries, software

Posted on 2004-04-14
3
274 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

627 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