lkml.org 
[lkml]   [2004]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Swsusp-devel] Re: swsusp problems [was Re: Your opinion on the merge?]
On Wed, 24 Mar 2004 20:22:59 +0000, Jonathan Sambrook <jonathan.sambrook@dsvr.co.uk> wrote:
> At 16:18 on Wed 24/03/04, pavel@suse.cz masquerading as 'Pavel Machek' wrote:
>> Hi!
>>
>> > > Except when it is not in syslog, because it was after atomic copy or
>> > > before atomic copy back. swsusp is pretty unique in this respect.
>> > >
>> >
>> > And I would consider an error that happens after atomic copy critical. If
>> > this happens all attempts to draw progress bar, etc. should be stopped and
>> > suspend should probably abort as well.

swsusp2 aborts and reads back the kernel and process data, it recovers even
when hitting ESC just before powerdown.

>>
>> Well, not all printks() are errors this hard. And at some points, it
>> is no longer possible to abort (after pagedir is on disk, its okay to
>> panic (machine will resume normally after that), but its not okay to
>> simply return. You could fix signature then return, but it would be hard).

It is _utterly_ unacceptable to fail during suspend. You might as well take
a sledge hammer to kill the box!

Suspend is a mechanism to suspend the system transparently and
_NOT_EVER_ impairing the system. There can be NO_COMPROMISE and
NO_EXCUSE. I walk out of my office suspending the machine and resuming it
in front of my client it can't ever fail, or am I an idiot to advocate linux?

If I would be willing to accept failure I would not spend my time here and
utilize M$'s incarnation of an architectural idiocy.

>>
>> > What happens if swsusp1 gets such an error during atomic phase? Will it
>> > continue or abort? If it continues I would imagine user not noticing the
>> > message it it flashes the split second before the box powers off.
>>
>> It continues. Fortunately powerdown takes enough time on most machines
>> that messages can be readed ...
>
>> if you pay attetion.
>
> Which is not a normal usage scenario.

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...

>
> Common scenario:
>
> suspend machine then go home/to bed

Worse, I suspend 3 networked machines from a notebook via ssh,
tear out the network cable from the notebook and run out or go to
bed. NFS crossmounts still make me trouble at times...

>
>
> BTW Pavel I'm not arguing that the code has to stay in without
> modification
> (e.g. massively stripped down or whatever). But this is one place where
> kernel code is a lot closer to Joe Enduser's awareness than is usually
> the case, so IMUO, the priorities shift.
>

First we have to agree on what the objectives are, the code will follow.

And eventually one has to combine the superiority of linux with the
simplicity/primitivity of M$, which I am btw still recovering from.

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

\
 
 \ /
  Last update: 2005-03-22 14:01    [from the cache]
©2003-2011 Jasper Spaans