Re: [announce] swap mini-howto

Pavel Machek
2002-11-02T21:22:23Z

Hi!
> > > That has changed in 2.5. Swapping onto a regular file has no
> > > disadvantage wrt swapping onto a block device. The kernel does
> > > not need to allocate any memory at all to get a swapcache page
> > > onto disk.
> >
> > Well, you can swsusp to partition. You can't swsusp to a file, as that
> > is very hard to do.
>
> Why is it very hard to do ?
>
> For the swap layer, swap to a partition or to a file is the
> same thing.
>
> Does swsusp rely on restoring memory from the swap partition
> before mounting the root filesystem or is there more behind
> your objection ?

Yep, I rely on that.

[Even read-only mount of ext3 might cause journal replay, which means
data corruption. If there's real-read-only mode, resume-from-file
might be doable.
Pavel

--
Casualities in World Trade Center: ~3k dead inside the building,
cryptography in U.S.A. and free speech in Czech Republic.