LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-15-2011, 02:59 AM   #1
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Rep: Reputation: 30
How to know you are running 32 or 64 bit Linux?


in console, type what command to know your OS bit?
 
Old 01-15-2011, 03:06 AM   #2
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Code:
anisha@linux-dpjj:~> uname -m -p -i
i686 i686 i386
 
Old 01-15-2011, 03:24 AM   #3
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Original Poster
Rep: Reputation: 30
mine is
Linux asus 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010 i686 GN
means what?
32 bit?
 
Old 01-15-2011, 03:32 AM   #4
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Original Poster
Rep: Reputation: 30
any software like CPUZ for linux?
 
Old 01-15-2011, 04:20 AM   #5
z99
Member
 
Registered: Aug 2009
Location: Iran-Sari
Distribution: CentOS,Fedora,Slitaz
Posts: 136

Rep: Reputation: 20
as far as i know:
to find if your processor is 64bit
the command would be:
cat /proc/cpuinfo|grep flags
Quote:
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 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 vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm ida tpr_shadow vnmi flexpriority
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 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 vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm ida tpr_shadow vnmi flexpriority
lm means long mode which indicates your cpu is 64 bit,
and the command(s):
Quote:
getconf LONG_BIT
and
Quote:
uname -a
uname -a should show you if you have 64 bit kernel.If it doesn’t say 64 somewhere,it’s not 64 bit.Commonly 32-bit would be i686,i386,
getconf LONG-BIT will return 32 for 32bit OS and 64 for 64bit OS.
hope this help,

Last edited by z99; 01-15-2011 at 04:22 AM.
 
1 members found this post helpful.
Old 01-15-2011, 09:32 AM   #6
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Original Poster
Rep: Reputation: 30
64bit Ubuntu will make what differences?
 
Old 01-15-2011, 10:26 AM   #7
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 893

Rep: Reputation: 119Reputation: 119
64bit Linux in general (including ubuntu) will make most apps run faster, your hardware can see more than 4gb of ram (of course you can use pae kernel with 32bit), you are able to use 32 and 64 bits apps (long as you have 32 and 64 bit libraries), get the most out of your 64bit cpu and more
 
Old 01-15-2011, 11:15 AM   #8
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by TigerLinux View Post
mine is
Linux asus 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010 i686 GN
means what?
32 bit?
Yes, 32 bit.

All of the i#86 codes (such as your i686) mean 32 bit x86.

Quote:
Originally Posted by TigerLinux View Post
64bit Ubuntu will make what differences?
Probably very little.

Quote:
Originally Posted by jmc1987 View Post
64bit Linux in general (including ubuntu) will make most apps run faster
Based on what evidence? I don't have hard evidence either, but I think most apps run a very tiny amount slower in 64bit mode. Some apps run a moderate amount faster in 64bit mode and the average is likely faster for 64bit even if the majority are slower.

Quote:
your hardware can see more than 4gb of ram (of course you can use pae kernel with 32bit)
So more than 4GB physical ram is not an important boundary for the 32bit vs. 64bit decision. Depending on how you use your system, a 32-bit PAE kernel is probably short of kernel virtual memory around 16GB of physical ram, maybe 12GB or conceivably even less. A 64 bit kernel has effectively limitless kernel virtual memory. So there is some physical memory size that affects the 32bit vs. 64bit decision, but it isn't as low as 4GB.

Quote:
you are able to use 32 and 64 bits apps (long as you have 32 and 64 bit libraries)
Translation: (in a 64 bit Linux install) you'll probably install and use both 32 bit and 64 bit libraries, so you will use both extra disk space and extra physical ram to hold that semi redundant content. So if you are severely short of either disk space or ram, that extra storage will be a problem. With ordinary amounts of disk and ram, that extra is too small to care about.

Quote:
get the most out of your 64bit cpu and more
Does that just mean the psychological benefit of using a 64 bit CPU as such? Otherwise, "get the most out of" cannot be a separate benefit. It can only represent the debatable real benefits.

