Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Slackware - Installation This forum is for the discussion of installation issues with Slackware.


  Search this Thread
Old 11-15-2012, 12:53 AM   #16
Senior Member
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165

This is what redhat says about swap.
Old 11-15-2012, 08:16 AM   #17
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,133
Blog Entries: 2

Rep: Reputation: 4834Reputation: 4834Reputation: 4834Reputation: 4834Reputation: 4834Reputation: 4834Reputation: 4834Reputation: 4834Reputation: 4834Reputation: 4834Reputation: 4834
Originally Posted by ReaperX7 View Post
I've always been told you takes the RAM size and Double it to get your Swap size.

4GB RAM = 8 GB Swap Partition
Do you think it would be reasonable to have 32GB swap for a system with 16GB of RAM or even 128GB of swap for a system with 64GB of RAM?
One could buy a 120GB SSD in that case for swap only.
Old 11-15-2012, 03:20 PM   #18
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,520

Original Poster
Rep: Reputation: 51
Of course more RAM is the only thing better than RAM. If a processor has a physical address space of 2^40 bytes, implementing the whole space (to put 2^40 bytes of RAM on the other side of the bus)is the optimal solution, disregarding money and the physical space to place that much RAM. But the 80286 designers took a lot of work to design the mechanism of virtual addressing. The 80286 (famous AT IBM PC) had a _physical_ address space of 2^24 bytes (16MB). This means the processor effectively had 24 address lines. Now, in those days, RAM _was_ expensive, and nobody would dream of installing the full 16MB in a desktop machine. But there was virtual addressing, which meant full CPU support for memory management and a mechanism whereby the program got the illusion of having a large memory space, larger than the physical one.

So the full concept of the CPU Protected Virtual Address Mode rests upon the usage of large amounts of external memory or swap memory and it seems a bit of an absurdity to end up in a scenario where swap is no longer needed.
Old 11-15-2012, 07:58 PM   #19
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Originally Posted by Berhanie View Post
This is what redhat says about swap.
That page recommends swap sizes based solely on RAM size. Given that it also says, correctly IMHO, "the amount of swap space that a system needs is a function of the memory workload running", it begs the question "How did they calculate the recommended swap sizes?".

OK, a decision about swap has to be made during installation when the memory workload cannot practicably be estimated but it would be nice to give a caveat about the limitations of this "one size fits all" approach and a recommendation to monitor the memory workload.
Old 11-16-2012, 03:01 AM   #20
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287
Try different sizes or none at all. Remember that you don't need a swap partition, but you can create a swap file instead.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding out what RAM chip needed to upgrade from 2GB to 4GB RAM. farmerluk Linux - Hardware 4 11-17-2011 12:02 PM
Why size of swap space is 2x of RAM??? Why not 1.5x of RAM or 2.5x of RAM??? Saurav Ghosh Linux - Newbie 7 11-01-2011 03:49 AM
4GB RAM Ubuntu 9.04 pitanaya Linux - Laptop and Netbook 14 09-17-2010 09:48 PM
3.6GB RAM instead of 4GB ??? masterross Slackware 11 09-04-2008 08:07 AM
4GB RAM not showing eddie0uk Linux - Hardware 5 03-12-2005 07:08 AM

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

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