The HyperNews Linux KHG Discussion Pages

Agree: Why you would want to get a memory snapshot

Forum: The Linux Kernel Hackers' Guide
Re: Question How to get a Memory snapshot ? (Manuel Porras Brand)
Re: Disagree Why not to get a memory snapshot? (Jukka Santala)
Keywords: UPS memory-image, Power-Fail Interrupt, power-fail recovery
Date: Tue, 11 Aug 1998 17:07:18 GMT
From: Dave M. <DGMDGM@INAME.COM>

If I understand the question correctly, one reason you would want to get a memory snapshot before a power failure would be in the case where you are designing a system that does not have a UPS but does have a Power Fail Interrupt.

This is a concept that was used back in the mini-computer days. When the power supply sensed a drop in input voltage it would generate an interrupt that would notify the system that power was about to be lost. The power supply was designed to continue to provide power for a number of milliseconds (typically 60-120) after the loss of line power. This would give the OS just enough time to stash memory and the state of all registers in an image that could be retrieved upon power-up. When power was restored, this image could be used to restart the system where it left off. It could also be analyzed during the boot process and used to direct recovery operations upon restart.

The need for this type of power-fail restart may not be immediately obvious to a PC user but if you are using your computer to perform some type of machine control or instrumentation monitoring, where power-fail recovery is critical, then knowing what the OS was doing at the time of power loss is very important.

Dave M.