2010-11-01 23:10:24

by Daniel Taylor

[permalink] [raw]
Subject: hibernate and file system/metadisk driver buffers/caches

>From what I have found in Documentation/power, I should be
able to hibernate a system to a partition on flash, and
resume it, preserving its entire state.

In case I missed something, though, does anyone know if,
in particular, MD stripe buffers are preserved, as well
as the EXTn/XFS buffers/caches? I think I read that I/O
buffers in use by drivers are saved only if the driver
has the appropriate suspend() interfaces.

Dan Taylor


2010-11-02 03:53:40

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: hibernate and file system/metadisk driver buffers/caches

On Monday, November 01, 2010, Daniel Taylor wrote:
> From what I have found in Documentation/power, I should be
> able to hibernate a system to a partition on flash, and
> resume it, preserving its entire state.
>
> In case I missed something, though, does anyone know if,
> in particular, MD stripe buffers are preserved, as well
> as the EXTn/XFS buffers/caches? I think I read that I/O
> buffers in use by drivers are saved only if the driver
> has the appropriate suspend() interfaces.

The entire contents of memory at the moment the image is created are saved.
However, we need room for the image, so we free approximately 50% of memory
before creating the image by creating artificial memory pressure.

Thanks,
Rafael