LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-29-2003, 04:39 PM   #1
MarleyGPN
Member
 
Registered: Apr 2003
Location: Vail, CO
Posts: 73

Rep: Reputation: 15
Optimizing Linux for my processor


Hi,
I have Slackware linux installed using the kernal that came with the boot disk. bare.i image was used to create this disk. Im using an AMD Athlon processor running at 1100Mhz with a 256 KB cache. I have searched thourgh google on optimizing linux, but they are all based on Red Had. I just installed linux less then 2 weeks ago and still do not understand too much about it, other then just getting ftp and HL/CS servers up. Can anyone explain to me how to optimize my kernel or post a link to a site that explains how to do this on Slackware.

Thanks,
MarleyGPN
 
Old 04-29-2003, 04:42 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
optimizing your kernel will revolve around you recompiling it to suit your processor, this procedure will be identical for any standard linux distribution. just read the howto at http://tldp.org
 
Old 04-29-2003, 05:04 PM   #3
MarleyGPN
Member
 
Registered: Apr 2003
Location: Vail, CO
Posts: 73

Original Poster
Rep: Reputation: 15
The architecture on my linux is i686, is this right for my processor?
 
Old 04-29-2003, 05:22 PM   #4
Nukes
Member
 
Registered: Apr 2003
Location: Scotland UK
Distribution: Gentoo
Posts: 92

Rep: Reputation: 15
Yes, I would reccomend against compiling the kernel for athlon, I have all my software compiled for mcpu=athlon-xp but the kernel is 686 as the optimiser buggers a lot of stuff up, you will almost certainly get unresolved symbol errors when inserting some modules, which is no good. Recompiling the kernel won't do much to speed things up in terms of reality. The kernel only has the CPU a very small amount of the time, and you would just as well compile for i386 for all it would do.
If you want to actually optomise Linux for your kernel, take a look at gentoo or sourcerer which download the source code for all applications and build it with your C compiler flags.
The insatllers aren't very nice, but that's what you need to do if you're serious about optomising Linux for your cpu.
 
Old 04-30-2003, 12:27 AM   #5
MarleyGPN
Member
 
Registered: Apr 2003
Location: Vail, CO
Posts: 73

Original Poster
Rep: Reputation: 15
Does the slackware installer compile a linux kernel for your processor. I originaly installed this on a pentium II system and then moved it to the Athlon system. The HL servers are running much better and im using the same hardware (except for the motherboard and proc) that my old computer had. The only hardware that I use is just the two network cards and the voodoo3. Linux is running fine but would it optimize it if I reinstall it, or does it just install a standerd set of files.
 
Old 04-30-2003, 02:47 AM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
no it does not. any kernel it would install would be
precompiled. compiling a kernel for a specific processor
makes a big difference with some intel processors, but
not really with an athlon. An athlon runs code optimized
for differenct processors almost equally well. I'm saying
that if you optimized a kernel for a pentium 2, an athlon
would be about as fast with that code as it would if the
code was optimized for an athlon.
You would make a bigger difference recompiling
some of the software you use the most, that is cpu
intensive, with optimized compiler flags.
You should look at a gcc howto for that, or search
the web or gcc site.
 
Old 04-30-2003, 12:25 PM   #7
Nukes
Member
 
Registered: Apr 2003
Location: Scotland UK
Distribution: Gentoo
Posts: 92

Rep: Reputation: 15
Yeah, recompiling the kernel won't speed much up, and the standard kernel is compiled for i386.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Optimizing Linux Desktop masand Linux - Software 4 06-09-2005 10:19 AM
Installing Linux on a dual processor machine (only one processor detected) rocordial Linux - Hardware 1 11-27-2004 03:16 AM
optimizing linux centr0 Linux - General 3 03-13-2003 05:12 PM
optimizing LINUX nautilus_1987 Linux - General 10 11-03-2002 12:24 PM
optimizing linux kernel uttam_h Linux - Hardware 4 09-20-2002 05:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration