Dan Widyono on 19 Dec 2007 10:05:56 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Pros and cons of swap in a partition vs. in a file in the file system


My two cents:

partition: less overhead (how much? need to measure.  matters? depends on how
	much you use swap, and your application)

file: more flexible (can move from partition to partition, disk to disk,
	depending on needs; can resize easily)

If you backup /home you would want to exclude /home/swap.

If you use swap for stand-by mode, that may interfere with resume-from-swap.

Make sure you protect access to swap with appropriate permissions if you use
a file.

Dan W.

On Wed, Dec 19, 2007 at 11:19:23AM -0500, K.S. Bhaskar wrote:
> Does anyone have any opinions on putting swap in a partition vs. in a
> file (e.g., /home/swap) in the file system?  Thank you very much.
> 
> -- Bhaskar
> ___________________________________________________________________________
> Philadelphia Linux Users Group         --        http://www.phillylinux.org
> Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug