LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 10-02-2010, 05:43 AM   #1
Obadobo
LQ Newbie
 
Registered: Oct 2010
Location: Southern England, in exile from Wales
Distribution: BunsenLabs, Debian, Mint if I have to
Posts: 5

Rep: Reputation: 0
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?
 
Old 10-02-2010, 04:34 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 420Reputation: 420Reputation: 420Reputation: 420Reputation: 420
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.
 
Old 10-02-2010, 08:21 PM   #3
eveningsky339
Member
 
Registered: Mar 2010
Location: Western Maine
Distribution: PCLinuxOS (LXDE)
Posts: 466

Rep: Reputation: 51
^^ 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.
 
Old 10-03-2010, 06:39 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
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.
 
Old 10-03-2010, 12:29 PM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Testing"
Posts: 6,112

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Quote:
Originally Posted by H_TeXMeX_H View Post
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"
 
Old 10-03-2010, 02:36 PM   #6
Obadobo
LQ Newbie
 
Registered: Oct 2010
Location: Southern England, in exile from Wales
Distribution: BunsenLabs, Debian, Mint if I have to
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks all. I think I'll leave it as it is for now
 
Old 10-05-2010, 08:15 PM   #7
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Linux Mint
Posts: 1,735

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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
 
  


Reply


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
Can swap file or a swap partition be mounted and read? Mr-Bisquit Linux - General 3 06-08-2009 02:16 PM
swap file or swap space? simonb1975uk Linux - General 11 08-15-2008 02:39 PM
swap space (or) swap file yusufs Linux - Newbie 8 07-17-2008 02:02 AM
Need Help Increasing Swap by creating a swap file froggo Red Hat 3 06-13-2006 08:04 AM
How big to make swap file? Mandrake92 Linux - Newbie 11 05-26-2004 03:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 04:18 AM.

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