LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-04-2006, 10:07 AM   #1
leveex
LQ Newbie
 
Registered: Nov 2006
Location: Croatia
Distribution: Slackware 10.2
Posts: 26

Rep: Reputation: 15
i686


Hi all,
I have Slack 10.2 and I am really new in Linux.
Can anyone explain to me deference between i386 and i686
What is my
Quote:
# uname -a
Linux 2.6.18-rc5 #4 SMP Mon Sep 18 17:58:52 GMT 2006 i686 prescott i386 GNU/Linux
and if it isn't i686 why when I have Intel P4 3200
Is it better i686 and how to change to it?
Thanks
 
Old 12-04-2006, 11:22 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Wikipedia has good articles on this: i386, i686.
 
Old 12-04-2006, 11:38 AM   #3
Spinlock
Member
 
Registered: Jan 2006
Location: Missouri
Distribution: Slackware -current, Slackware64 -current, Slackware 12.2
Posts: 191

Rep: Reputation: 49
Well, notice that you have two different numbers there.

i686 is the newer, more advanced architecture, and points to your processor. i386 is the most basic compatible architecture in the x86 family, and I BELIEVE it's referring to your kernel.

Slackware 10.2 was compiled for i386, so it would still be compatible with older computers with the 386 instruction set. The 486, 586, and 686 architectures all use an expanded instruction set, which allows for more flexibility in the machine code that runs on those architectures, but since Pat V. wants Slackware to run on the widest range of architectures possible, he compiled just about everything for 386.

Theoretically, you could recompile your kernel especially for 686 compatibility for some performance gains. Personally, I compiled a custom version of 2.6.19, but it appears that, even though I specified the AMD K7 architecture, gcc is defaulting to compiling for i386. Re my uname -a:
Code:
Linux 2.6.19 #2 Sat Dec 2 02:24:07 CST 2006 i686 athlon-4 i386 GNU/Linux
Now, I'm wandering into territory I'm not sure of, but I understand the basic theory. AMD decided to release another 32-bit processor to branch off from the Athlon. At first, they based the Sempron off the Athlon itself, and made them in the Socket A form factor. They also made some based on the Athlon 64 architecture, in the Socket 754 configuration. This is the one I'm concerned with at the moment.

My mobile Sempron processor is basically an Athlon 64 without the 64-bit support. At its most basic, it will happily run programs optimized for a 386 processor. It will also run, with more performance as instructions are increased, software compiled for the 486, 586, 686, 5x86, K5, K6, K6-2, K6-III, Duron, and Athlon processors.

Now, here's the thing. Of all those available instruction sets, the Athlon fits my processor best. However, my processor is not just an Athlon... so, if I were to re-write an assembly code program, I'd likely have a few extra instructions that I could use to gain performance. Does that mean I should spend the effort to do so? Probably not.

Okay, that technical stuff is now out of the way. Here's the deal: If you can guarantee that you are only going to use your compiled kernel on your computer, the recompile.

But, here's my caveat: To REALLY make things snappier, you're going to need to do some work. You'll need to go through your kernel configuration, and trim what you don't need. If you're using a Pentium 4, it's a pretty good bet you won't be using anything ISA-related, so that can be dropped. Stuff like that.

As far as making the kernel actually COMPILE for your processor? I'm still trying to figure out how to do that... is it as simple as editing the Makefile? Simply selecting my processor in the kernel config didn't appear to do it for me.

Last edited by Spinlock; 12-04-2006 at 11:50 AM.
 
Old 12-04-2006, 06:46 PM   #4
leveex
LQ Newbie
 
Registered: Nov 2006
Location: Croatia
Distribution: Slackware 10.2
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks Spinlock for this detailed explanation
It's now little bit clearer

Last edited by leveex; 12-04-2006 at 06:48 PM.
 
Old 12-04-2006, 07:45 PM   #5
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 212

Rep: Reputation: 55
Linux rufus 2.6.18.2 #1 SMP Mon Nov 6 19:06:50 EST 2006 i686 athlon-4 i386 GNU/Linux

i686 is the machine hardware name
athlon-4 is the processor type
i386 is the hardware platform

It will always say i386 unless you are compiling for x86_64, ppc, etc.


You can, however, disable the following kernel option.

Generic x86 support (X86_GENERIC)

Instead of just including optimizations for the selected
x86 variant (e.g. PII, Crusoe or Athlon), include some more
generic optimizations as well. This will make the kernel
perform better on x86 CPUs other than that selected.

This is really intended for distributors who need more
generic optimizations.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
2.6.9-5.EL-hugemem-i686, 2.6.9-5.EL-i686, 2.6.9-5.EL-smp-i686 , Which? arsham Linux - General 2 05-07-2005 11:21 PM
2.6.9-5.EL-hugemem-i686, 2.6.9-5.EL-i686, 2.6.9-5.EL-smp-i686 , Which? arsham Linux - Enterprise 1 05-07-2005 07:20 PM
is celeron 500 an i686 ? if so how to move from i386 to i686 raft Linux - Hardware 1 12-22-2003 06:58 AM
i686 Ghimlok Linux - Software 4 12-01-2003 04:57 PM
is it really i686? contrasutra Slackware 2 04-05-2003 09:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:30 AM.

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
Open Source Consulting | Domain Registration