public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: Pavel Machek <pavel@ucw.cz>
Cc: linux-pm@lists.osdl.org, richard@hughsie.com
Subject: Re: suspend and hibernate nomenclature
Date: Thu, 18 May 2006 12:56:33 -0700	[thread overview]
Message-ID: <200605181256.35174.david-b@pacbell.net> (raw)
In-Reply-To: <20060516204021.GA5846@ucw.cz>

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

On Tuesday 16 May 2006 1:40 pm, Pavel Machek wrote:
> Hi!
> 
> > Of course what I _would_ like to see is Linux distros that autosuspend,
> > entering "standby" after they're idle for a while and then, if they're
> > not woken up quickly enough, entering "suspend-to-RAM".  No point in
> > having laptops burn all that energy all the time, after all ... or
> > automagically inflicting long resume-from-STR latencies on them.
> 
> Actually, it is quite hard to decide when it is okay to suspend
> machine. You do not want it to fall asleep during compilation/cd
> burning/download.

Any "is the system idle" test that ignores high cpu or block i/o
loads is obviously buggy ... but that's easy enough, even those little
system monitors in X11 can get that right.  And if they get it wrong,
things would wake up right away.  (The X11 server is a good example
of the worst case.  Mine often ignores mouse and keyboard events, and
will do things like kicking in the screen saver while I'm paging through
a document ... it comes right back, but it's _very_ annoying.)

As for downloading, that's why ethernet adapters have wake-on-lan (WOL)
mechanisms.  Likewise for other wakeup-capable devices, like a keyboard
or mouse.  Or even 3D engines, DSPs, SPUs, ...


> > > If you guys used a sleep name in the kernel
> > > sleep_for_not_longer_than_6_minutes_but_more_that_2_seconds() I really
> > > don't mind -- but if the user has to click a button, I would rather the
> > > button was marked suspend or hibernate :-)
> > 
> > Well "not_longer_yadda_yadda()" would be a bizarre model.  The user-visible
> > issue is the latency to suspend or resume ... where "standby" is quick, and
> > "suspend-to-RAM" is relatively slow. ...)
> 
> Well, entering/exiting s2ram eats more power than idle; so if you expect to
> sleep 4 seconds, it is probably best to do nothing, maybe enter
> standby if you are fast.

Yes.  Those policy decisions are appopriate for userspace though,
NOT for a kernelspace "not_longer_yadda_yadda()" API call.

Are these numbers you sent real ones?  For what computer system?
I _might_ have one system to which they apply, but 10W "idle" system
power seem either way too high (by at least two orders of magnitude!)
or pretty low (for many current x86 systems).

Linux could optimize the process of entering/exiting system sleep
states, if that starts mattering much.  For true suspend states, that
mostly means suspending drivers, which ought to be cheap when the
system is already idle enough that autosuspend could kick in.

- Dave


> 4sec idle: 4 sec at 10W
>
> 4sec s2ram: 2 sec entering s2ram at 15W, 0 sec sleep, 2 sec exiting
> s2ram at 15W. bad
>
> 4sec standby: 1sec enter standby at 15W, 2 sec sleep at 5W, 1 sec exit
> standby at 15W

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



  reply	other threads:[~2006-05-18 19:56 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-07 18:02 suspend and hibernate nomenclature Richard Hughes
2006-05-08 15:05 ` Jordan Crouse
2006-05-08 16:09   ` Richard Hughes
2006-05-08 20:01 ` Pavel Machek
2006-05-14 15:32   ` Richard Hughes
2006-05-14 15:39     ` Pavel Machek
2006-05-14 21:17       ` Rafael J. Wysocki
2006-05-08 23:47 ` David Brownell
2006-05-09  7:38   ` Richard Hughes
2006-05-09 15:57     ` David Brownell
2006-05-16 20:40       ` Pavel Machek
2006-05-18 19:56         ` David Brownell [this message]
2006-05-18 20:50           ` Pavel Machek
2006-05-19  2:25             ` David Brownell
2006-05-20 17:20               ` Pavel Machek
2006-05-20 19:23                 ` Alan Stern
2006-05-20 20:47                   ` David Brownell
2006-05-20 20:55                     ` Pavel Machek
2006-05-21 15:35                       ` Alan Stern
2006-05-20 20:54                 ` David Brownell
2006-05-20 22:39                   ` Pavel Machek
  -- strict thread matches above, loose matches on Subject: below --
2006-05-16 20:47 Scott E. Preece

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200605181256.35174.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=linux-pm@lists.osdl.org \
    --cc=pavel@ucw.cz \
    --cc=richard@hughsie.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox