LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-16-2004, 03:18 AM   #1
hanbin
LQ Newbie
 
Registered: Nov 2004
Posts: 9

Rep: Reputation: 0
how to know my system is i386 or i686?


hi,
i'm very new to linux. i've just install a redhat linux 9.0 system on my computer. i have go through few threads here and got some idea about what is i386 and i686. but can i know:

how do check my system so i can know whether it is compiled in i386 or i686? (use any command? or can check it in any file?)

and few more question list below:

1.) i have download .iso copy of redhat linux 9 from website. the file name is shrike-i386-disc1.iso and so on.(3 disc total). if i burn this to CDs and use it to install redhat linux, does it mean my installation is a i386 version? or it can detect my cpu model (i'm using pentium III) and intall a i686 version along the installation process?

2.) there're a lots of add-on program (like mplayer,...) on the sites thats package in i386 and i686 (rpm packages) for download. if my kernel is i386, and i install a i686 program, will it run smoothly? how about a i686 program install on a i386 kernel?

3.) if my kernel is i386 and i want to upgrade to i686, am i just need to recompile the kernel and install it. or i have to reinstall every things on my computer? (for compatablity or what' sever reasons)

hope anybody can help me.
thanks a lot for you.
 
Old 11-16-2004, 03:59 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Any piece of software can be compiled for any processor. The i386 and i686 are two examples of different processors; you can find out what you actually have by looking in /proc/cpu

1) Red Hat will autodetect your processor and install an appropriate kernel image, although it may be better to install the kernel-source, configure it and recompile your kernel anyway if you're interested in speed. (You'll find instructions for how to do this on tldp.org, this site, or the Red Hat documentation).


If you have an i686 (or above) processor, then you can happily run all i386 or i686 programs, and interchange them quite happily (the dependency of an i686 or i386 package is on your hardware processor, not on the kernel or any other installed software; the answers to 2) are yes and yes). Some software, notably including the kernel (but also some applications including mplayer) will have a significant speed-up when compiled for a i686 against an i386.

3) You can recompile everything to upgrade, but there's probably little point in doing so. I'd just recompile the kernel, and any software that was running too slowly.
 
Old 11-16-2004, 07:24 AM   #3
ssba
Member
 
Registered: Mar 2004
Distribution: Slackware 9.1
Posts: 44

Rep: Reputation: 15
For a PIII, go with i386. An i686 (I believe) is a P4 and up. However, you cannot run an i686 program on an i386 computer.
 
Old 11-16-2004, 08:13 AM   #4
blazted
Member
 
Registered: Nov 2004
Distribution: Red Hat Version 9 / Attempting to use Gentoo
Posts: 48

Rep: Reputation: 15
I have a total noob question here. When you talk about recompiling a kernel what do you mean by this and how do you do that?

Thanks
 
Old 11-16-2004, 08:21 AM   #5
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Quote:
Originally posted by blazted
I have a total noob question here. When you talk about recompiling a kernel what do you mean by this and how do you do that?

Thanks
Search, and ye shall find.
 
Old 11-16-2004, 08:22 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
how to know my system is i386 or i686?
did you buy it in 1989?

blazted, if you don't know what it means, you don't need to know what it means. basically just like recompiling individual programs, you can recompile the very core of Linux if you want or need to. there are guides around you can search for if you want to do this.
 
Old 11-16-2004, 11:13 AM   #7
Kreature
LQ Newbie
 
Registered: Nov 2004
Posts: 20

Rep: Reputation: 0
Ya i am using red hat and its umm /proc/cpuinfo pretty sure a lot of things varry from distro to distro if i am correct.
 
Old 11-16-2004, 11:13 AM   #8
hanbin
LQ Newbie
 
Registered: Nov 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Question

first of all,
thanks for all response , especially rjlee, you're very helpful.

now i've find out something by using the command "uname"
here's few lines of codes:

