Re: swsusp3: system suspend/resume from userspace

Pavel Machek
2005-09-21T12:45:23Z

[-- Attachment #1: Type: text/plain, Size: 1040 bytes --]

Hi!

> > I still do my "userspace freezing", except that it does not freeze the
> > process doing that. (Thats no change from previous design,
> > BTW). System snapshot works single CPU and with interrupts disabled;
> > so it indeed should be atomic. That should mean there are no
> > interesting races, as long as userspace app is not doing anything
> > stupid.
>
> Which include things like taking page faults etc... are you mlock'ing it
> all ? I really don't see the point though. It's not like we actually
> need a 3rd version of swsusp, and there are plenty of other more
> important things to work on !

Yes, I'm mlocking it.

We do have suspend2, and we do want its features, but we also do not
want to merge it all into kernel. (10 000 LOC). Plus suspend2 already
has its own userland helper for asking user questions.

swsusp3 is likely easier way to go than transforming suspend2 into
something mergeable. [Ouch and BTW it works now :-)]
Pavel
--
if you have sharp zaurus hardware you don't need... you know my address