Re: Fix SWSUSP & !SWAP

Nigel Cunningham
2003-04-24T00:09:24Z

On Thu, 2003-04-24 at 12:17, CaT wrote:
> I'm curious. What does a swapfile solve that a swapdev does not? Either
> way you need to prealloc the case (either have a chunky file in a
> partition or a partition set aside) or you need to keep enough room
> avail to fit the file when it's needed.

Nothing but further bloat in swsusp :> With a swapfile, we need to know
the location of the file (and be able to find it again when it changes,
and know how to find the next block in the file system - it might be
fragmented). The simplest solution is to keep using the current method
and create a separate swap partition if you really feel you need to,
only turning it on before swap and turning if off afterwards. As Pavel
said, code could be added to get swsusp to do it itself.

Regards,

Nigel

--
Nigel Cunningham
495 St Georges Road South, Hastings 4201, New Zealand

Be diligent to present yourself approved to God as a workman who does
not need to be ashamed, handling accurately the word of truth.
-- 2 Timothy 2:14, NASB.