Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Aug 1999 15:47:45 -0700
From:      Mike Smith <mike@smith.net.au>
To:        Andrzej Bialecki <abial@webgiro.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Saving system image to disk (NOT on a laptop) 
Message-ID:  <199908162247.PAA01394@dingo.cdrom.com>
In-Reply-To: Your message of "Tue, 17 Aug 1999 00:38:52 %2B0200." <Pine.BSF.4.05.9908170030510.35231-100000@freja.webgiro.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Hi,
> 
> To all you low-level kernel and bootloader hackers: what would it take to
> save and restore a running system image (presumably from dedicated raw
> partition) so that the system would continue where it left before reboot?
> 
> It doesn't sound that difficult to me - after all, laptops somehow do it -
> but I know too little low-level stuff to try implementing it myself...

It's quite difficult, in that it requires intimate low-level knowledge 
of the hardware in order to save/restore its state correctly.

In the case of laptops it's much easier because the hardware can't be 
changed under the image, and the BIOS knows all about the hardware.

To do it "right" in the generic case, you'd virtually have to go 
through the entire boot process again.

It might make more sense to try an alternative arrangement whereby you 
paged _everything_ out to swap, then saved the entire kernel data and 
bss segments somewhere.  You'd have fun at the restore's cutover point 
though, and any stateful hardware would still be a bitch to deal with.

-- 
\\  The mind's the standard       \\  Mike Smith
\\  of the man.                   \\  msmith@freebsd.org
\\    -- Joseph Merrick           \\  msmith@cdrom.com




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908162247.PAA01394>