Guardian Procedure Calls Reference Manual

Z^OSSOPTIONS
specifies the OSS options.
The valid value for Z^OSSOPTIONS is as follows:
DescriptionValueName (ZSYS^VAL^ )
The default value is the only value available.0PSPAWNOPT^OSSDEFAULT
Z^MAINSTACKMAX
specifies the maximum size, in bytes, of the process main stack. The specified size cannot
exceed 32 MB.
The default value of 0D, or 0F if using ZSYS^DDL^PROCESSEXTENSION64, indicates that the
main stack can grow to 1 MB in the TNS/R environment and to 2 MB in the TNS/E environment.
For most processes, the default value is adequate.
Z^HEAPMAX
for native processes only, specifies the maximum size, in bytes, of the process heap. Note that
the sum of the size of the heap and the size of global data cannot exceed 1.1 gigabytes (GB).
When creating a 32-bit process, the default value of 0D, or 0F if using
ZSYS^DDL^PROCESSEXTENSION64, indicates that the heap can grow to the default value
of 1.1 gigabytes (GB) less the size of globals. The initial heap size of a process is zero bytes.
For most processes, the default value is adequate.
When creating a 64-bit process, the default size of the Heap is 12GB. Specifying a value of
0F in ZSYS^DDL^PROCESSEXTENSION64 will cause the 64-bit Heap to have a 12GB limit.
For a larger 64-bit Heap specify a larger value for Z^HEAP^MAX.
It is recommended that the value of Z^HEAP^MAX parameter be set to zero. The developer
then sets an appropriate value for HEAP_MAX in the object file of the application depending
on the kind of application, the maximum memory required and the system configuration. The
created process' HEAP_MAX then defaults to the value stored in the object file of the application
to be launched.
An outline of existing limitations are as follows:
Native 32-bit C and C++ programs can have up to 1.1 GB of heap. Native 64-bit C and C++
programs can have 12 GB or more of heap. CISC objects can have up to 127.5 megabytes
(MB) of heap. However, other demands for memory space can deplete the amount of memory
available for heap.
Z^SPACEGUARANTEE
specifies the minimum size, in bytes, of the amount of space that the process reserves with the
Kernel-Managed Swap Facility for swapping. For more information on this facility, see the
Kernel-Managed Swap Facility (KMSF) Manual. The value provided is rounded up to a page
size boundary of the processor. If the requested amount of space is not available,
PROCESS_SPAWN_ returns error 55.
When the default value of 0D, or 0F if using ZSYS^DDL^PROCESSEXTENSION64 is used, the
amount of space reserved is determined by the value specified in the object file for a native
process or by the operating system for a TNS or accelerated process.
1112 Guardian Procedure Calls (P)