Programming Considerations New applicaticn programs should be designed to operate efficiently in a
paging environment.Whenever possible, use VM/370 paging instead of DOS/VS or OS/VS paging. That is, make the DOS/VS partitions and OS/VS regions virtual=real (V=R) and large enough to contain the largest jobs.
Eliminate all overlays and, if possible, combine into one larger job any
aultistep jobs that use temporaryDASD storage. PAGING FACTORS Installations should be aware that the following factors affect the
performance of a virtual machine:• The frequency of real interruptions that occur • The frequency and type of privileged instructions executed • Whether the virtual machine assist or VM/370 extended control-program
support hardware is on the machine and enabled by both the system
operator and bythe user • The frequency of START I/O (SIO) instructions • Locality of reference for paging activity within virtual storage
These factors are in addition to those described under the topic"Performance Guidelines" in this section. REDUCING PAGING ACTIVITY When a virtual machine refers to virtual storage addresses that are not
in real storage, a page fault (and paging activity) occurs. Routines
that have widely scattered storage references tend to increase the
paging load caused by this virtual machine.When possible, modules dependent upon each other, as well as the
related reference tables, constants, and literals, should be located in
thesame 4K page. Infrequently used routines, such as those that handle
unusual error conditions, should not be placed near main routines. To
minimizepaging, reentrant coding techniques should be used whenever
possible.ABNORMAL TERMINATIONS IN A VIRTUAL MACHINE Whenever pcssible with a virtual storage operating system, use its
dumping procedure instead ofVM/370's. The CP dump program does not
print out second level storage pages (that is,V=V regions or partitions
ofOS/iS and DOS/VS machines) in the correct sequence. Pages that
happen to be stored on theOS/VS or DOS/VS paging disk are not printed
at all. Also, several special formattingdump programs are available to
help a user trace throughDOS/VS and OS/VS control blocks. For more
debugging infcrmation, refer to theSection 1. General Considerations 5
paging environment.
Eliminate all overlays and, if possible, combine into one larger job any
aultistep jobs that use temporary
performance of a virtual machine:
support hardware is on the machine and enabled by both the system
operator and by
These factors are in addition to those described under the topic
in real storage, a page fault (and paging activity) occurs. Routines
that have widely scattered storage references tend to increase the
paging load caused by this virtual machine.
related reference tables, constants, and literals, should be located in
the
unusual error conditions, should not be placed near main routines. To
minimize
possible.
dumping procedure instead of
print out second level storage pages (that is,
of
happen to be stored on the
at all. Also, several special formatting
help a user trace through
debugging infcrmation, refer to the