LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-07-2011, 09:07 PM   #46
ThomasLMcLean
Member
 
Registered: Apr 2011
Location: Silver City, NM
Distribution: Linux Mint Debian Edition
Posts: 107

Rep: Reputation: 9

johnsfine;

Thanks for your reply. The threads answers to the original question are clear and make sense to me. The 3 GB per process is a new one for me and explains a lot.

BTW; the system has a hard drive which is intended for music and video storage.

I am not ready to accept your suggestion that swap from a SSD is bad practice. I need a better understanding of swap and the trade offs involved. Intel appears to use a 20 GB SSD as a giant swap drive in their Z68 chipset for the 1155 socket. However, this is clearly off subject, so I will retire from here with a thank you.

T L
On The West Coast.
 
Old 02-21-2017, 10:41 AM   #47
HimanshuBDave
LQ Newbie
 
Registered: Apr 2007
Location: Nadiad, Gujarat, India
Distribution: Slackware
Posts: 6

Rep: Reputation: 6
Can we some how utilize more than 4 GB RAM on a 32-bit Linux System?

Yes, in a way. I have a Dell Latitude 3340 Laptop with 4-core CPU and 8 GB RAM. I use Slackware 14.2 (32-bit) on it. In order to use more than 4 GB RAM, I proceeded as follows. For example, I use H2O Machine Learning packages, briefly as follows:
1. Install Oracle VirtualBox
2. Create a Virtual Machine on it, from Slackware 14.2 DVD, as described by Stephen Glasskeys, "VirtualBox: How to create a Linux Virtual Machine". I used the following main settings:
(a) 4 cores (CPU)
(b) 3.85 GB RAM
(c) "Guest Attachments" installed
(d) setting up Network access
3. Installed H2O (exactly same version as on the main machine) on the Virtual Linux machine.
4. Set up H2O on both machines so as to form a two machine "cluster". Note that though machine cycles will be
shared between the two machines, the RAM use is exclusive.

5. Running a large enough a ML problem on this cluster showed that I was able to use almost all of the 8 GB RAM, and that too usefully. The speed penalty was not noticeable.
 
Old 02-22-2017, 07:31 PM   #48
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,632
Blog Entries: 4

Rep: Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931
Generally speaking, if you have a (modern ...) 64-bit capable CPU, then you should be running a 64-bit capable OS.

Although a 64-bit processor can put itself into a "32-bit compatibility mode," in order to correctly support software that imagines that "a computer will never have more than 4GB of RAM," this is very-obviously a hobbled-horse scenario. You should relieve yourself of it as quickly as possible, and let your CPU run free.
 
Old 03-02-2017, 02:46 PM   #49
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by the_gripmaster View Post
The max amount of addressable memory for a 32 bit OS is 4GB. Does this 4GB also includes the swap space I might have allocated?

Lets say, I am running a 32bit version of Linux on a machine with 4GB of RAM. And I allocated another 4GB in swap. Can the OS use all that is available from the RAM and AS WELL AS the swap?
The answer to your specific question is "yes": a 32 bit OS will be able to use between 3.2 and 4 GB of physical RAM plus any amount of swap space you wish to allocate (within the limit of disk or file size your 32 bit OS supports). The swap partition or file is used by the memory manager to "page out" blocks of memory not required by the system at any given time, enabling it to get around its incapacity to directly address more than 2E32 (4GB) of physical memory. The total of both physical RAM plus swap space is often called "virtual memory", and this can be greater in size than the amount of physical RAM directly addressable by the 32 bit system.

Cheers.
 
1 members found this post helpful.
Old 03-02-2017, 06:23 PM   #50
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,632
Blog Entries: 4

Rep: Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931
Quote:
Originally Posted by Rickkkk View Post
The answer to your specific question is "yes": a 32 bit OS will be able to use between 3.2 and 4 GB of physical RAM plus any amount of swap space you wish to allocate (within the limit of disk or file size your 32 bit OS supports). The swap partition or file is used by the memory manager to "page out" blocks of memory not required by the system at any given time, enabling it to get around its incapacity to directly address more than 2E32 (4GB) of physical memory. The total of both physical RAM plus swap space is often called "virtual memory", and this can be greater in size than the amount of physical RAM directly addressable by the 32 bit system.

Cheers.
The 4GB limit is architectural: 2^32 = 4,294,967,296. The processor's address bus is 32 bits wide.

It is quite likely that your system's CPU is actually capable of operating in 64-bit mode, and if so, you should do this. Linux is capable of running 32-bit software, but there is no logical reason to put the operating system in handcuffs.
 
Old 03-02-2017, 06:39 PM   #51
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
And why was this thread dredged up for no good reason ?.

This horse was beaten to death long ago.
 
Old 03-02-2017, 07:22 PM   #52
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,632
Blog Entries: 4

Rep: Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931
Quote:
Originally Posted by syg00 View Post
And why was this thread dredged up for no good reason ?.

This horse was beaten to death long ago.
Dunno ... sometimes the same technical topics keep coming back. Yes, there are still a lot of 32-bit OS's that are still deployed out there.

"A newbie in India" picked up on this thread because it – apparently – really did match his concerns ... last week. "So it goes," sometimes.

Last edited by sundialsvcs; 03-02-2017 at 07:24 PM.
 
  


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
Best way to pack a folder >8-12 GB ? (you certainly know > limit of 4GB) frenchn00b Linux - General 3 12-29-2008 06:20 PM
64-bit Linux virtual memory limit? wmnwmn Linux - General 1 02-01-2008 10:43 AM
4GB on 32-bit Debian? sycamorex Debian 6 07-03-2007 11:52 AM
split utility in pipes: backup to FAT32 (4GB limit) Samsara Linux - Software 3 01-26-2007 11:25 PM
4GB RAM: 64-bit Opteron Problems deviance99 Linux - Hardware 6 06-22-2004 08:24 PM

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

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