LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-22-2009, 10:31 PM   #1
Marianat
LQ Newbie
 
Registered: Aug 2008
Posts: 5

Rep: Reputation: 0
Swap partition wears out hard drive?


I just installed eeebuntu on my Asus 900 (16 gb). I haven't had a long time to work with it, but so far I think it's awesome. I did a lot of reading before I installed eeebuntu, and several folks said that a swap partition would wear out the SDD faster. How big a deal is that? I noticed when I did the guided installation, a swap partition was created. I didn't know enough to try to do a custom installation. I have also read that with a ram of 1gb or greater, a swap partition isn't really needed. Any opinions on this?
 
Old 05-22-2009, 11:46 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,721

Rep: Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120
Way overstated as a problem I would think. If you don't need to swap you won't use it - simple. And with a Gig you probably won't do any.
"swapon -s" will tell you how much swap you have used - "uptime" will tell you how long since you booted. Use these numbers to work out the rate at which swap is writing to disk.
I'll bet it is zero - or pretty damn close.

I don't know how eeebuntu is structured, but if /etc is on that disk, logs will be a much bigger issue.
 
Old 05-22-2009, 11:56 PM   #3
geomysterio
LQ Newbie
 
Registered: May 2009
Distribution: Fedora
Posts: 15

Rep: Reputation: 1
Swap space makes your RAM work way better, but if you're really paranoid about it, people have success with swapless systems. Just go root and run

Code:
swapoff /dev/blah
where 'blah' is your swap partition.

But really, it's no big deal. That's like saying that driving wears the asphalt away. Technically true, but what else is it good for?
 
Old 05-23-2009, 04:54 AM   #4
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by Marianat View Post
I just installed eeebuntu on my Asus 900 (16 gb). I haven't had a long time to work with it, but so far I think it's awesome. I did a lot of reading before I installed eeebuntu, and several folks said that a swap partition would wear out the SDD faster. How big a deal is that? I noticed when I did the guided installation, a swap partition was created. I didn't know enough to try to do a custom installation. I have also read that with a ram of 1gb or greater, a swap partition isn't really needed. Any opinions on this?
If you have RAM enough you do not need a swap partition.
Do not use hibernate function in this case.
If you like to turn of you're swap well edit fstab and make the lines about the partition as a remark .
If you need it later on you can make it active again
 
Old 05-23-2009, 06:15 AM   #5
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
SSD has a rough amount of writes it can handle before it more or less dies. Modern SSD cards last a reasonable while, though this still happens.

Why does this make any difference you may ask- swap is where data is stored when it needs to be popped from RAM to add more data to the RAM; data that has a higher priority or need in RAM. This happens more often as memory levels drop- so a machine with a couple GB of RAM will need swap less than a box qith 256MB if you understand.

The problem? Yes, less swap may mean fewer writes happen because it may fill quickly, but it'll still happen; not to mention the fact you need swap working in tandem with RAM for performance, means states can be preserved here instead of having to generate them again from data and processor.
 
Old 05-23-2009, 07:44 AM   #6
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
Edit: I misunderstood a key detail about Asus 900 and wrote a wrong answer. (This forum ought to let you delete your own posts).

Last edited by johnsfine; 05-23-2009 at 08:19 AM.
 
Old 05-24-2009, 10:43 PM   #7
Marianat
LQ Newbie
 
Registered: Aug 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks to all of you for your answers. I did check the system monitor under swap monitor, and it doesn't appear that any swapping is going on. I think I will leave the swap partition alone.
 
Old 05-25-2009, 05:51 AM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287
I think if swap was used on a regular basis then it could wear out a SSD, but as this doesn't really happen, I wouldn't worry about it too much. Technically you don't even need swap if you have at least 1 GB RAM.

The only time my machines swap out is when editing large images, other than that swap is never used.

Last edited by H_TeXMeX_H; 05-25-2009 at 05:52 AM.
 
  


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
Using a usb thumb drive or flash drive as a swap partition. stevenjoseph Linux - Hardware 8 01-16-2012 12:09 PM
Hard Drive Partition Management - Mandriva Double Partition with Swap File partition moshebagelfresser Linux - Hardware 2 05-23-2008 10:46 AM
[SOLVED] How do I swap windows on hard 2 to hard drive 1 and linux from 1 to 2 uncle guido Linux - Newbie 5 10-25-2006 11:14 AM
hard disk partitioning swap partition sasqpodalian Linux - Hardware 1 09-12-2006 05:26 PM
Can I run the swap partition on th second hard drive? dwhswebhosting Linux - Software 2 06-03-2004 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:13 PM.

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