Re: hibernate and file system/metadisk driver buffers/caches

From: Rafael J. Wysocki
Date: Mon Nov 01 2010 - 23:53:44 EST


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
--
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/