Process for partially swapping real storage areas used by a program between a real storage and an auxiliary storage
AssigneeHitachi, Ltd.
InventorsToyohiko Kagimasa, Kikuo Takahashi, Toshiaki Mori
Life of this patent
Estimating the term…
Abstract
A process for partially swapping real storage areas used by a program is utilized in a computer system which executes programs by multiprogramming under control of a virtual storage type operating system. A first portion of a real storage area, allocated to a program to be swapped out, remains allocated to that program while the contents of a second portion of the real storage area are saved in an auxiliary storage so that the second portion is deallocated from that program. The saved contents of the second portion stored in the auxiliary storage are loaded in the real storage when the program is to be swapped in.
Claims10
A main storage management method for a computer system which executes programs by multiprogramming under control of a virtual storage type operating system, said method comprising the steps of:
- (a) maintaining a first portion of a real storage area allocated to one of the programs within a real storage of the computer system in a state allocated to the program when the program is to be swapped-out, while saving contents of a second portion of the real storage area allocated to the program to be swapped into an auxiliary storage thereby deallocating the second portion from the program to be swapped;
- and
- (b) loading saved contents of the second portion from the auxiliary storage to the real storage of the computer system when the program is to be swapped-in.
A real storage management method for a computer system controlled by a virtual storage type operating system to execute programs by multiprogramming, and which operating system uses a plurality of virtual storage spaces, wherein the computer system includes a plurality of space registers each of which holds an identifier for one of the plurality of virtual spaces which an instruction of one of the programs under execution is using, the method comprising the steps of:
- (a) when an area in a real storage of the computer system allocated to a program is to be deallocated from the program to provide a new non-allocated area, deallocating a first area in the real storage allocated to a virtual area which belongs to a virtual space designated by a space identifier which was not stored in any of the plurality of space registers, then deallocating other areas of the real storage of the computer system;
- and
- (b) allocating the deallocated first area to another program.
A real storage management method in a computer system controlled by a virtual storage type operating system to execute programs by multiprogramming and which operating system uses a plurality of virtual storage spaces, wherein the computer system includes a plurality of space registers each of which holds an identifier for one of the plurality of virtual spaces which an instruction of one of the programs under execution is using, comprising the steps of:
- (a) when a program being executed by the computer system is to be swapped-out, contents of an area in a real storage of the computer system, allocated to a virtual area in a plurality of virtual spaces which the program to be swapped uses, are saved in an auxiliary storage and there is effected a deallocating of the area from the program to be swapped-out;
- and
- (b) when the program is to be swapped-in, allocating a first area in the real storage of the computer system, to a firs virtual area of one of a plurality of virtual spaces which the program uses, the one virtual space being designated by a space identifier which was stored in one of the plurality of space registers when the program was being executed by the computer system before the program was swapped out, then allocating second areas in the real storage of the computer system to second virtual areas belonging to other of the virtual spaces used by the program than the one virtual space, and loading a first portion of the saved contents corresponding to the first virtual area from the auxiliary storage into the real storage of the computer system.
Dependencies are inferred from the claim text.