Do you have a 64 bit computer - find out..

Every day solutions to every day challenges. + Brilliant stuff

Moderators: b1o, jkerr82508

Forum rules
Please feel free to post your tip it does not have to be advanced. Also ask questions directly related to the tip here. But do not start new threads with questions or ask for help here. That is what the help section is for. forum rules: http://bjoernvold.com/forum/viewtopic.php?f=8&t=568
User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Do you have a 64 bit computer - find out..

Postby viking60 » 19 Jul 2013, 16:41

Often we are confronted with the option of downloading 32 or 64 bit versions of Linux. 32 bit will work on both but in time 64 bit computers will totally replace 32 bit.
So how can you check that you have the hardware to run 64 bit software?

Well mostly you check it before you buy it - but there is another way:

Type

Code: Select all

grep flags /proc/cpuinfo

in a terminal and see if you can find lm flag somewhere in the output. If it is there; you can run 64 bit software. +1

So if you are already running Linux you can now check if your kernel can run 64 bit software with:

Code: Select all

 getconf LONG_BIT

If the output is 64 then you are ready to install 64 bit software if it is 32 - it is not.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Do you have a 64 bit computer - find out..

Postby dedanna1029 » 19 Jul 2013, 17:34

Doesn't look like it here, even though it appears the lm flag is in the first code:

Code: Select all

.:[ dedanna@dedanna.rockz.net : 10:32:52 : ~ ]:.
:) grep flags /proc/cpuinfo | grep lm
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm dtherm
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm dtherm
.:[ dedanna@dedanna.rockz.net : 10:33:01 : ~ ]:.
:)
.:[ dedanna@dedanna.rockz.net : 10:33:31 : ~ ]:.
:) getconf LONG_BIT
32
.:[ dedanna@dedanna.rockz.net : 10:33:36 : ~ ]:.

I'm wondering though if it's because I'm on 32-bit software that I'm getting the results I am?
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

jkerr82508
Guru-Berserk
Posts: 211
Joined: 16 Oct 2010, 21:45
Location: Fife, Scotland

Re: Do you have a 64 bit computer - find out..

Postby jkerr82508 » 19 Jul 2013, 18:30

You have the "lm" flag, which means that your cpu is 64 bit capable and you could install a 64 bit kernel.
As viking indicated, if you are running a 32 bit kernel, it is expected that you will see 32 as the LONG_BIT. (You can't run 64 bit software if you are running a 32 bit kernel.)

Jim

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Do you have a 64 bit computer - find out..

Postby dedanna1029 » 19 Jul 2013, 23:41

Yeah, thought so. Thanks.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html


Return to “Tips & Tricks”