LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   Should I make a swap file? (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/should-i-make-a-swap-file-835780/)

Obadobo 10-02-2010 05:43 AM

Should I make a swap file?
 
I have an Asus Eee 1000H running Aurora (the new Eeebuntu). It has a gig of RAM. I have set it up with / and /home partitions, not bothering with a swap partition as I understand this could shorten the life of the flash drive. But I understand I could have a swap file which I activate with the swapon command.

What I'm wondering is, will this make any difference to the performance of this machine, which is used for word processing, email, music listening and the odd bit of Youtube - sometimes all at once. Any comments?

Hangdog42 10-02-2010 04:34 PM

I've got a Dell Mini with 2 GB RAM and no swap. I've never missed it. Try running without a swap for a bit and if you find things crashing, it might be worth setting one up, but for light work, you'll probably be fine.

eveningsky339 10-02-2010 08:21 PM

^^ This.

Only way to tell is to give it a test run without a /swap. 1GB isn't too shabby for RAM, so I think you'll be okay.

H_TeXMeX_H 10-03-2010 06:39 AM

The only thing swap will do is to sometimes save you from the OOM killer, when you run out of RAM. However, I do NOT recommend putting a swap partition or file on a SSD, because it will wear it out. There is no performance benefit to be obtained from swap.

tredegar 10-03-2010 12:29 PM

Quote:

Originally Posted by H_TeXMeX_H (Post 4116231)
The only thing swap will do is to sometimes save you from the OOM killer, when you run out of RAM. However, I do NOT recommend putting a swap partition or file on a SSD, because it will wear it out. There is no performance benefit to be obtained from swap.

If swap isn't needed, it will not be used.

If it is needed, and you haven't got any, OOM killer may start :(

SSD seems pretty reliable nowadays - see this (old) post:
http://wiki.eeeuser.com/ssd_write_limit

I have an EEE701-4G, with swap, and 1GB RAM. It's 4y old now (time flies), no problems.

So I am voting for "Enable some swap space" :)

Obadobo 10-03-2010 02:36 PM

Thanks all. I think I'll leave it as it is for now

RockDoctor 10-05-2010 08:15 PM

I've been running Fedora and Ubuntu on my Acer Aspire One (1GB) without a swap file for two years now without any obvious problems


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