Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Linux swap file with SSD

Posted on 2013-11-05
2
Medium Priority
?
685 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 2000 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

In this article you will get to know about pros and cons of storage drives HDD, SSD and SSHD.
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

721 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