uname command

Hi experts

I am working on intel based solaris  running on intel pentium 4

when i use the command uname -p  it gives me  i686 which the processor type
and when i type uname -i  it gives me i386 which is hardware-type

what  is the difference between processor type and platform-hardware type

regards
sagar24
sagar24Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
ocon827679Connect With a Mentor Commented:
i386 refers to the instruction set of the processor.  It is the operating system of the processor hardware, so to speak.  Just about all the AMD, Intel, etc. chips run this instruction set.  I think that Intel's Itanium processor is the only one that doesn't (it has an emulator for the i386 instruction set in order to be backward compatible.)  i686 is the hardware architecture of the processor, kind of like saying Pentium II or Athalon or whatever futuristic sounding name they give the thing.  
0
 
bloemkool1980Commented:
-p= the hardware platform you are using
-i = the name of the implementation you are using

WHat does it meant -i says that your system is based on i386 meaning your kernel is optimized for i386 and -p says that you are running i686 hardware
0
 
stefan73Commented:
Hi sagar24,
It's a bit confusing. Here is the corresponding SPARC example, which will illustrate it better:
[139]> uname -p
sparc
[140]> uname -i
SUNW,Sun-Fire-15000

Cheers,
Stefan
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
sagar24Author Commented:
Hi

So uname -i is nothing the type of kernel (i386)???
I am still confused



regards

sagar
0
 
bloemkool1980Commented:
It is confusing because you run it on intel
-i shows you for which hardware it is intended and for solaris on intel is all intel based processors from i386 on,
As you run it on i686 hardware it will show what model of processor you are using.
0
 
sirdesaiCommented:
ok
i have got to know some thing

uname -i implies that it will support i386 processors on wards ....ok

then what is kernel architecture ...

because it also is i386
i know i am still confused

regards

sagar
0
 
sagar24Author Commented:
Hi

Reading ocon827679 comments  it means that

i386 is the machine language which cpu understands ..

i686 is the cpu design which  describes its clock speed how many registers it has
how they are arranged..

so all intel pentium cpu understand i386 instructions..
please correct if i am wrong

0
 
bloemkool1980Commented:
I would rather say it is the machine language your OS is using instead of the what the CPU understands
0
 
stefan73Commented:
sagar24,
> so all intel pentium cpu understand i386 instructions..
> please correct if i am wrong

That's correct, but it's not what -i is stating. Rather than saying "i386" it should say "i386-based PC" or "32bit x86 family PC".

Stefan
0
 
sagar24Author Commented:
So
I would still to elaborate
so uname -i gives me the  type of instruction set  the OS converts to  ....

so shud i say

processor type i386,i686,i486...etc   execute i386 instruction set...

processor type describes its physical characteristics clock speed ..number and type of registers it has...



0
 
ocon827679Commented:
Interesting switch problem here.  I'm running Solaris 9 on a generic PC.  Don't know if it's Intel inside or AMD - it's a  company machine.  

I look at the man page for uname and the last 2 lines say to use uname -p to get the Instruction Set Architecture (ISA) or processor type.  I run uname -p and get i386.  This is exactly what I would expect and what the man page says should be listed.

The man page also states that the -i switch should give the hardware implementation.  I run the command and get i86pc.  Don't know, this is either an Intel Pentium III or an AMD, but the gist is that the box is not a Sparc or other platform, it's a standard run of the mill PC that use to run W2K.  

Are you sure about the results of the switches that you provided in your original post?  They seem backwards to me.
0
All Courses

From novice to tech pro — start learning today.