Re: swsusp is not reliable. Face it. [was Re: [Swsusp-devel] Re:swsusp problems]

From: Nigel Cunningham
Date: Thu Mar 25 2004 - 17:40:17 EST


Howdy.

On Fri, 2004-03-26 at 10:13, Pavel Machek wrote:
> swsusp1 fails your test, swsusp2 fails your test, and pmdisk fails it,
> too. If half of memory is used by kmalloc(), there's no sane way to
> make suspend-to-disk working. And swsusp[12] does not. Granted, half
> of memory kmalloc-ed is unusual situation, but it can theoreticaly
> happen. Try mem=8M or something.

Of course if you do have 8M memory, you're not going to care about
suspending to disk anyway :>. Note too that suspend2 will eat memory
until it can suspend. It doesn't livelock because it grabs the memory it
frees immediately and if it can't free enough, it gives up and exits
cleanly. You'll know almost instantly if your suspend is going to
succeed or fail: once you start seeing the image written, the only thing
that will stop it is media/hardware failure or user intervention.

> > Right, because nobody pays attention. If you step on the brake pedal driving
> > your car these brakes better work or you may be well worse of than dead
> > ... just in case you ran over a kid...
>
> So don't put swsusp into car-braking system.

LOL! Or M$!

Nigel
--
Nigel Cunningham
C/- Westminster Presbyterian Church Belconnen
61 Templeton Street, Cook, ACT 2614.
+61 (2) 6251 7727(wk); +61 (2) 6253 0250 (home)

Evolution (n): A hypothetical process whereby infinitely improbable events occur
with alarming frequency, order arises from chaos, and no one is given credit.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/