Info about suspend-to-disk
Konstantin Belousov
kostikbel at gmail.com
Tue Aug 23 07:05:26 UTC 2016
On Mon, Aug 22, 2016 at 11:41:12PM -0400, Eric McCorkle wrote:
> Hi everyone,
>
> I'm gathering information in preparation for possibly working on
> suspend-to-disk functionality. I have a fairly good idea of what it
> would take and one way to attack it. The overall plan would look
> something like this:
>
> * Use dump functionality to write an entire OS image out to disk. As
> this is a voluntary dump, it should be possible to go through the FS
> interface to produce a regular file.
And get fs state unsynchronized between on-disk state and the cached
state in memory at the moment where you begin dumping. Even if you
preallocate all storage for the dump file before taking kernel memory
snapshot, a write to the file may result in reallocation of the blocks
and incompatible changes in the inode block, at least.
More information about the freebsd-hackers
mailing list