mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@linux-foundation.org>
To: Josh Triplett <josh@kernel.org>
Cc: Pavel Machek <pavel@ucw.cz>, linux-kernel@vger.kernel.org
Subject: Re: suspend2 merge (was Re: [Suspend2-devel] Re: CFS and suspend2: hang in atomic copy)
Date: Thu, 26 Apr 2007 10:42:37 -0700 (PDT)	[thread overview]
Message-ID: <alpine.LFD.0.98.0704261036120.9964@woody.linux-foundation.org> (raw)
In-Reply-To: <4630DF19.3060805@kernel.org>



On Thu, 26 Apr 2007, Josh Triplett wrote:
> 
> http://www.gettysfamily.org/wordpress/?p=32
> http://www.gettysfamily.org/wordpress/?p=33
> 
> You cannot resume "too fast"; suspend to RAM should become so fast that you
> use it without even thinking about it.

Yes. I think the OLPC is a prime example of why suspend-to-ram should 
basically try to not do any setup at all: leave all the DMA command 
structures etc in memory, leave even things like USB URB's pending, just 
"stop the actual controllers and suspend it".

If you want to just save power by shutting down the CPU, it's a great idea 
to leave the NIC powered up etc, so that you don't have to renegotiate the 
link speed etc, and that you can go into s2ram and come back in less than 
a second. 

Then, if you really want to *sleep*, you can have a s2ram script that 
actually turns off devices for real and requires more tear-down and setup, 
but having something that tries to get in and out of the processor sleep 
modes as fast as possible is definitely interesting.

