Re: 2.6.25-rc2 System no longer powers off after suspend-to-disk. Screen becomes green.
- From: Nigel Cunningham <nigel@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 21 Feb 2008 09:45:02 +1100
Hi.
Jesse Barnes wrote:
Well, it seems like we'll have to fix drivers in either case, and isn't a kexec approach fundamentally more sound and simple, design-wise? Rafael pointed out some problems with properly setting wakeup states, but I think that could be overcome...
No. AFAICS, kexec is going to be more complex and ugly in many ways.
To summarise, a kexec based hibernation is going to need the following additional requirements to just replace what we already have:
- get the original kernel to allocate storage while racing against the rest of the system (currently allocation is done post-atomic copy & post-freezing - no racing). This makes it potentially slower, too;
- get the original kernel to transfer the information about what swap was allocated to the kexec'd kernel, probably together with a lot of other information (which pages are nosave etc).
- get the original kernel to keep memory free for the kexec'd kernel which would otherwise be usable. Not a biggy on desktops or laptops, but think about embedded.
- people keep talking about hibernating to an ext3 fs mounted on fuse as a limitation of the freezer. To do that with kexec, you're still going to have to bmap the ext3 fs and pass the block list (in which case we can also do it without kexec) or umount all the ext3/fuse part and remount in the kexec'd kernel. Sort of defeats the purpose, doesn't it?
I also wonder about how much of a pain it's going to be setting up userspace for this kexec'd kernel. Will you need a separate partition just for it? If not, will the userspace be loaded into memory all the time (more memory wasted for normal use), or loaded from ordinary partitions at kexec time (how to do safely? - more info to transfer between kernels?).
I'd love it if kexec really was the panacea to the freezer issues, but problems like these make me think it isn't a viable solution.
Nigel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: 2.6.25-rc2 System no longer powers off after suspend-to-disk. Screen becomes green.
- From: Matthew Garrett
- Re: 2.6.25-rc2 System no longer powers off after suspend-to-disk. Screen becomes green.
- References:
- Re: 2.6.25-rc2 System no longer powers off after suspend-to-disk. Screen becomes green.
- From: Jeff Chua
- Re: 2.6.25-rc2 System no longer powers off after suspend-to-disk. Screen becomes green.
- From: Jesse Barnes
- Re: 2.6.25-rc2 System no longer powers off after suspend-to-disk. Screen becomes green.
- From: Linus Torvalds
- Re: 2.6.25-rc2 System no longer powers off after suspend-to-disk. Screen becomes green.
- From: Jesse Barnes
- Re: 2.6.25-rc2 System no longer powers off after suspend-to-disk. Screen becomes green.
- Prev by Date: Re: [Bug 10030] Suspend doesn't work when SD card is inserted
- Next by Date: Re: patch pci-remove-parisc-consumer-of-the-pci-global_list.patch added to gregkh-2.6 tree
- Previous by thread: Re: 2.6.25-rc2 System no longer powers off after suspend-to-disk. Screen becomes green.
- Next by thread: Re: 2.6.25-rc2 System no longer powers off after suspend-to-disk. Screen becomes green.
- Index(es):
Relevant Pages
|