8.170 SUSPEND (Suspend Hercules)

8.170.1 Function

This command lets you suspend the current Hercules session and shutdown the host machine. Subse-
quently the suspended session can be resumed (see “RESUME” command). The data necessary to be
saved for a later restart is saved in a packed (zipped) file called “hercules.srf.gz” which is located in the
current configuration path.

After entering the SUSPEND command the CPUs are put in a stopped state and the contents of the main
storage, CPU states, I/O device states and internal Hercules states are dumped onto the “Hercules.srf.gz”
file. After the SUSPEND command has finished writing to the suspend file, it schedules an immediate
shutdown of Hercules.

Currently device state is only fully saved for CKD disks. Each device class (e.g. TAPE, RDR, PUN, CTC)
will need code to save and restore their state. Some states may not be possible to restore (e.g. active
TCP/IP connections at the time of suspend). Currently the vector facility state is not saved, neither is the
ECPSVM state.

The created suspend file is designed to be HERCULES release independent and to be host architecture
independent. For example it is possible to take a suspend file created on HERCULES 3.05.0 on an Intel
machine and resume on a Sun machine running HERCULES 3.07.0.

Please note that there are some caveats with suspend / resume processing which can affect the guest
operating system running under Hercules. These caveats are described in the chapter about RESUME
processing (

8.137 , RESUME).

There are some caveats when suspending and resuming guest operating system processing:

As seen by the guest operating system, the TOD clock will appear to jump a large value. Some
guests may not cope very well with this. For example some guests may be dismayed because
certain interrupts will occur way past its due time. Also for S/370 an interval timer interrupt may
be lost if the guest is interrupted for more than half the Interval Timer wrap time (around 8 hours).
Although some effort has been put in order to make this as transparent as possible (that is, it
should appear to the guest operating system that the STOP key was pressed for a large amount
of time), some state information may be missed.
Some guest operating systems will fare better if the suspend state is prepared first. For MVS, as
an example, it seems to help when a QUIESCE command and a SYSTEM RESTART manual
operation are issued prior to suspend the system.

8.170.2 Syntax

Descriptive

Diagram

¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ

8.170.3 Parameter

None.

8.170.4 Examples

Example 1:

Suspend the Hercules session.

HHC00013I Herc command: 'suspend'

HHC01420I Begin Hercules shutdown

HHC02272I Highest observed MIPS and IO/s rates

HHC02272I from Sun Sep 26 00:00:00 2010

HHC02272I to Sun Sep 26 03:50:21 2010

HHC02272I MIPS: 0.00 IO/s: 0

HHC01421I Releasing configuration

HHC00101I Thread id 000001F0, prio 0, name 'Processor CP00' ended

HHC00101I Thread id 000017A4, prio 0, name 'Processor CP01' ended

HHC01465I 0:000C device detached

HHC01465I 0:000D device detached

HHC01465I 0:000E device detached

.

several lines not displayed.

.

HHC01465I 0:0480 device detached

HHC01465I 0:0481 device detached

HHC01465I 0:0E20 device detached

HHC01422I Configuration release complete

HHC01423I Calling termination routines

HHC01500I HDL: begin shutdown sequence

HHC01501I HDL: calling 'panel_cleanup'

HHC01502I HDL: calling 'panel_cleanup' complete

HHC02103I Logger: logger thread terminating

Figure 306: SUSPEND command

Previous Page Next Page