Obviously, it's *more* interesting on the OLPC than on many other machines 
(since that one can keep its display refreshed while it's sleeping), so it 
may well be that the OLPC is one extreme example that isn't very realistic 
for some other uses, but I think it's one of the things we want to 
support.

(And for me personally, I'd love to have all my machines "sleep" by 
default, but wake up by eithernet and keyboard - I'd love for my screen 
saver to literally put the machine to sleep, but not have to worry about 
touching a keyboard - just ssh'ing into them should still wake up. It's 
*technically* doable, but it's just a pain to do right now)

		Linus

  reply	other threads:[~2007-04-26 17:43 UTC|newest]

Thread overview: 158+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-26 17:19 Josh Triplett
2007-04-26 17:42 ` Linus Torvalds [this message]
2007-04-28 19:18   ` Bill Davidsen
2007-04-28 19:15     ` David Lang
2007-04-29  1:04       ` Matthew Garrett
2007-04-29  1:34         ` Josh Triplett
  -- strict thread matches above, loose matches on Subject: below --
2007-04-13 20:21 [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS] Ingo Molnar
2007-04-18 20:45 ` CFS and suspend2: hang in atomic copy Christian Hesse
2007-04-18 21:16   ` Ingo Molnar
2007-04-18 21:57     ` Christian Hesse
2007-04-18 22:02       ` Ingo Molnar
2007-04-19  1:52         ` [Suspend2-devel] " Nigel Cunningham
2007-04-19  7:04           ` Ingo Molnar
2007-04-24 20:23             ` suspend2 merge (was Re: [Suspend2-devel] Re: CFS and suspend2: hang in atomic copy) Pavel Machek
2007-04-24 20:41               ` Linus Torvalds
2007-04-24 20:51                 ` Hua Zhong
2007-04-24 20:54                 ` Ingo Molnar
2007-04-24 21:29                   ` Pavel Machek
2007-04-24 22:24                     ` Ray Lee
2007-04-25 21:41                     ` Matt Mackall
2007-04-26 11:27                       ` Pavel Machek
2007-04-26 19:04                       ` Bill Davidsen
2007-04-24 21:24                 ` Pavel Machek
2007-04-24 23:41                   ` Linus Torvalds
2007-04-25  1:06                     ` Olivier Galibert
2007-04-25  6:41                     ` Ingo Molnar
2007-04-25  7:29                       ` Pavel Machek
2007-04-25  7:48                         ` Dumitru Ciobarcianu
2007-04-25  8:10                           ` Pavel Machek
2007-04-25  8:22                             ` Dumitru Ciobarcianu
2007-04-26 11:12                             ` Pekka Enberg
2007-04-26 14:48                               ` Rafael J. Wysocki
2007-04-26 16:10                                 ` Pekka Enberg
2007-04-26 19:28                                   ` Rafael J. Wysocki
2007-04-26 20:16                                     ` Nigel Cunningham
2007-04-26 20:37                                       ` Rafael J. Wysocki
2007-04-26 20:49                                         ` David Lang
2007-04-26 20:55                                         ` Nigel Cunningham
2007-04-26 21:22                                           ` Rafael J. Wysocki
2007-04-26 22:08                                             ` Nigel Cunningham
2007-04-25  8:48                         ` Nigel Cunningham
2007-04-25 13:07                         ` Federico Heinz
2007-04-25 19:38                         ` Kenneth Crudup
2007-04-25  7:23                     ` Pavel Machek
2007-04-25  8:48                       ` Xavier Bestel
2007-04-25  8:50                         ` Nigel Cunningham
2007-04-25  9:07                           ` Xavier Bestel
2007-04-25  9:19                             ` Nigel Cunningham
2007-04-26 18:18                             ` Bill Davidsen
2007-04-25  9:02                       ` suspend2 merge (was Re: [Suspend2-devel] Re: CFS and suspend2:hang " Romano Giannetti
2007-04-25 15:18                       ` suspend2 merge (was Re: [Suspend2-devel] Re: CFS and suspend2: hang " Adrian Bunk
2007-04-25 17:34                         ` Pavel Machek
2007-04-25 18:39                           ` Adrian Bunk
2007-04-25 18:50                             ` Linus Torvalds
2007-04-25 19:02                               ` Hua Zhong
2007-04-25 19:25                               ` Adrian Bunk
2007-04-25 19:38                                 ` Linus Torvalds
2007-04-25 20:08                                   ` Pavel Machek
2007-04-25 20:33                                     ` Rafael J. Wysocki
2007-04-25 20:31                                       ` Pavel Machek
2007-04-25 22:36                                     ` Manu Abraham
2007-04-25 20:20                                   ` Rafael J. Wysocki
2007-04-25 20:24                                     ` Linus Torvalds
2007-04-25 21:30                                       ` Pavel Machek
2007-04-25 21:40                                         ` Rafael J. Wysocki
2007-04-25 21:46                                           ` Pavel Machek
2007-04-25 22:22                                         ` Nigel Cunningham
2007-04-25 20:23                                   ` Adrian Bunk
2007-04-25 22:19                                     ` Kenneth Crudup
2007-04-25 19:41                                 ` Andrew Morton
2007-04-25 19:55                                 ` Pavel Machek
2007-04-25 22:13                                 ` Kenneth Crudup
2007-04-26  1:25                                 ` Antonino A. Daplas
2007-04-25 23:33                               ` Olivier Galibert
2007-04-26  1:56                                 ` Nigel Cunningham
2007-04-26  7:27                                   ` David Lang
2007-04-26  9:45                                     ` Nigel Cunningham
2007-04-25 18:52                           ` Alon Bar-Lev
2007-04-25 22:11                           ` Kenneth Crudup
2007-04-25 19:43                       ` Kenneth Crudup
2007-04-25 20:08                         ` Linus Torvalds
2007-04-25 20:27                           ` Pavel Machek
2007-04-25 20:44                             ` Linus Torvalds
2007-04-25 21:07                               ` Rafael J. Wysocki
2007-04-25 21:44                               ` Pavel Machek
2007-04-25 22:18                                 ` Linus Torvalds
2007-04-25 22:27                                   ` Nigel Cunningham
2007-04-25 22:55                                     ` Linus Torvalds
2007-04-25 23:13                                       ` Pavel Machek
2007-04-25 23:29                                         ` Linus Torvalds
2007-04-25 23:45                                           ` Pavel Machek
2007-04-26  1:48                                             ` Nigel Cunningham
2007-04-26  1:40                                       ` Nigel Cunningham
2007-04-26  2:04                                         ` Linus Torvalds
2007-04-26  2:13                                           ` Nigel Cunningham
2007-04-26  3:03                                             ` Linus Torvalds
2007-04-26  3:34                                               ` Nigel Cunningham
2007-04-26  2:31                                           ` Nigel Cunningham
2007-04-26 10:39                                       ` Johannes Berg
2007-04-26 11:30                                         ` Pavel Machek
2007-04-26 11:41                                           ` Johannes Berg
2007-04-26 16:31                                           ` Johannes Berg
2007-04-26 18:40                                             ` Rafael J. Wysocki
2007-04-26 18:40                                               ` Johannes Berg
2007-04-26 19:02                                                 ` Rafael J. Wysocki
2007-04-27  9:41                                                   ` Johannes Berg
2007-04-27 10:18                                                     ` Rafael J. Wysocki
2007-04-27 10:19                                                       ` Johannes Berg
2007-04-27 12:09                                                         ` Rafael J. Wysocki
2007-04-27 12:07                                                           ` Johannes Berg
2007-04-25 22:42                                   ` Pavel Machek
2007-04-25 22:58                                     ` Linus Torvalds
2007-04-25 22:43                                   ` Chuck Ebbert
2007-04-25 23:00                                     ` Linus Torvalds
2007-04-25 22:49                                   ` Pavel Machek
2007-04-25 23:10                                     ` Linus Torvalds
2007-04-25 23:28                                       ` Pavel Machek
2007-04-25 23:57                                         ` Linus Torvalds
2007-04-25 22:57                                   ` Alan Cox
2007-04-25 23:20                                     ` Linus Torvalds
2007-04-25 23:52                                       ` Pavel Machek
2007-04-26  0:05                                         ` Linus Torvalds
2007-04-26  0:14                                           ` Pavel Machek
2007-04-25 23:51                                             ` David Lang
2007-04-26  0:38                                             ` Linus Torvalds
2007-04-26  2:04                                               ` H. Peter Anvin
2007-04-26  2:32                                                 ` Linus Torvalds
2007-04-26 13:14                                                   ` Alan Cox
2007-04-26 16:02                                                     ` Linus Torvalds
2007-04-26  0:34                                           ` Linus Torvalds
2007-04-26 20:12                                             ` Rafael J. Wysocki
2007-04-26  0:24                                       ` Alan Cox
2007-04-26  1:10                                         ` Linus Torvalds
2007-04-26 14:04                                           ` Mark Lord
2007-04-26 16:10                                             ` Linus Torvalds
2007-04-26 21:00                                               ` Pavel Machek
2007-04-26  7:08                                         ` Andy Grover
2007-04-26  0:41                           ` Thomas Orgis
2007-05-26 17:37                       ` Martin Steigerwald
2007-05-26 20:35                         ` Rafael J. Wysocki
2007-05-26 22:23                           ` Martin Steigerwald
2007-04-26 10:17                   ` Johannes Berg
2007-04-26 10:30                     ` Pavel Machek
2007-04-26 10:40                       ` Pavel Machek
2007-04-26 11:11                         ` Johannes Berg
2007-04-26 11:16                           ` Pavel Machek
2007-04-26 11:27                             ` Johannes Berg
2007-04-26 11:26                               ` Pavel Machek
2007-04-26 11:35                                 ` Johannes Berg
2007-04-26 11:33                                   ` Pavel Machek
2007-04-26 16:14                                   ` Chris Friesen
2007-04-26 16:27                                     ` Linus Torvalds
2007-04-26 17:11                                     ` Johannes Berg
2007-04-26 15:56                                 ` Linus Torvalds
2007-04-26 21:06                                   ` Theodore Tso
2007-04-26 21:12                                     ` Nigel Cunningham
2007-04-26 13:45                         ` Johannes Berg
2007-04-26 11:04                       ` Johannes Berg
2007-04-26 11:09                         ` Pavel Machek
2007-04-26 15:53                           ` Linus Torvalds
2007-04-26 18:21                           ` Olivier Galibert
2007-04-26 21:30                             ` Pavel Machek
2007-04-26 11:35                     ` Christoph Hellwig
2007-04-26 12:15                       ` Ingo Molnar
2007-04-26 12:41                         ` Pavel Machek

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=alpine.LFD.0.98.0704261036120.9964@woody.linux-foundation.org \
    --to=torvalds@linux-foundation.org \
    --cc=josh@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /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

all inboxes | Powered by JetHome®