> On Dec 4, 2019, at 8:05 PM, Johnny Billquist <b...@softjar.se> wrote:
> 
> On 2019-12-05 01:34, Paul Koning wrote:
>>> On Dec 4, 2019, at 6:15 PM, Kevin Handy <khandy2...@gmail.com> wrote:
>>> 
>>> What it sounds like you need, is  for simh to detect the shutdown interrupt 
>>> itself, and then save the current state of everything in the machine to a 
>>> file. Upon power-up, it then needs to restore back to that state.
>>> You;d have to save the current configuration settings,  state of memory, 
>>> cpu registers, device structures, etc., and then be able to read it all 
>>> back in and restore everything back to a working state. Could get 
>>> complicated, for example the disk drive have a timer in them so that they 
>>> don't respond instantly to read requests, so this type of thing would need 
>>> to be saved.
>>> Is it possible to manually do this right now? Store the state of a machine, 
>>> them restore it back using simh commands to individually reset all the 
>>> devices?
>> On a PDP11, this could be handled via a power fail interrupt, assuming the 
>> OS you have supports power fail and recovery. RSTS-11, with core memory (so 
>> you'd want to persist the memory across restarts) does. I'm not sure if 
>> others do.  (RSTS/E does not.)
> 
> Right. And all members of RSX do handle power fail and recovery. Individual 
> programs can also be notified if a power fail even happened while they were 
> running, in case there is something they need to do under such circumstances.

I should have remembered that.  In fact, on IAS (and RSX-11/D if I remember 
right), the system boot takes advantage of this: the SAV command saves a system 
image on disk, the boot loader reads that back in, and then power fail ASTs are 
delivered to all the relevant parts to restore them to operating state.  Neat 
trick.

In RSTS-11, a power fail and recovery simply leaves the system state as it was, 
with all the logged in terminals still logged in.  For a long power outage 
that's not really a good feature.  I saw it work once while in college.  RSTS/E 
dropped this because of the switch to semiconductor memory; instead it offers 
automatic restart (a clean startup, so everything is logged out and back to 
idle).

        paul


_______________________________________________
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Reply via email to