Solved

Linux swap file with SSD

Posted on 2013-11-05
2
670 Views
Last Modified: 2013-11-06
I'm about to install Linux Mint as the sole OS on a new box. I'll be using a 250GB SSD and 1 x 8GB RAM.

I'm finding a lot of conflicting opinion on swap file usage with SSDs.

I'm not bothered about not being able to hibernate - with an SSD shut down and start up are so fast it's hardly worth bothering.

1. Is it necessary for me to have a swap partition at all?
2. If so, with 8GB of RAM how big should it be?
3. If I install Linux with a 30GB / partition and the remainder of the SSD for /home will the installation create a swap file instead of a swap partition?
0
Comment
Question by:Alan Henderson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

Accepted Solution

by:
Seth Simmons earned 500 total points
ID: 39626435
1) yes.  if you have many applications open and physical memory begins to run low, the kernel can't swap out memory pages.  that's a bad thing and you will start to see the OOM killer randomly killing processes.  i've experienced that before.

2) 8gb is fine.  linux is better about swap space than windows is and is customizable.  you can add the line vm.swappiness=0 to your /etc/sysctl.conf file (takes affect after reboot) that will force the kernel to keep memory pages in physically memory and won't swap anything unless absolutely necessary.  i've done this often on production systems

this talks about it more
http://en.wikipedia.org/wiki/Swappiness

3) no; you need to create swap partition manually.  either do it first or after / then you can set /home to be the remaining space
0
 
LVL 24

Author Closing Comment

by:Alan Henderson
ID: 39627792
Thank you Seth.
0

Featured Post

Veeam gives away 10 full conference passes

Veeam is a VMworld 2017 US & Europe Platinum Sponsor. Enter the raffle to get the full conference pass. Pass includes the admission to all general and breakout sessions, VMware Hands-On Labs, Solutions Exchange, exclusive giveaways and the great VMworld Customer Appreciation Part

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More or less everybody in the IT market understands the basics of Networking, however when we start talking about Storage Networks, things get a bit dizzier, and this is where I would like to help.
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question