Is it 64 or 32 bit ..??
When I heard this Q for the second time today at my office…
I thought of writing this a mail to my dear colleagues… :)
0. Linux
$ uname -a
If the command throws ia64 (Intel Architecture-64) OR x86_64 GNU/Linux.
Guess what it is..??
..if ya seen only i686 i586 i386 GNU/Linux >> I am sure the kernel should not support 64 bit.
1. IBM-AiX
$ file /usr/lib/boot/unix*
2. SUN OS/Solaris
$ isainfo -v
If ya couldn’t find the above command…Try
$ uname -a
SUN OS 5.7 or greater is 64 bit compliant
solaris 2.7 or greater is 64 bit compliant.
x. windows
hmmm… Live free… or die….
January 16th, 2006 at 5:19 pm
If you run isainfo -n
and it reports
sparcv9
and isinfo -k
sparcv9
and isinfo -b
64
Then you can confirm that you are running 64bit Solaris and apps.
April 5th, 2006 at 11:47 am
The problem is that uname will report what the operating systems is, not
what the hardware is. This is what I get when I run a 32bit rhel3as on
a 64bit blade:
[root@xxxxxxx root]# uname -a
Linux xxxxxxx 2.4.21-40.ELsmp #1 SMP Thu Feb 2 22:22:39 EST 2006 i686 i686 i386 GNU/Linux
[root@xxxxxxx root]# dmidecode | grep Product
Product Name: ProLiant BL20p G
[root@xxxxxxx root]# lspci -v | grep 64-bit
00:1c.0 PCI bridge: Intel Corporation 6300ESB 64-bit PCI-X Bridge (rev 02) (prog-if 00 [Normal decode])
Memory at fdef0000 (64-bit, non-prefetchable) [size=64K]
Memory at fdee0000 (64-bit, non-prefetchable) [size=8K]
Memory at fde80000 (64-bit, non-prefetchable) [size=256K]
Memory at fdff0000 (64-bit, non-prefetchable) [size=64K]
Memory at fdfe0000 (64-bit, non-prefetchable) [size=64K]
Memory at fdfd0000 (64-bit, non-prefetchable) [size=64K]
I had hoped that some of the CPU flags would identify what I was looking for, but sadly I know too little about the subject. It would be nice to
have a tool that can identify this without any doubt.
April 6th, 2006 at 5:49 am
Hello Dag,
Good too see ya comment…
I am afraid; have ya tried the “lshw” (List Hardware) option. I installed it to get the
hardware details.
http://dag.wieers.com/packages/lshw/_buildlogs/?S=D :-)
Here is my output.
[root@vipin ~]# lshw | less
vipin.xxx.xx.xx
description: Computer
product: 682452A
vendor: IBM
serial: 2FND360
width: 32 bits
*-cpu
description: CPU
product: Intel(R) Pentium(R) 4 CPU 1.80GHz
vendor: Intel Corp.
physical id: 4
bus info: cpu@0
version: 15.2.4
slot: WMT478/NWD
size: 1800MHz
capacity: 2800MHz
width: 32 bits
clock: 100MHz
[root@vipin ~]# lshw | grep width
width: 32 bits
width: 32 bits
width: 64 bits /* my -memory -bank:0 width */
width: 32 bits
width: 32 bits
width: 32 bits
width: 32 bits
width: 32 bits
width: 32 bits