Re: A kexec approach to hibernation

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeremy Maitin-Shepard <jbms@...>
Cc: <linux-kernel@...>, Linus Torvalds <torvalds@...>, Nigel Cunningham <nigel@...>, Pavel Machek <pavel@...>
Date: Friday, June 1, 2007 - 8:33 pm

On Saturday, 2 June 2007 01:54, Jeremy Maitin-Shepard wrote:

No.  By reading from a file systems, you're modifying it's meta data (in
general, of course).


I think you'd have to do that.


Yes, I know that and I think these issues are solvable within the current
approach.


AFAICS, you can't do that with a kernel which is not relocatable (you can load
it, of course, but will it work then?).


That doesn't seem to be realistic to me.
 

Currently, you don't need to do that.


Yes.  It does that _before_ the hibernation begins. ;-)


No that's not correct.  Actually, during the restore we _can_ load much more
than 50% of RAM, everything needed for that is already in place. :-)

The problem is that we can't _save_ more than 50% of RAM without either doing
the suspend2's trick, or saving some memory contents directly from where it is.

Currently, we need to copy each page before saving it, which I admit is a bit
wasteful, but it generally is difficult to say which pages can be saved without
copying (your approach solves this problem quite radically).  If we had known
that, we would have been able to create even very large images just fine.


That's correct.


Frankly, I think it's tricky. ;-)  Moreover, I think it would require some
problems that we don't even anticipate to be solved.


The user space running on top of the new kernel would be limited by the
fact that the old kernel's filesystems would be inaccessible to it.  That
would, effectively, require the user to have special filesystems for the
image-saving kernel and its user space, which isn't very realistic IMO.


Yes, I think so, but at least we need to fix the quiescing of devices before
we think of implementing that.

Greetings,
Rafael


-- 
"Premature optimization is the root of all evil." - Donald Knuth
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
A kexec approach to hibernation, Jeremy Maitin-Shepard, (Fri Jun 1, 4:39 pm)
Re: A kexec approach to hibernation, Rafael J. Wysocki, (Fri Jun 1, 5:39 pm)
Re: A kexec approach to hibernation, Jeremy Maitin-Shepard, (Fri Jun 1, 6:25 pm)
Re: A kexec approach to hibernation, Rafael J. Wysocki, (Fri Jun 1, 7:14 pm)
Re: A kexec approach to hibernation, Jeremy Maitin-Shepard, (Fri Jun 1, 7:54 pm)
Re: A kexec approach to hibernation, Vivek Goyal, (Mon Jun 4, 12:40 am)
Re: A kexec approach to hibernation, Nigel Cunningham, (Mon Jun 4, 1:22 am)
Re: A kexec approach to hibernation, Jeremy Maitin-Shepard, (Mon Jun 4, 5:44 pm)
Re: A kexec approach to hibernation, Rafael J. Wysocki, (Mon Jun 4, 4:05 am)
Re: A kexec approach to hibernation, Nigel Cunningham, (Mon Jun 4, 4:14 am)
Re: A kexec approach to hibernation, Rafael J. Wysocki, (Fri Jun 1, 8:33 pm)
Re: A kexec approach to hibernation, Jeremy Maitin-Shepard, (Fri Jun 1, 9:54 pm)
Re: A kexec approach to hibernation, Nigel Cunningham, (Sun Jun 10, 11:40 pm)
Re: A kexec approach to hibernation, Jeremy Maitin-Shepard, (Mon Jun 11, 11:01 am)
Re: A kexec approach to hibernation, Xavier Bestel, (Mon Jun 11, 11:45 am)
Re: A kexec approach to hibernation, Jeremy Maitin-Shepard, (Mon Jun 11, 11:51 am)
Re: A kexec approach to hibernation, Xavier Bestel, (Mon Jun 11, 12:03 pm)
Re: A kexec approach to hibernation, Jeremy Maitin-Shepard, (Mon Jun 11, 1:05 pm)
Re: A kexec approach to hibernation, Pavel Machek, (Mon Jun 4, 6:46 am)
Re: A kexec approach to hibernation, Jeremy Maitin-Shepard, (Mon Jun 4, 6:09 pm)
Re: A kexec approach to hibernation, Pavel Machek, (Mon Jun 4, 6:51 pm)
Re: A kexec approach to hibernation, Jeremy Maitin-Shepard, (Mon Jun 11, 11:07 am)
Re: A kexec approach to hibernation, Nigel Cunningham, (Mon Jun 4, 6:36 pm)
Re: A kexec approach to hibernation, Xavier Bestel, (Tue Jun 5, 4:15 am)
Re: A kexec approach to hibernation, Stefan Seyfried, (Tue Jun 5, 5:34 am)
Re: A kexec approach to hibernation, Xavier Bestel, (Tue Jun 5, 5:40 am)
Re: A kexec approach to hibernation, Matthew Garrett, (Mon Jun 4, 8:20 am)
Re: A kexec approach to hibernation, Pavel Machek, (Mon Jun 4, 9:10 am)
Re: A kexec approach to hibernation, Matthew Garrett, (Mon Jun 4, 9:16 am)
Re: A kexec approach to hibernation, H. Peter Anvin, (Sun Jun 10, 10:02 pm)
Re: A kexec approach to hibernation, Nigel Cunningham, (Mon Jun 11, 6:44 pm)
Re: A kexec approach to hibernation, Rafael J. Wysocki, (Sat Jun 2, 5:22 am)