LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-07-2013, 02:57 PM   #1
codergeek
Member
 
Registered: Dec 2012
Posts: 52

Rep: Reputation: 7
Adding more ram. Should I stay with a 32 bit distro or go with a 64 bit distro


Hi,

I am going to add memory to my computer. Right now, I have 4GB of ram.

Can I still use a 32 bit distro if I increase my memory. I read somewhere that once you go over 4GB of ram, a 64 bit distro is recommended. Anyway, I prefer to use a 32 bit distro.

If I decide to stay with a 32 bit distro with a system of 8GB ram will there be any issues? Thanks

Last edited by codergeek; 01-07-2013 at 02:58 PM.
 
Old 01-07-2013, 03:07 PM   #2
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
With a PAE kernel, a 32-bit distro with 8GB should be no problem.

I prefer a 64-bit distro, but I don't think the change from 4GB to 8GB is a reason to change from 32-bit to 64-bit.

But why do you want to change from 4GB to 8GB?

Most ordinary uses of Linux work just fine with 4GB and won't work noticeably better with 8GB. Things like video editing that work better with 8GB than 4GB also work better with 64-bit than 32-bit (and 64-bit is better for those things even if you only have 4GB).

There are some uses of Linux for which 8GB is significantly better than 4GB without 64-bit being better than 32-bit. But I think such uses are rare.

I'm still not saying a switch from 4GB to 8GB is a good reason to switch from 32-bit to 64-bit, especially if you have no compelling reason to switch from 4GB to 8GB. But if you do have a good reason to switch from 4GB to 8GB, telling us that reason might give you a more informed answer on whether you ought to switch to 64-bit.

Quote:
Originally Posted by codergeek View Post
If I decide to stay with a 32 bit distro with a system of 8GB ram will there be any issues?
You know the basics, right? With 32-bit any one process can use up to 3GB of virtual memory. The pages of that virtual memory can be scattered anywhere across your 8GB of physical ram and disk. So multiple processes, plus the kernel, plus file caching may make just as good use of 8GB in 32-bit as they could in 64-bit. But if you want to run one very large process, in 32-bit it is limited to 3GB virtual memory no matter how much physical ram you have.

Last edited by johnsfine; 01-07-2013 at 03:19 PM.
 
Old 01-07-2013, 03:21 PM   #3
codergeek
Member
 
Registered: Dec 2012
Posts: 52

Original Poster
Rep: Reputation: 7
thanks for the response johnsfine

I do alot of multimedia encoding in linux and this is why I want more memory. Also, it's hard to tell if an app is 64 bit ready or not, so to be safe, I want to use a 32 bit distro. I never had used a 64 bit distro before, maybe I'll give it a try and if certain apps don't work well with it, then I'll go back to 32 bit.

BTW, do you or anyone know If a 64 bit distro packages only 64 bit apps in both the system and the repositories or is there both 32 and 64 bit apps?

Last edited by codergeek; 01-07-2013 at 03:27 PM.
 
Old 01-07-2013, 03:29 PM   #4
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 codergeek View Post
I do alot of multimedia encoding in linux and this is why I want more memory.
multimedia encoding is the kind of thing one would expect to be significantly faster in 64-bit than in 32-bit, even if you have only 1 or 2 GB. But whether it is really faster depends on internal details of the programs that aren't very easy to predict. So you won't really know until you try. It may also depend on the L2 cache size of your CPU (a small L2 cache makes many 64-bit operations slower than 32-bit, which balances the operations that are always faster in 64-bit to net to no difference for many systems).

Quote:
Also, it's hard to tell if an app is 64 bit ready or not
Virtually all open source is 64 bit ready.

Almost all 64-bit distributions are "multilib" meaning they run 32-bit applications at least as well (generally a little better) than a 32-bit distribution. A 32-bit application may be significantly harder to install on a 64-bit distribution (a lot of dependency issues that are automatic for the native size require manual attention for the alternate size). But once correctly installed, there should be no issues at all with running a 32-bit app in 64-bit Linux.
 
2 members found this post helpful.
Old 01-07-2013, 03:33 PM   #5
codergeek
Member
 
Registered: Dec 2012
Posts: 52

Original Poster
Rep: Reputation: 7
OK, thanks again for the extra info

+1 rep
 
Old 01-07-2013, 03:37 PM   #6
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 codergeek View Post
BTW, do you or anyone know If a 64 bit distro packages only 64 bit apps in both the system and the repositories or is there both 32 and 64 bit apps?
I'm not sure I understand the question. A related answer depends on whether it is a Debian based distribution (such as Ubuntu) or a Red Hat based distribution (such as OpenSuse).

