Operating System - Linux
1828663 Members
1507 Online
109984 Solutions
New Discussion

Re: how to check either cpu is 32 or 64 bit ?

 
SOLVED
Go to solution
Maaz
Valued Contributor

how to check either cpu is 32 or 64 bit ?

Dear Experts
how to check either cpu is 32 or 64 bit ?
and is it possible to install a 32 bit linux os, on 64 bit hardware ?

Regards
Maaz
7 REPLIES 7
Peter Leddy_1
Esteemed Contributor
Solution

Re: how to check either cpu is 32 or 64 bit ?

Hi Maaz,

uname -a will help you and also read this post aswell.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1016578

Rgds,

Peter
Maaz
Valued Contributor

Re: how to check either cpu is 32 or 64 bit ?

thank Peter Leddy

During system startup pres F2 > Bios Settings shows the following
Processor Type Intel(R) Pentium(R) 4 CPU 3.20Ghz
Intel(R) EM64T Capable
and os shows following
# uname -a
Linux pc1 2.6.16.21-0.8-smp #1 SMP Mon Jul 3 18:25:39 UTC 2006 i686 i686 i386 GNU/Linux


# getconf WORD_BIT
32

# getconf LONG_BIT
32

# kernel-smp-2.6.16.21-0.8
-bash: kernel-smp-2.6.16.21-0.8: command not found
pc1:~ # rpm -qi kernel-smp-2.6.16.21-0.8
Name : kernel-smp Relocations: (not relocatable)
Version : 2.6.16.21 Vendor: SUSE LINUX Products GmbH, Nuernberg, GermanyRelease : 0.8 Build Date: Tue Jul 4 00:09:45 2006
Install Date: Thu Jan 25 17:24:59 2007 Build Host: couperin.suse.de
Group : System/Kernel Source RPM: kernel-smp-2.6.16.21-0.8.nosrc.rpm
Size : 54945499 License: GPL
Signature : DSA/SHA1, Tue Jul 4 00:15:12 2006, Key ID a84edae89c800aca
Packager : http://bugs.opensuse.org
URL : http://www.kernel.org/
Summary : Kernel with Multiprocessor Support
Description :
On x86 systems, this kernel supports up to 4GB of main memory. On
x86_64 systems (AMD64, EM64T), this kernel supports NUMA systems.


# uname -a
pc1:~ # cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Pentium(R) 4 CPU 3.20GHz
stepping : 9
cpu MHz : 3200.143
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl cid cx16 xtpr
lahf_lm
bogomips : 6405.90

Plz help me know either this machine is 64 bit or 32 bit

Regards
Maaz
David Child_1
Honored Contributor

Re: how to check either cpu is 32 or 64 bit ?

Hello Maaz,

It looks like your chip can support 64-bit (see: http://www.quepublishing.com/articles/article.asp?p=366538&rl=1) .

However, the OS installed on the server is 32-bit (i686 i686 i386).

Since your OS is 32-bit most of the commands you ran will report 32-bit.

David
Maaz
Valued Contributor

Re: how to check either cpu is 32 or 64 bit ?

Thanks David Child for help

>Since your OS is 32-bit most of the commands you ran will report 32-bit.

so if the OS is 32-bit, it will show the hardware as 32-bit even if hardware is 64-bit hardware ... isint ?

deepakinit
Advisor

Re: how to check either cpu is 32 or 64 bit ?

hai,


use the following command

uname -m
Ralph Grothe
Honored Contributor

Re: how to check either cpu is 32 or 64 bit ?

I ran into similar difficulties
when I was demanded to install RHEL 4
on one of our DELL PowerEdge 1850
which I was told should have 64bit capable CPUs.
When I tried to boot from the 1st installation CDROM I was told by the installer kernel on it that the machine where I intended to install this distro on was not long bit capable and that I should try with a 32bit distro.
Because I was under tight time pressure that night I quite disappointed had to install the 32bit version of RHEL.
So my advice would be, simply boot from a 64bit installation CD and you will discover if your HW is supported right at the beginning, long before any installation menus do appear.
Madness, thy name is system administration
Mike Stroyan
Honored Contributor

Re: how to check either cpu is 32 or 64 bit ?

If you have a new enough kernel, (after May 2002), then the /proc/cpuinfo "flags" line will include an "lm" flag for CPUs that implement EM64T. That is available from even 32-bit kernels. The "lm" stands for "long mode". The bit is common to Intel and AMD CPUID mechanisms. It is documented on page 35 of http://download.intel.com/design/Xeon/applnots/24161831.pdf