The PGLOAD macro is used to load specified virtual storage areas into central (also called real) storage in anticipation of future needs. That is, PGLOAD is essentially a page-ahead function. The PGLOAD macro performs this function for virtual addresses below 16 megabytes; the LOAD option of the PGSER macro performs the same function for virtual addresses either above or below 16 megabytes. Note, however, that a page that has been loaded via PGLOAD is eligible for page-out selection in the same manner as a page that has been demand-paged into central storage.
The misuse of this function can have adverse effects on system performance. Causing unnecessary pages to be brought into central storage will force other pages to be displaced and, consequently, cause unnecessary paging activity. Proper use of this function, however, will tend to decrease system overhead resulting from page faults.
The standard form of the PGLOAD macro is written as follows:
Syntax | Description |
---|---|
name | name: Symbol. Begin name in column 1. |
␢ | One or more blanks must precede PGLOAD. |
PGLOAD | |
␢ | One or more blanks must follow PGLOAD. |
R | |
,A=start addr | start addr: A-type address, or register (1) or (2) - (12). |
,ECB=ecb addr | ecb addr: A-type address, or register (0) or (2) - (12). |
,EA=end addr | end addr: A-type address, or register (2) - (12) or (15). |
Default: start addr + 1 | |
,RELEASE=N | Default: RELEASE=N |
,RELEASE=Y | Note: RELEASE=Y may only be specified with EA above. |
The parameters are explained as follows:
PGLOAD R,A=(R3)
PGLOAD R,A=(R3),EA=(R4),ECB=(R5)
PGLOAD R,A=STANDARD,EA=ENDAD,RELEASE=Y