K.S. Bhaskar on 19 Dec 2007 12:26:52 -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


On Dec 19, 2007 3:15 PM, Walt Mankowski <waltman@pobox.com> wrote:

[KSB] <...snip...>

> Using a sparse file as a swap file sounds like a really dangerous
> idea, and I'm not even sure it's supported.  The manpage for mkswap(8)
> says:
>
>   Note that a swap file must not contain any holes
>
> which would seem to rule out sparse files.

[KSB] Actually, no, you wouldn't use sparse files.  You would do something like:

dd if=/dev/zero of=xxx count=###
mkswap xxx
swapon xxx

-- 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