Swapping to a large sparse file

John Morris jmorris at beau.org
Fri Jan 16 23:33:04 UTC 2015


On Fri, 2015-01-16 at 13:08 -0700, jd1008 wrote:
> Can it be done?
> 
> So far, swapon says:
> swapon: /var/swapfile: skipping - it appears to have holes.
> ...
> Maybe the devs can have a look and see if they can modify the swapper to
> allow sparse swap files??
> 

There is a reason why it acts like it does.  The system would panic if
it tried and failed to allocate blocks when it needed them and the drive
was full.  The whole point is that swap is treated 'like ram, only
slower' and thus it is not prepared for it to be in a 'quantum' state
until the moment of actual use.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20150116/830b6851/attachment.sig>


More information about the users mailing list