Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec jump

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Joseph Fannin <jfannin@...>
Cc: Pavel Machek <pavel@...>, Eric W. Biederman <ebiederm@...>, <nigel@...>, Huang, Ying <ying.huang@...>, Andrew Morton <akpm@...>, Jeremy Maitin-Shepard <jbms@...>, <linux-kernel@...>, <linux-pm@...>, Kexec Mailing List <kexec@...>
Date: Wednesday, September 26, 2007 - 4:52 pm

Hi.

On Thursday 27 September 2007 06:30:36 Joseph Fannin wrote:

I haven't looked at swsusp support, but TuxOnIce handles all storage (swap 
partitions, swap files and ordinary files) by first allocating swap (if we're 
using swap), then bmapping the storage we're going to use. After that, we can 
freeze filesystems and processes with impunity. The allocated storage is then 
viewed as just a collection of bdevs, each with an ordered chain of extents 
defining which blocks we're going to read/write - a series of tapes if you 
like. In the image header, we store dev_ts and the block chains, together 
with the configuration information. As long as the same bdevs are configured 
at boot time prior to the echo > /sys/power/resume, we're in business. 
Filesystems don't need to be mounted because we don't use filesystem code 
anyway. (LVM etc does though in so far as it's needed to make the dev_t match 
the device again).

This matches with what you said above about hibernating to swap files and 
dedicated hibernation files - TuxOnIce uses exactly the same code to do the 
i/o to both; the variation is in the code to recognise the image header and 
allocate/free/bmap storage.

<not a filesystem expert> Personally, I don't think ext[34] is broken. If 
there's data being left in the journal that will need replaying, then 
mounting without replaying the journal sounds wrong. Perhaps you should 
instead be arguing that nothing should be left in the journal after a 
filesystem freeze. But, of course, current code isn't doing a filesystem 
freeze (just a process freeze) and the kexec guys want to take even that 
away. </not a filesystem expert>

In short, I agree. AFAICS, you need both the process freezer and filesystem 
freezing to make this thing fly properly.

Nigel
-- 
See http://www.tuxonice.net for Howtos, FAQs, mailing
lists, wiki and bugzilla info.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec ..., Eric W. Biederman, (Fri Sep 21, 12:01 am)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec ..., Eric W. Biederman, (Thu Sep 20, 10:55 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Fri Sep 21, 8:10 am)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec ..., Rafael J. Wysocki, (Fri Sep 21, 7:56 am)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec ..., Rafael J. Wysocki, (Fri Sep 21, 8:18 am)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec ..., Eric W. Biederman, (Thu Sep 20, 11:33 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Fri Sep 21, 8:09 am)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Fri Sep 21, 10:31 am)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Jeremy Maitin-Shepard, (Fri Sep 21, 2:11 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Fri Sep 21, 3:00 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Fri Sep 21, 4:15 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Jeremy Maitin-Shepard, (Fri Sep 21, 4:26 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Fri Sep 21, 4:53 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Jeremy Maitin-Shepard, (Fri Sep 21, 5:08 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Fri Sep 21, 5:25 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Jeremy Maitin-Shepard, (Fri Sep 21, 5:16 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Sat Sep 22, 6:34 am)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Sat Sep 22, 5:51 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Sat Sep 22, 6:40 am)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Wed Oct 24, 4:38 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernat..., Rafael J. Wysocki, (Fri Sep 21, 11:50 am)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec ..., Nigel Cunningham, (Thu Sep 20, 10:25 pm)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec ..., Nigel Cunningham, (Thu Sep 20, 10:58 pm)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec ..., Eric W. Biederman, (Fri Sep 21, 12:46 am)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec ..., Nigel Cunningham, (Wed Sep 26, 4:52 pm)