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 09-14-2009, 03:10 PM   #1
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Rep: Reputation: 41
Question architecture basic


Hi All,

I wish to know that whether we have anything like 32-bit or 64-bit machine concept in Linux / Solaris as well, or not ?
If Yes, then how can we check that ?
If not then what is the alternative for that we have here ?

Could anybody please help me with this.

Thanks in advance,
Kapil.
 
Old 09-14-2009, 03:14 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
32 bit and 64 bit processors are a hardware concept, they are not implemented in software. If you are asking if Unix systems support 64 bit hardware, then yes, for a very long time now.
 
Old 09-14-2009, 03:19 PM   #3
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Original Poster
Rep: Reputation: 41
Question

Hi MS3FGX,

Thank you for the reply.
I have a RHEL5 machine here at my workplace, and I had been told that it is a 64-bit machine. I don't know how can I check that. Also, which one of them, in partivcular, is more prominent in current IT usage ?
Like in Windows, we can check these things easily, then how can we check the same thing in Linux ?

Thank You,
Kapil.
 
Old 09-14-2009, 03:30 PM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You can tell all of the information available to the kernel about the CPU with the command:

Code:
cat /proc/cpuinfo
From there you can easily figure out what CPU you have and what it can do. As for the prevalence in the marketplace, there are billions of 32 bit machines out there still, and will be the majority for a very long time. That said, new machines are almost all 64 bits, and any server hardware almost certainly will be 64 bit at this point. 64 bit processors are much better at computationally intensive tasks, and can support larger amounts of memory, so they are an obvious advantage on any server.
 
Old 09-14-2009, 03:34 PM   #5
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Original Poster
Rep: Reputation: 41
Thumbs up

Hi MS3FGX,

Thank You very much for the clear reply.

Thanks,
Kapil.
 
Old 09-14-2009, 03:36 PM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by MS3FGX View Post
64 bit processors are much better at computationally intensive tasks, and can support larger amounts of memory, so they are an obvious advantage on any server.
As long as you can get 64-bit versions of the apps you want to take advantage of 64-bit!
 
Old 09-14-2009, 03:38 PM   #7
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 kapilbajpai88 View Post
I have a RHEL5 machine here at my workplace, and I had been told that it is a 64-bit machine. I don't know how can I check that.
To check whether RHEL5 is running in 64 bit mode use the command
Code:
uname -a
When I do that I get
Code:
XXXXXX 2.6.18-128.1.10.el5 #1 SMP Thu May 7 10:35:59 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
The x86_64 means it is running 64 bit mode. If it were running 32 bit mode that might say various things such as i686 or i386.

If your system is running 64 bit, end of question.

But if it is running 32 bit, you may want to know whether the cpu is able to run 64 bit (whether it could run 64bit if you had a different copy of RHEL5). To get that type
Code:
grep lm /proc/cpuinfo
A 64 bit capable CPU should give one or more lines similar to:
Code:
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 lm pni monitor ds_cpl cid xtpr
while a non 64 bit capable CPU would probably give no output at all and certainly no lines beginning with the word flags.

Quote:
Originally Posted by MS3FGX View Post
You can tell all of the information available to the kernel about the CPU with the command:
But you need to know how to read it. The lm on the flags line indicates 64 bit capable.

Quote:
new machines are almost all 64 bits, and any server hardware almost certainly will be 64 bit at this point.
True. But lots of people run 32 bit OS's on 64 processors, in some cases for good reason.

Quote:
64 bit processors are much better at computationally intensive tasks, and can support larger amounts of memory, so they are an obvious advantage on any server.
I'm sure you can find lots of exceptional cases where a server would be better off running a 32 bit Linux. I think the OP's question is more about what RHEL is actually running vs. what could run.

What you say about the processor rather than the Linux, is primarily true because all the high performance x86 CPUs are 64 bit capable. So if you were buying a CPU for a 32 bit Linux server, you would almost certainly get a 64 bit CPU.

Last edited by johnsfine; 09-14-2009 at 03:50 PM.
 
  


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
GnuCash, KMyMoney - basic, basic questions - please help if you can. brjoon1021 Linux - Software 3 10-20-2008 06:27 PM
What architecture would I use? johnnyICON Linux - Newbie 1 12-08-2004 11:36 AM
Architecture skguha Linux - Newbie 2 05-03-2004 12:37 AM
basic question on distro and architecture digitized_funk Linux - Newbie 4 03-24-2003 04:33 AM
I'm a BASIC chap, looking for some info on BASIC programming CragStar Programming 2 01-21-2001 09:19 AM

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

All times are GMT -5. The time now is 07:06 PM.

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