I have always installed 64-bit Linux when I had that choice (hardware and distribution support available). Maybe 64 bit is better, maybe it is worse (too hard for me to measure) but especially considering software trends into the future, the chance that 64bit is or will be a lot better outweighs the chance that it is a little worse.

I generally do not advise anyone to change an existing 32bit install to 64bit, because I think that change is likely to be harder than installing Linux from scratch (because of all the settings and options etc. you've accumulated since installing).

Choosing 64 bit instead of 32 bit when you're doing a full install anyway is a very inexpensive choice and reasonable to do based on only unsupported speculation that 64 bit might be better.

Switching is harder and deserves a more informed choice.

Last edited by johnsfine; 01-15-2011 at 11:17 AM.
 
Old 01-16-2011, 08:39 PM   #9
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Original Poster
Rep: Reputation: 30
Dear Friends,
now I am running Ubuntu Ultimate 32 bit,
but I have just got a 64bit ISO file,
my CPU is 64bit,
32 bit is running well, but i never install 64 bit linux,
I wish to try 64 bit, but many people it makes no significant difference you can "feel",
so i am indecisive,
do you think worth installing the 64bit Ubuntu?
 
Old 01-16-2011, 08:46 PM   #10
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
While I am a big fan of 64bit, I would tell you to use what you have installed. When you install the next time(new release, fubar something, etc) consider using 64bit. Doing large number crunching (video conversion, photo editing, etc) will show you a HUGE improvement in performance(using 64bit). Web browsing and similar stuff you really will not be able to tell the difference.
 
Old 01-16-2011, 11:38 PM   #11
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by lazlow View Post
While I am a big fan of 64bit, I would tell you to use what you have installed. When you install the next time(new release, fubar something, etc) consider using 64bit. Doing large number crunching (video conversion, photo editing, etc) will show you a HUGE improvement in performance(using 64bit). Web browsing and similar stuff you really will not be able to tell the difference.
thanks for your advice, when new final release of ubuntu 11.04 is available, i will download the 64bit version.
 
Old 01-17-2011, 07:55 AM   #12
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by TigerLinux View Post
Dear Friends,
now I am running Ubuntu Ultimate 32 bit,
but I have just got a 64bit ISO file,
my CPU is 64bit,
32 bit is running well, but i never install 64 bit linux,
I wish to try 64 bit, but many people it makes no significant difference you can "feel",
so i am indecisive,
do you think worth installing the 64bit Ubuntu?
I suggest that you reread johnsfine's #8 post directed to answer your query, again for understanding. If you have any question then present the query.

32bit vs 64bit debate is moot. If 32 bit meets your needs then why change? Expected gain? Most applications are still 32bit. This said generally, you could install 64 bit Gnu/Linux with a multilib to take advantage of both.

 
Old 01-17-2011, 09:11 AM   #13
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Quote:
Most applications are still 32bit.
While there were a lot of applications that were 32 bit only in the past (pre 2008), today most things come in a 32bit or 64 bit version. Flash was probably the last mainstream holdout and it has had a 64bit version for quite a while.
 
Old 01-17-2011, 03:00 PM   #14
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

I'll bet that there are more 32 bit apps then 64bit for Gnu/Linux.
 
Old 01-17-2011, 04:46 PM   #15
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
While that MAY be true, I would bet the ones that do not have a 64 bit version are pretty obscure. Virtually anything you can compile, can be compiled 64 bit.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Running 32-bit Applications on 64-bit Debian GNU/Linux LXer Syndicated Linux News 2 01-06-2010 12:26 PM
running 64-bit binaries on 32-bit Linux? cyberfishee Linux - Software 5 01-25-2008 05:12 AM
Running Linux 64 bit applications on 32 bit Linux OS ashish.mangla Linux - Software 1 02-24-2007 02:05 PM
Running Linux 64 bit applications on linux 32 bit OS ashish.mangla Linux - Server 1 02-24-2007 02:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration