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 06-21-2010, 04:17 AM   #1
onedingo
Member
 
Registered: Jan 2006
Location: Pittsburgh, PA, US
Distribution: Arch
Posts: 69

Rep: Reputation: 19
Swap pointless on a 32bit system with >4GiB hardware ram?


Hey.

I might need to switch to i686 ArchLinux as flashplugin has been removed from the 64 bit version. Also, i could then install virtualbox-ose.

Since 32bit os has 4G limitation, is a swap partition even needed/used on a system with more than 4G hardware ram?
 
Old 06-21-2010, 05:35 AM   #2
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,046

Rep: Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100
Quote:
Originally Posted by onedingo View Post
Since 32bit os has 4G limitation, is a swap partition even needed/used on a system with more than 4G hardware ram?
The 4GB limit is address space per process. After address space used by the kernel, you have a limit of 3GB of virtual memory per process.

But cache and buffer memory is outside the process address space and other processes have their own address spaces. So a 32 bit Linux may be using much more than 4GB of memory.

Having some swap space is generally a good idea. The amount of anonymous memory in idle processes determines the amount of swap space that will benefit your system. That is a characteristic of the set of programs you run, not of the amount of physical ram you have. So no computation of swap size based just on ram size is valid.

Also, if you have 4GB or more of physical ram, a 32 bit kernel needs PAE support to be able to use that ram. But you might use far more than 4GB of "memory" including swap even if your physical ram is less.

Last edited by johnsfine; 06-21-2010 at 05:39 AM.
 
1 members found this post helpful.
Old 06-21-2010, 06:46 AM   #3
shreshtha
LQ Newbie
 
Registered: Jul 2006
Location: India
Distribution: ubuntu
Posts: 13

Rep: Reputation: 0
In your statement - "After address space used by the kernel, you have a limit of 3GB of virtual memory per process."
Is this one more appropriate - "After address space used by the kernel, you have a limit of 3GB of virtual memory per user mode process."
 
Old 06-21-2010, 06:58 AM   #4
fruttenboel
Member
 
Registered: Jul 2008
Posts: 270

Rep: Reputation: 48
Quote:
Originally Posted by onedingo View Post
Hey.

I might need to switch to i686 ArchLinux as flashplugin has been removed from the 64 bit version. Also, i could then install virtualbox-ose.

Since 32bit os has 4G limitation, is a swap partition even needed/used on a system with more than 4G hardware ram?
To my opinion: yes.

But, to be on the safe side (especially when running a candycane Linux) it cannot harm to use a 4 GB swap partition or a swapfile. Advantage of the swapfile is that you can easily change the size and do some performance experiments with the file size.

http://www.cyberciti.biz/faq/linux-a...ap-file-howto/
 
1 members found this post helpful.
Old 06-21-2010, 07:38 AM   #5
onedingo
Member
 
Registered: Jan 2006
Location: Pittsburgh, PA, US
Distribution: Arch
Posts: 69

Original Poster
Rep: Reputation: 19
Thanks all.

I will leave the swap partition in.
 
1 members found this post helpful.
Old 06-21-2010, 08:50 AM   #6
kumar.manoj412
Member
 
Registered: May 2007
Location: India
Distribution: Mandriva, Ubuntu
Posts: 43
Blog Entries: 1

Rep: Reputation: 16
4GB is hardware limit not the software limit. You must have swap as kernel use it for virtual address space. this virtual address space starts with some offset.



Quote:
Originally Posted by onedingo View Post
Hey.

I might need to switch to i686 ArchLinux as flashplugin has been removed from the 64 bit version. Also, i could then install virtualbox-ose.

Since 32bit os has 4G limitation, is a swap partition even needed/used on a system with more than 4G hardware ram?
 
Old 06-21-2010, 01:33 PM   #7
fruttenboel
Member
 
Registered: Jul 2008
Posts: 270

Rep: Reputation: 48
Quote:
Originally Posted by kumar.manoj412 View Post
4GB is hardware limit not the software limit. You must have swap as kernel use it for virtual address space. this virtual address space starts with some offset.
Wrong.

You can run without Swapspace: I did it for years, but the system gets sluggish when you reach the limits of RAM. On a 128 MB machine, that is pretty soon. On a 4 GB system that might never be.

In the past I used to run with "swap = half of RAM" and that worked very well. With a 4 GB RAM system, 1 GB swap will be more than enough. In the rare case that a memory leak eats up the full 4 GB of RAM, you may get into trouble. But then again: with a swap space added, you will get in the same trouble, but only later.
 
Old 06-22-2010, 02:36 AM   #8
zeno0771
Member
 
Registered: Jun 2006
Location: Northern IL
Distribution: Arch64
Posts: 106

Rep: Reputation: 19
I saw this question from the other angle: Why go back to a 32-bit install when you can merely add the 32-bit libs to your existing 64-bit install?

You should also be able to get the 64-bit plugin right from Adobe and put it in mozilla/plugins unless something blew up over there that I haven't heard about yet.
 
Old 06-22-2010, 09:50 AM   #9
onedingo
Member
 
Registered: Jan 2006
Location: Pittsburgh, PA, US
Distribution: Arch
Posts: 69

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by zeno0771 View Post
I saw this question from the other angle: Why go back to a 32-bit install when you can merely add the 32-bit libs to your existing 64-bit install?
I'm not sure they provide a lib32 package or not. Will have to look into.

Quote:
Originally Posted by zeno0771 View Post
You should also be able to get the 64-bit plugin right from Adobe and put it in mozilla/plugins unless something blew up over there that I haven't heard about yet.
http://www.archlinux.org/news/501/ has more info
 
Old 06-22-2010, 10:26 AM   #10
zeno0771
Member
 
Registered: Jun 2006
Location: Northern IL
Distribution: Arch64
Posts: 106

Rep: Reputation: 19
Quote:
Originally Posted by onedingo View Post
I'm not sure they provide a lib32 package or not. Will have to look into.
IIRC we used to just run a 32-bit version before a 64-bit version even existed, though I suppose it depends on why you need it (i.e. besides just Firefox).

Have you considered just running what you need in a chroot jail? This is just the thing for when you have to have a 32-bit version of something but can't/don't want to go back to 32-bit:

http://wiki.archlinux.org/index.php/Arch64_FAQ

http://windowsanonymous.org/index.ph...logs&Itemid=44

Quote:
Originally Posted by onedingo View Post
Leave it to Adobe.
 
1 members found this post helpful.
Old 06-27-2010, 06:34 AM   #11
onedingo
Member
 
Registered: Jan 2006
Location: Pittsburgh, PA, US
Distribution: Arch
Posts: 69

Original Poster
Rep: Reputation: 19
@zeno0771

I think it may be simpler to just go with i686.

64 bit hardware running 64 bit os with 32 bit libs added to run virtualbox hosting 32 bit os.

yuck

Thanks for the ideas though.
 
Old 06-29-2010, 11:38 PM   #12
zeno0771
Member
 
Registered: Jun 2006
Location: Northern IL
Distribution: Arch64
Posts: 106

Rep: Reputation: 19
Quote:
Originally Posted by onedingo View Post
@zeno0771

64 bit hardware running 64 bit os with 32 bit libs added to run virtualbox hosting 32 bit os.
Waitaminute...
Are you holding on to VBox-OSE because you want totally open-source, free-as-in-speech-style? If not, the Personal Use version is only limited in terms of redistribution; you're not limited really any other way:
Quote:
§ 2 Grant of license. (1) Oracle grants you a personal, non-exclusive, non-transferable, limited license without fees to reproduce, install, execute, and use internally the Product a Host Computer for your Personal Use, Educational Use, or Evaluation. “Personal Use” requires that you use the Product on the same Host Computer where you installed it yourself and that no more than one client connect to that Host Computer at a time for the purpose of displaying Guest Computers remotely. “Educational use” is any use in an academic institution (schools, colleges and universities, by teachers and students). “Evaluation” means testing the Product for a reasonable period (that is, normally for a few weeks); after expiry of that term, you are no longer permitted to evaluate the Product.

(2) The “VirtualBox Guest Additions” are a set of drivers and utilities that are shipped as a subset of the Product for the purpose of being installed inside a Guest Computer to improve its performance and cooperation with the rest of the Product. In addition to and independent of the rights granted by subsection 1, Oracle allows you to install, execute, copy and redistribute a) unmodified copies of the ISO installation medium of the VirtualBox Guest Additions as shipped with the Product and b) the VirtualBox Guest Additions together with the Guest Computer into which they have been installed.
I use VBox-PUEL 64-bit with no problems in my Arch64 install and can run both 32 and 64-bit guest OSes; in fact the only reason I have 32-bit binaries is for WINE and their stay on my machine may be limited.

If I'm missing something please let me know; I'd hate to see you go to all the effort because of a misunderstanding.
 
  


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
Mint 32bit only sees 2.7gigs of RAM Jeff91 Linux - Hardware 7 04-29-2010 10:36 AM
Debian etch 32bit with 4+GB RAM izghitu Linux - Hardware 4 04-11-2008 10:30 AM
Out of memory on 16gb ram, PAE 32bit 2.6.23 heson Linux - Server 4 11-04-2007 05:54 AM
Move Main System from RAM to swap timothyb89 Linux - General 10 08-26-2006 03:49 PM
What happens when your system runs of RAM and swap? LinuxGeek Linux - General 2 06-16-2006 02:56 PM


All times are GMT -5. The time now is 10:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration