Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to find processor architecture in EMT64 machine with Solaris 10 ?

902 views
Skip to first unread message

kiranh...@gmail.com

unread,
Mar 23, 2006, 8:31:16 AM3/23/06
to
Hi,

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

Andrew Gabriel

unread,
Mar 23, 2006, 5:10:12 PM3/23/06
to
In article <1143120676.8...@j33g2000cwa.googlegroups.com>,

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

Chris Ridd

unread,
Mar 23, 2006, 5:18:20 PM3/23/06
to
On 23/3/06 10:10, in article 44231cc4$0$1168$5a6a...@news.aaisp.net.uk,
"Andrew Gabriel" <and...@cucumber.demon.co.uk> wrote:

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

kiranh...@gmail.com

unread,
Mar 24, 2006, 12:23:59 AM3/24/06
to
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.

Thanks and Regards
Kiran

Chris Ridd

unread,
Mar 24, 2006, 2:09:00 AM3/24/06
to
On 24/3/06 5:23, in article
1143177839.5...@e56g2000cwe.googlegroups.com,
"kiranh...@gmail.com" <kiranh...@gmail.com> wrote:

> 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

Andrew Gabriel

unread,
Mar 24, 2006, 3:59:56 AM3/24/06
to
In article <1143177839.5...@e56g2000cwe.googlegroups.com>,

kiranh...@gmail.com writes:
> 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.

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

Casper H.S. Dik

unread,
Mar 24, 2006, 5:57:06 AM3/24/06
to
kiranh...@gmail.com writes:

>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.

kiranh...@gmail.com

unread,
Mar 25, 2006, 4:06:55 AM3/25/06
to
Hi,
I am sorry, I could'nt get the specific answer I was looking for.

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

Andrew Gabriel

unread,
Mar 25, 2006, 4:42:02 AM3/25/06
to
In article <1143277615.0...@e56g2000cwe.googlegroups.com>,

kiranh...@gmail.com writes:
> Hi,
> I am sorry, I could'nt get the specific answer I was looking for.
>
> 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.

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

Casper H.S. Dik

unread,
Mar 25, 2006, 7:03:48 AM3/25/06
to
kiranh...@gmail.com writes:


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)

0 new messages