Re: [linux-pm] sleepy linux self-test

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Brownell <david-b@...>
Cc: Pavel Machek <pavel@...>, <linux-pm@...>, kernel list <linux-kernel@...>
Date: Sunday, February 3, 2008 - 1:54 am

* Ingo Molnar <mingo@elte.hu> wrote:


good news: the suspend+resume self-test works perfectly now! :-)

[   24.018541] Calling initcall 0xc0c70a40: be_sleepy+0x0/0x170()
[   24.023780] PM: wakealarm test with Suspend-to-RAM
[   24.027503] PM: Syncing filesystems ... done.
[   24.032177] PM: Preparing system for mem sleep
[   .........]
[   30.317160] initcall 0xc0c70a40: be_sleepy+0x0/0x170() returned 0.
[   30.321593] initcall 0xc0c70a40 ran for 6289 msecs: be_sleepy+0x0/0x170()

that's a successful suspend+resume cycle, all automatic!

now, this was _totally_ non-obvious to set up. (config attached) I had 
the (surely incorrect) impression that the new RTC code does everything 
it can to keep itself not used ;-) It did not complain that it's not the 
default RTC driver, and it did not complain that it's configured in a 
way that makes it functionally inferior.

Please dont be that shy and give us a really prominent option that does 
something like:

   CONFIG_USE_THE_COOL_NEW_RTC_CODE=y

with all its bells and whistles, and punch out the old 
drivers/char/rtc.c RTC driver if this option is enabled. Believe me, 
people _want_ to run your code on all the PC distros too. (and as a 
side-effect all the non-PC platforms are helped too)

Small feature request: could you please measure the duration 
suspend+resume cycle and print out the result to the kernel console like 
this:

   INFO: suspend+resume test succeeded and took 1.289 seconds.

such a message would be useful in flagging suspend+resume delay 
regressions. (and to automate the bisection of such regressions, etc.) 
(Please keep the millioseconds portion too - that way i can follow the 
finer details of suspend+resume performance over time as well.)
 
For example recently someone introduced a 5-10 seconds delay into the 
suspend+resume cycle (yeah, that bloke was me), so it would also be nice 
to add some hard limit on how much it takes:

   WARNING: suspend+resume test took more than 5 seconds.

and print a stack trace via WARN_ON(1), so that kerneloops.org can pick 
up such regressions immediately. This would be dependent on this 
self-test option.

please also rename CONFIG_PM_WAKEALARM_TEST to something more 
descriptive, such as: CONFIG_SUSPEND_SELF_TEST=y.