[hanbin@localhost hanbin]$ uname --kernel-name
Linux
[hanbin@localhost hanbin]$ uname --kernel-release
2.4.20-8
[hanbin@localhost hanbin]$ uname --kernel-version
#1 Thu Mar 13 17:54:28 EST 2003
[hanbin@localhost hanbin]$ uname --machine
i686
[hanbin@localhost hanbin]$ uname --processor
i686
[hanbin@localhost hanbin]$ uname --hardware-platform
i386

so now i'm sure that my pentium III processor is i686.
i just want to clarified:
is that "hardware-plaform" refer to my kernel?

one more question:
if my kernel is i386, is that mean every program i compiled will also in i386?
thanks for every one who are willings to help.
 
Old 11-16-2004, 11:26 AM   #9
tenmiles
Member
 
Registered: Nov 2004
Distribution: fedora core 3
Posts: 43

Rep: Reputation: 15
from what my fried told me, i386 is for everything. as for i686, i have i686 and i am using a newer celeron processor. i am new to linux and i do not know what processors fit into which categories
 
Old 11-16-2004, 03:09 PM   #10
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
If your kernel is compiled for a 386, this does not effect any other programs.
However, whenever a program accesses a hardware device, like a disk, it goes through the kernel. So an i686 kernel will result in faster programs than using an i586 kernel, which is faster than an i486, which is faster than an i386. Recompiling just the kernel for the right processor will tend to make all the programs the right speed.
 
Old 11-16-2004, 11:41 PM   #11
hanbin
LQ Newbie
 
Registered: Nov 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by hanbin

[hanbin@localhost hanbin]$ uname --hardware-platform
i386

i just want to clarified:
is that "hardware-plaform" refer to my kernel?

can somebody answer this question?
 
Old 11-17-2004, 12:28 AM   #12
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
I'll repeat this that I typed for other posts. The Intel architecture model 80x86 designates each processor core. The X is a number from 0 to infinite but for now it is from 0 to 7. Each model adds few more instructions and sometimes a new feature although each model does not have to increase transistor count. If you have an 80686 processor, you can run software that was compiled for 80686 and lower. If you have an 80386, you can only run software compiled as 80386 and lower. Each increasing model should be better but it seems that Intel likes the yo-yo effect when they introduce new processors.

Pentium III is not an 80386 its an 80686. A Pentium 4 is an 80768 but it is not any better than some 80686 processors. AMD Athlons are 80686 even though some are 32-bit and 64-bit processors.

There are some 80486 (I think 80486DX2-66 or 80486DX4-120) that are or the right term were faster than 80586 (aka Pentium).

Have look at http://www.sandpile.org for information.

BTW, search this forum for other posts that has similar topics as this one.
 
Old 11-17-2004, 01:18 AM   #13
idontdowindough
LQ Newbie
 
Registered: Mar 2004
Location: N. Idaho
Distribution: Libranet, SuSE, Knoppix
Posts: 15

Rep: Reputation: 0
Just a note for future reference. Try arch at the command line.
Best to you!
 
Old 11-17-2004, 11:08 AM   #14
carrie
Member
 
Registered: Sep 2004
Location: liliput - Guinea
Distribution: RH-3
Posts: 68

Rep: Reputation: 15
just open control panel (KDE) and at the right, shows you i686, i586, etc
 
Old 11-17-2004, 12:44 PM   #15
idontdowindough
LQ Newbie
 
Registered: Mar 2004
Location: N. Idaho
Distribution: Libranet, SuSE, Knoppix
Posts: 15

Rep: Reputation: 0
Thanks, Carrie!
That is a great tip for more effectively using KDE. One of the nice things about these forums is that we learn a lot from each other. KDE is one of my favorite things about Linux and I never even thought to look there for that type of info. Although I was not the one to ask the question, I just learned something new from you!
S.
 
  


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
i686 vs. i386 andzerger Linux - Distributions 1 02-22-2004 08:26 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 vs i386 NewtonIX Linux - Newbie 4 11-08-2003 04:04 PM
i386 or i686? .300WSM Linux - Newbie 5 10-22-2003 08:47 PM
i686 vs i386 psyklops Linux - General 4 12-05-2002 08:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:59 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
Open Source Consulting | Domain Registration