5.23 DEFSTORE (Define main and expanded storage)

5.23.1 Function

The DEFSTORE statement is used to specify the size of the main and expanded storage. Storage is
allocated in megabytes, unless a specific unit is specified. The actual upper limit of the main and expan-
ded storage is determined by the host system's architecture, operating system, and on some systems the
amount of physical memory and paging space you have available.

The practical limit depends on the maximum amount of storage that can be obtained by the “malloc”
function (usually around 1 GB on 32-bit platforms; on 64-bit platforms the value should only be limited by
available paging space).

An additional optional argument determines the locking state of the allocated memory (page lock by host
operating system). The LOCKED option indicates that the memory is to be locked into storage while UN-
LOCKED (the default) indicates that the memory is not locked into the storage.

Please note that Hercules preserves the last locking state of DEFSTORE for each type of storage. Once
the storage is locked, any subsequent change to the storage size will honor the existing lock state of
memory unless the lock state is specified again on the DEFSTORE command.

Caution: Do not lock storage unless sufficient real memory is available to back up the request. Failure to
do so may require the host system to be rebooted.

5.23.2 Syntax

Descriptive

msize[ ] [


size[ ] [

Diagram




~¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬®

storagetype




~¬¬¬ ¬¬¬®

msize ¬¬¬¦¬¬¬¬¬¬¬¬¬¦¬¬¬¦¬¬¬¬¬¬¬¬¬¬¬¬¬¬¦¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬Ê




¬¬¬ ¬¬¬«























Ê xsize ¬¬¬§¬¬¬¬¬¬¬¬¬§¬¬¦¬¬¬¬¬¬¬¬¬¬¬¬¬¬¦¬¬¬¬¬¬¬¬¬¬¬¬¬¬«


¬¬¬ ¬¬¬«







¬¬¬ ¬¬¬«






¬¬¬ T ¬¬¬

5.23.3 Parameter

msize

The value of msize must be a valid decimal number. The actual upper limit is dete-
rmined by the host system's architecture, the operating system and on some sys-
tems the amount of physical memory and paging space that is available.

For storage sizes less than 16M, sizes not on a 4K boundary are rounded up to the
next 4K boundary. Otherwise, storage sizes not on a 1M boundary are rounded up
to the next 1M boundary.

The minimum size is 4K for architecture levels ALS0 and ALS1 (S/370 and
ESA/390), and 8K for architecture level ALS2 (ESAME) and higher. A maximum of
64M may be specified for architecture level ALS0 (S/370), 2048M (2G) for ALS1
(ESA/390) and 16E for architecture level ALS2 (ESAME) and higher.

The default on startup is 2M.

xsize

The value of xsize must be a valid decimal number. The actual upper limit is deter-
mined by the host system’s architecture, the operating system and on some sys-
tems the amount of physical memory and paging space that is available.

Storage sizes not on a 1M boundary are rounded up to the next 1M boundary. The
lower limit and default is 0.

B

‘B’ determines that the number given is specified in bytes (no multiplier). Specifying
the storage in bytes is possible only for main storage.

K

‘K’ determines that the number given is specified in kilobytes (multiplier 2**10).
Specifying the storage in kilobytes is possible only for main storage.

M

‘M’ determines that the number given is specified in megabytes (multiplier 2**20).
This is the default if no unit is appended.

G

‘G’ determines that the number given is specified in gigabytes (multiplier 2**30).

T

‘T’ determines that the number given is specified in terabytes (multiplier 2**40). On
32-bit machines the unit terabytes is not available.

P

‘P’ determines that the number given is specified in petabytes (multiplier 2**50).
Specifying the storage in petabytes is possible only for main storage. On 32-bit
machines the unit petabytes is not available.

E

‘E’ determines that the number given is specified in exabytes (multiplier 2**60).
Specifying the storage in exabytes is possible only for main storage. On 32-bit
machines the unit exabytes is not available.

LOCK

Attempt to lock the storage (pages locked by the host operating system).

UNLOCK

Leave the store unlocked (no pages locked by the host operating system). This is
the default.

Notes:

The actual upper limit is determined by the host system’s architecture and operating system and the
amount of physical memory and available paging space. The total of MAINSIZE and XPNDSIZE on host
systems with a 32-bit architecture will be limited to 4G; host systems with a 64-bit architecture will be
limited to less than 16E.

Previous Page Next Page