Solved

Linux swap file with SSD

Posted on 2013-11-05
2
659 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cloning Solid State to Hybrid 7 66
Granting root permissions to a user (in Debian Jessie) 17 81
Linux 3 59
AWS Linux EC2 question on group 7 87
Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 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