multiboot
Steve Cook
yorvik.ubunto at googlemail.com
Tue Jun 2 17:59:11 UTC 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Markus Schönhaber wrote:
> Derek Broughton:
>
>> I don't think so - when you create a swap file, it _has_ to be
>> contiguous.
>
> Really? Where is that documented? BTW: How does one create a file
> that's guaranteed to be contiguous - regardless of it's size or the
> file system used?
>
I was looking into this a while back and found the following couple of
bits of info.
> Is it possible for the swapfile to become fragmented over time, or
> does it just keep using the same blocks over and over? i.e. if it’s
> all contiguous when you first create the swapfile, will it stay that
> way for the life of the file? The latter. Create the swapfile when
> the filesystem is young and empty, it’ll be nice and contiguous. Once
> created the kernel will never add or remove blocks. The kernel won't
> let you use a sparse file for a swapfile.
>
> In Linux, as in most other Unix-like operating systems, it is common
> to use a whole partition of a hard disk for swapping. However, with
> the 2.6 Linux kernel, swap files are just as fast[7] as swap
> partitions, although Red Hat recommends using a swap partition. The
> administrative flexibility of swap files outweighs that of
> partitions; since modern high capacity hard drives can remap physical
> sectors, no partition is guaranteed to be contiguous.
I’m sure I found some info showing how to hibernate to a swap file but
can’t locate it at the moment
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkolaF4ACgkQICATF4lwn1puPQCfV/jEKezHt1850DohIi0UtLRo
vgEAoJ2dg8p7jV/jhHMxkEu37ESJQ+si
=mn4c
-----END PGP SIGNATURE-----
More information about the ubuntu-users
mailing list