[Pm-utils] Re: Better integration with power management scripts

Nigel Cunningham ncunningham at cyclades.com
Thu Apr 27 17:49:23 PDT 2006


Hi.

On Friday 28 April 2006 08:01, Holger Macht wrote:
> On Fri 28. Apr - 07:58:11, Nigel Cunningham wrote:
> > Hi.
> >
> > On Friday 28 April 2006 07:34, Holger Macht wrote:
> > > On Thu 27. Apr - 22:23:13, Richard Hughes wrote:
> > > > On Thu, 2006-04-27 at 17:15 -0400, David Zeuthen wrote:
> > > > > hughsie, pjones, mjg59: Are you guys opposed to having a notifier
> > > > > interface?
> > > >
> > > > No, but i don't think it will ever be used. mjg59 was bang on when he
> > > > said that 99% of the time spent suspending is kernel side, and if
> > > > anything is going to go *boom* then it will be that.
> > >
> > > Not anymore. Since 2.6.17-rc1, where uswsusp came in, at least half is
> > > done in userspace.
> >
> > That's not right.
> >
> > The real work, where things would go boom, is still done in the kernel
> > (the atomic copy, bulk of the image preparation and writing the pages so
> > on). The userspace program just contains the controlling logic and some
> > code to possibly compress and/or encrypt the pages before handing them
> > back to the kernel.
>
> Of course, I just wanted to make clear that it's definitely not 99%, and
> also not 90%.

It would be interesting to see how much time is actually spent in userspace. I 
suspect it would be more like 90% than 50%. That said, I just managed to give 
uswsusp a try, and I'm quite impressed with Rafael's work. Even though I 
still disagree that putting the code in userspace is the right thing to do, 
I'm beginning to think in terms of the question "What does uswsusp need to 
add before Suspend2 can go away?" I guess the answer is that swsusp is 
catching up in the guts of the functionality (from my pov, admittedly). The 
main improvements I'd still like to see are the things like the ability to 
cancel the cycle, a nicer interface, the ability to use an ordinary file 
instead of swap and support for some of the less commonly used options 
(keeping the image, scripting support and so on). Maybe it won't be long 
until Suspend2 is history.

Making Rafael the maintainer would be a good step too :)

Regards,

Nigel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20060428/5853950f/attachment.pgp


More information about the hal mailing list