In Red Hat based distributions, you can easily specify a 32-bit package when selecting a package you want to install. All the directories are the same between the installation of a 32-bit package on a 64-bit system vs. the same package on a 32-bit system.

In Debian based distributions, the directories for .so files are different for a 32-bit package installed on a 32-bit system vs. the same package installed on a 64-bit system. For an app without any .so file, you might be able to directly install a 32-bit package on 64-bit. For a package of common .so files most distributions offer a repacked version (32 bit .so files specifically packaged for 64-bit systems). For in between cases (uncommon .so files) you may need to unpack the package manually and drop the files into systematically different directories from where the package says they should go.

Last edited by johnsfine; 01-07-2013 at 03:39 PM.
 
Old 01-07-2013, 03:48 PM   #7
codergeek
Member
 
Registered: Dec 2012
Posts: 52

Original Poster
Rep: Reputation: 7
Hi johnsfine

I think you answered my question with your answer below
Quote:
Virtually all open source is 64 bit ready.

Almost all 64-bit distributions are "multilib" meaning they run 32-bit applications at least as well (generally a little better) than a 32-bit distribution.
Anyway, I am going to try a 64 bit distro for the first time and see what happens. But, I believe it should do well on my system. Thanks again johnsfine
 
Old 01-18-2013, 12:59 AM   #8
Mark1986
Member
 
Registered: Aug 2008
Location: Netherlands
Distribution: Xubuntu
Posts: 87

Rep: Reputation: 11
Hi,

I hope I am not too late with giving this response. (Or maybe you already use it.)

When I am unsure how my system will react to certain change, I create a virtual machine. On that virtual machine I make the changes and see what happens.

I hope this helps you.
 
Old 01-18-2013, 03:50 AM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
The problem here would be that the OP is running a 32 bit system, so he can't give enough memory to the VM to test the effects of more RAM on 32 and 64 bit systems.
 
Old 01-19-2013, 05:23 AM   #10
BoraxMan
Member
 
Registered: Apr 2010
Posts: 103

Rep: Reputation: 11
I went from 4G to 8G and noticed no difference at all. Even when I had 2G due to a fautly ram chip, it wasn't all that different. The only advantage, is that I can store more on a ramdrive (ramfs). But of a waste of money in the end, but lesson learned.

64bit isn't a huge advantage. You end up having to install many 32 bit libraries anyway, due to 32 bit apps which you may run (ie, precompiled like doom3, or you cant recompile as 64bit). Those libraries take up additional disk space and RAM when loaded.
 
Old 01-19-2013, 06:39 AM   #11
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 BoraxMan View Post
I went from 4G to 8G and noticed no difference at all.
...
Those libraries take up additional disk space and RAM when loaded.
Odd mix of observations. You care about the several MB of extra ram use that you typically get in a 64-bit distro from needing some 32-bit shared libraries (redundant with 64 bit version of the same libraries also in ram). But you had such little need for ram that an upgrade from 4GB to 8GB didn't matter.

The extra disk space needed because of multi-lib is more than several MB, but it isn't one GB. The price difference between a disk drive of a several hundred GB vs. 1000 GB is typically less than 5 cents per incremental GB. So that is how I view the incremental disk space needed by 64-bit vs. 32-bit.
 
Old 01-21-2013, 08:56 PM   #12
m1rr0rm3
LQ Newbie
 
Registered: Jan 2013
Location: Planet Earth
Distribution: RHEL v7.6
Posts: 28

Rep: Reputation: Disabled
Adding more ram

The main question should be do I use a 32-bit OS or a 64-bit OS?

Since the 32-bit OS' are being phased out slowly you should convert at a time that you can by building a computer that is capable of running a 64-bit OS.

I have 16 gb of ram on a RHEL v6.3 Workstation running the 64-bit kernel. I also use the same setup on my laptop but with 8GB of ram

- Chris
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD distro of ubuntu 9.10 64 bit doesn't see VIA Nano C7D CPU as 64 bit raypsi Linux - Hardware 2 08-30-2010 09:48 PM
32 bit distro that supports 4GB ram? thach.trung.ngoc Slackware 5 10-09-2009 07:23 AM
looking for very stable distro and 32 bit while working with 4gb ram!!!!! michaa808 Linux - General 1 03-12-2009 01:31 PM
64-bit vs 32-bit distro on Xeon newguy55 Fedora 1 01-17-2006 09:40 AM
64-bit distro usable with 32-bit machine? JapanMtlExpat Linux - Software 7 10-05-2004 11:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:44 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