(LOGO.JPG) Python for OpenVMS

(go to: table of contents, index, list of vms_sys, prev: PROCESS_SCAN, next: READEF)


PURGWS - Purge Working Set


Format:
    vms_sys.purgws (start-addr, end-addr)
Returns:

None

Arguments:

start-addr
Starting virtual address of the range of pages to be purged.
end-addr
Ending virtual address of the range of pages to be purged.
Note: the original system service accepts one argument that points to two longwords in memory. The Python function requires two separate arguments, not one argument or a tuple.

Examples:

>>> import vms_sys

>>> <CONTROL-T>
NODE::PRCNAM 19:06:29 PYTHON  CPU=00:08:06.24 PF=101647 IO=7846 MEM=1201
>>> allocate_memory = range (50000)
>>> <CONTROL-T>
NODE::PRCNAM 19:07:13 PYTHON  CPU=00:08:09.52 PF=103644 IO=7860 MEM=2886
>>> vms_sys.purgws (0,2147483647)
>>> <CONTROL-T>
NODE::PRCNAM 19:07:42 PYTHON  CPU=00:08:09.93 PF=103850 IO=7867 MEM=331
                                                                    ^^^
>>> vms_sys.purgws ()
Traceback (innermost last):
  File "<stdin>", line 1, in ?
TypeError: function requires exactly 2 arguments; 0 given

>>> vms_sys.purgws (1)
Traceback (innermost last):
  File "<stdin>", line 1, in ?
TypeError: function requires exactly 2 arguments; 1 given

>>> vms_sys.purgws (1,None)
Traceback (innermost last):
  File "<stdin>", line 1, in ?
TypeError: illegal argument type for built-in operation
>>>

(go to: table of contents, index, list of vms_sys, prev: PROCESS_SCAN, next: READEF)

28-SEP-1998 ZE.