Subject: Re: SOC project idea
To: Bucky Katz <bucky@picovex.com>
From: Perry E. Metzger <perry@piermont.com>
List: netbsd-users
Date: 03/09/2007 15:57:50
Bucky Katz <bucky@picovex.com> writes:
>> Once your system is pretty quiescent, you probably need to write out
>> the system state quite carefully, as you note. That's probably where
>> all the ingenuity has to go in.
>
> Writing and restoring state turns out to be the easy part, if you'd
> gotten the hard part done. it's just a byte-copy to storage, after all
> ;)

As Manuel points out, it is actually not that simple. Ideally, you
want to write out to the file system, and that means you can induce
lots of state in the kernel, and thus you risk writing out an
inconsistent set of data structures. Even if you are only writing out
to the swap partition, it is still a bit of work to make sure that you
don't end up writing out something that will crash when read back in.

-- 
Perry E. Metzger		perry@piermont.com