another set of small usability feature requests: please also add a boot 
option to disable/enable the suspend self-test, and allow the test to be 
built into the kernel but disabled by default. Perhaps even a sysctl to 
activate it runtime. That way distros can build it in by default but can 
keep it disabled.

	Ingo
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
sleepy linux self-test, Pavel Machek, (Wed Jan 30, 9:17 am)
Re: [linux-pm] sleepy linux self-test, David Brownell, (Thu Jan 31, 9:55 pm)
Re: [linux-pm] sleepy linux self-test, Pavel Machek, (Sat Feb 2, 8:47 am)
Re: [linux-pm] sleepy linux self-test, David Brownell, (Sat Feb 2, 1:31 pm)
Re: [linux-pm] sleepy linux self-test, Ingo Molnar, (Sat Feb 2, 2:00 pm)
Re: [linux-pm] sleepy linux self-test, David Brownell, (Sat Feb 2, 3:13 pm)
Re: [linux-pm] sleepy linux self-test, Pavel Machek, (Sat Feb 2, 3:32 pm)
Re: [linux-pm] sleepy linux self-test, Ingo Molnar, (Sat Feb 2, 3:38 pm)
Re: [linux-pm] sleepy linux self-test, David Brownell, (Sat Feb 2, 10:37 pm)
Re: [linux-pm] sleepy linux self-test, Ingo Molnar, (Sun Feb 3, 1:05 am)
Re: [linux-pm] sleepy linux self-test, Ingo Molnar, (Sun Feb 3, 1:14 am)
Re: [linux-pm] sleepy linux self-test, David Brownell, (Sun Feb 3, 3:18 am)
Re: [linux-pm] sleepy linux self-test, Sam Ravnborg, (Sun Feb 3, 3:51 am)
Re: [linux-pm] sleepy linux self-test, David Brownell, (Sun Feb 3, 4:26 am)
Re: [linux-pm] sleepy linux self-test, Ingo Molnar, (Sun Feb 3, 1:19 am)
Re: [linux-pm] sleepy linux self-test, Ingo Molnar, (Sun Feb 3, 1:35 am)
Re: [linux-pm] sleepy linux self-test, Ingo Molnar, (Sun Feb 3, 1:54 am)
Re: [linux-pm] sleepy linux self-test, Pavel Machek, (Sun Feb 10, 5:02 pm)
Re: [linux-pm] sleepy linux self-test, Ingo Molnar, (Sun Feb 3, 3:05 am)
Re: [linux-pm] sleepy linux self-test, David Brownell, (Sun Feb 3, 3:32 am)
Re: [linux-pm] sleepy linux self-test, Rafael J. Wysocki, (Sun Feb 3, 8:21 am)
Re: [linux-pm] sleepy linux self-test, David Brownell, (Sun Feb 3, 9:16 am)
Re: [linux-pm] sleepy linux self-test, Pavel Machek, (Mon Feb 18, 4:56 am)
[patch] suspend/resume self-test, Ingo Molnar, (Mon Feb 18, 5:46 am)
Re: [patch] suspend/resume self-test, Rafael J. Wysocki, (Mon Feb 18, 7:06 am)
Re: [patch] suspend/resume self-test, Pavel Machek, (Mon Feb 18, 5:53 am)
Re: [patch] suspend/resume self-test, David Brownell, (Mon Feb 18, 6:40 am)
Re: [patch] suspend/resume self-test, Ingo Molnar, (Mon Feb 18, 9:09 am)
Re: [patch] suspend/resume self-test, David Brownell, (Mon Feb 18, 4:16 pm)
Re: [patch] suspend/resume self-test, Ingo Molnar, (Tue Feb 19, 10:40 am)
Re: [patch] suspend/resume self-test, Pavel Machek, (Tue Feb 19, 6:11 am)
Re: [patch] suspend/resume self-test, Ingo Molnar, (Tue Feb 19, 10:43 am)
Re: [patch] suspend/resume self-test, David Brownell, (Tue Feb 19, 3:12 pm)
Re: [patch] suspend/resume self-test, Ingo Molnar, (Wed Feb 20, 6:15 am)
Re: [patch] suspend/resume self-test, Rafael J. Wysocki, (Mon Feb 18, 7:04 am)
Re: [linux-pm] sleepy linux self-test, Rafael J. Wysocki, (Sun Feb 3, 5:29 pm)
Re: [linux-pm] sleepy linux self-test, David Brownell, (Sun Feb 3, 6:42 pm)
Re: [linux-pm] sleepy linux self-test, Pavel Machek, (Sun Feb 3, 6:48 pm)
Re: [linux-pm] sleepy linux self-test, David Brownell, (Sun Feb 3, 7:08 pm)
Re: [linux-pm] sleepy linux self-test, Pavel Machek, (Sun Feb 10, 5:03 pm)
Re: [linux-pm] sleepy linux self-test, Rafael J. Wysocki, (Sun Feb 3, 6:43 pm)
Re: [linux-pm] sleepy linux self-test, Pavel Machek, (Sat Feb 2, 3:59 pm)
Re: [linux-pm] sleepy linux self-test, David Brownell, (Sat Feb 2, 1:51 pm)
Re: [linux-pm] sleepy linux self-test, Ingo Molnar, (Sat Feb 2, 9:50 am)
Re: [linux-pm] sleepy linux self-test, David Brownell, (Sat Feb 2, 1:49 pm)
Re: [linux-pm] sleepy linux self-test, Ingo Molnar, (Sat Feb 2, 2:06 pm)
Re: [linux-pm] sleepy linux self-test, David Brownell, (Sat Feb 2, 3:47 pm)
Re: sleepy linux self-test, Ingo Molnar, (Wed Jan 30, 3:36 pm)
Re: sleepy linux self-test, Pavel Machek, (Wed Jan 30, 7:26 pm)
Re: sleepy linux self-test, Ingo Molnar, (Fri Feb 1, 10:22 am)
Re: sleepy linux self-test, Pavel Machek, (Sat Feb 2, 8:45 am)
Re: sleepy linux self-test, Ingo Molnar, (Sat Feb 2, 9:51 am)
Re: sleepy linux self-test, Ingo Molnar, (Sat Feb 2, 9:49 am)
Re: sleepy linux self-test, Ingo Molnar, (Wed Jan 30, 12:35 pm)
Re: sleepy linux self-test, Pavel Machek, (Wed Jan 30, 12:39 pm)