Can anyone please help me to find a command in Solaris 10 by which I
can get the processor architecture.
For example, If it is an AMD 64 bit opteron then the command
isainfo -k
will display amd64
What is the command to find out the architecture is Solaris 10 is
installed on Intel 64 bit ?
Thanks and Regards
Kiran Hiremath
I don't have one at home, so I'm guessing what you'll get,
but as Intel EM64T is basically an amd64 emulator, you
will still get amd64.
You will probably find differences in the isainfo -v output,
as I doubt EM64T supports all amd's special instructions
such as amd_3dnow.
--
Andrew Gabriel
Here's what isainfo -v prints on a dual Xeon box:
64-bit amd64 applications
mon sse3 pause sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu
32-bit i386 applications
mon sse3 pause sse2 sse fxsr mmx cmov sep cx8 tsc fpu
Cheers,
Chris
I just needed it to write a Shell script to identify whether the
processor is Intel or AMD.
Thanks and Regards
Kiran
> Hi,
> What is the output of the command
> "isainfo -v" and "isainfo -k"
> on Intel 64 bit machine with Solaris 10
>
> I just needed it to write a Shell script to identify whether the
> processor is Intel or AMD.
(Dual Xeon machine)
% isainfo -v
64-bit amd64 applications
mon sse3 pause sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu
32-bit i386 applications
mon sse3 pause sse2 sse fxsr mmx cmov sep cx8 tsc fpu
% isainfo -k
amd64
I think you'll have to look for a specific instruction extension that only
exists on one of the processors, because otherwise isainfo doesn't
distinguish an Intel chip from an AMD chip.
Cheers,
Chris
You should really look for whatever property you need to know
about, not just if the processor is Intel or AMD. For example,
look for amd_3dnow if you care about the amd_3dnow instructions.
If Intel were to implement them in the future*, then your script
would also use them on Intel processors which had them.
*Unlikely in this particular case
--
Andrew Gabriel
>Hi,
>What is the output of the command
>"isainfo -v" and "isainfo -k"
> on Intel 64 bit machine with Solaris 10
>I just needed it to write a Shell script to identify whether the
>processor is Intel or AMD.
Why don't you use "psrinfo -pv"
The physical processor has 1 virtual processor (0)
x86 (CentaurHauls family 6 model 9 step 8 clock 1000 MHz)
VIA Nehemiah
The physical processor has 2 virtual processors (0 1)
x86 (chipid 0x0 AuthenticAMD family 15 model 33 step 2 clock 2393 MHz)
Dual Core AMD Opteron(tm) Processor 280
The physical processor has 2 virtual processors (2 3)
x86 (chipid 0x1 AuthenticAMD family 15 model 33 step 2 clock 2393 MHz)
Dual Core AMD Opteron(tm) Processor 280
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
Let me explain the situation:
I have 2 machines, one is Intel 64 bit and other is AMD 64 bit. Both
have Solaris 10 installed.
I want to write a single Unix Shell script, which performs different
actions in each of the machines.
So I need to have the checking done in my Shell script to find that
whether the script is being executed in an Intel 64 bit machine or an
AMD 64 bit machine.
I currently have AMD 64 bit machine but I don't have Intel 64 bit
machine. So I was wondering, if anyone could help me to find a single
command which would show me the difference corresponding to the
architecture.
So I thought of using the isainfo -k command. But as I don't have the
Intel machine, i don't know the output of the command in Intel 64 bit
machines.
Thanks
Kiran
But you still haven't said _why_.
What specific difference between Intel and AMD do you care about?
If you just need to tell two machines apart, you could give them
different names and use "uname -n".
> I currently have AMD 64 bit machine but I don't have Intel 64 bit
> machine. So I was wondering, if anyone could help me to find a single
> command which would show me the difference corresponding to the
> architecture.
> So I thought of using the isainfo -k command. But as I don't have the
> Intel machine, i don't know the output of the command in Intel 64 bit
> machines.
As I explained earlier, I think it still says amd64, but the only
Intels I currently have Solaris on seem to be too old to run 64 bit.
--
Andrew Gabriel
1) Why do you want to make the distinction?
2) psrinfo -pv provides some insight (except CPU model if set by BIOS)
3) isainfo -v tells you about the micro architecture (supported instructions)