Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1442311
| From | Pavel Machek <pavel@ucw.cz> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] PM / hibernate: Introduce snapshot test mode for hibernation |
| Date | 2016-07-13 12:30 +0200 |
| Message-ID | <rUpAv-1Nt-61@gated-at.bofh.it> (permalink) |
| References | <rSb8B-3fF-13@gated-at.bofh.it> <rUp7s-1hq-17@gated-at.bofh.it> <rUpqN-1JD-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi! > On 2016???07???13??? 17:50, Pavel Machek wrote: > >On Thu 2016-07-07 14:40:58, Chen Yu wrote: > >>This mode is to verify if the snapshot data written to > >>swap device can be successfully restored to memory. It > >>is useful to ease the debugging process on hibernation, > >>since this mode can not only bypass the BIOSen/bootloader, > >>but also the system re-initialization. > >> > >>For example: > >>$ sudo echo snapshot > /sys/power/disk > >>$ sudo echo disk > /sys/power/state > >> > >>/* manual resume.*/ > >>$ sudo echo 8:3 > /sys/power/resume > >Your examples will not work, will they? > It works on my platform, although I did not tested it for too many > rounds. Please check again: sudo echo disk > /sys/power/state -bash: /sys/power/state: Permission denied ...because bash does the open, not echo. > >This is also quite tricky/dangerous. If you do this with filesystems > >mounted R/W, it is "good bye, filesystems". > Ah, yes, this is quite tricky, maybe we can use this option as a > debug method, > for example, boot with rootfs = initrd, without mounting any disks, > and then swapon the swap device, and do a testing. This should be safer? Yeah, that's the way. Read-only root is other option. > >I guess updating documentation would be welcome from my side, > >otherwise it should be ok. > OK, I'll update the documents. Just add fat warning into the documentation. Thanks, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH] PM / hibernate: Introduce snapshot test mode for hibernation Pavel Machek <pavel@ucw.cz> - 2016-07-13 12:00 +0200
Re: [PATCH] PM / hibernate: Introduce snapshot test mode for hibernation Chen Yu <yu.c.chen@intel.com> - 2016-07-13 12:20 +0200
Re: [PATCH] PM / hibernate: Introduce snapshot test mode for hibernation Pavel Machek <pavel@ucw.cz> - 2016-07-13 12:30 +0200
Re: [PATCH] PM / hibernate: Introduce snapshot test mode for hibernation Chen Yu <yu.c.chen@intel.com> - 2016-07-13 12:40 +0200
Re: [PATCH] PM / hibernate: Introduce snapshot test mode for hibernation Pavel Machek <pavel@ucw.cz> - 2016-07-13 19:10 +0200
Re: [PATCH] PM / hibernate: Introduce snapshot test mode for hibernation "Rafael J. Wysocki" <rafael@kernel.org> - 2016-07-13 22:10 +0200
Re: [PATCH] PM / hibernate: Introduce snapshot test mode for hibernation Pavel Machek <pavel@ucw.cz> - 2016-07-13 22:30 +0200
Re: [PATCH] PM / hibernate: Introduce snapshot test mode for hibernation "Rafael J. Wysocki" <rafael@kernel.org> - 2016-07-13 22:50 +0200
Re: [PATCH] PM / hibernate: Introduce snapshot test mode for hibernation Pavel Machek <pavel@ucw.cz> - 2016-07-13 23:50 +0200
Re: [PATCH] PM / hibernate: Introduce snapshot test mode for hibernation "Rafael J. Wysocki" <rafael@kernel.org> - 2016-07-14 00:10 +0200
Re: [PATCH] PM / hibernate: Introduce snapshot test mode for hibernation "Rafael J. Wysocki" <rafael@kernel.org> - 2016-07-14 00:20 +0200
Re: [PATCH] PM / hibernate: Introduce snapshot test mode for hibernation Chen Yu <yu.c.chen@intel.com> - 2016-07-14 12:40 +0200
csiph-web