JPH04148340A - Transaction executing system - Google Patents

Transaction executing system

Info

Publication number
JPH04148340A
JPH04148340A JP2272790A JP27279090A JPH04148340A JP H04148340 A JPH04148340 A JP H04148340A JP 2272790 A JP2272790 A JP 2272790A JP 27279090 A JP27279090 A JP 27279090A JP H04148340 A JPH04148340 A JP H04148340A
Authority
JP
Japan
Prior art keywords
space
transaction
main memory
virtual
execution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2272790A
Other languages
Japanese (ja)
Inventor
Yukinori Saito
斉藤 幸儀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2272790A priority Critical patent/JPH04148340A/en
Publication of JPH04148340A publication Critical patent/JPH04148340A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To enable the execution of a transaction at a high speed with a mini mum of main storage by storing a block to be referred to in the first execution, and executing the batch load processing of the block in the second execution. CONSTITUTION:This system is equipped with a transaction 100, transaction controlling means 120 which controls a program, processing device 170 which generates an interruption when performing access of a space which does not exist in a main storage 160 at the time of the execution of the program, and space controlling means 131 which operates the mapping of a virtual process space and a main storage space activated by the interruption. Also a reference position controlling means 130 which controls the usage positions of the transaction 100 and a virtual space 110, and a batch load means 150 which partially loads the virtual space 110 in a batch from the reference position into the main storage 160 are provided. Thus, the execution of the transaction 100 can be executed at a high speed with the minimum main storage 160.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はトランザクション実行方式、特に、トランザク
ションを実行するプロセスが、仮想的なプロセス空間と
主記憶空間を論理的な区画でマツピングを行う仮想記憶
方式を有し、当該プロセスが複数種別のトランザクショ
ンを実行する目的で複数のプログラムから構成されるト
ランザクション処理システムにおけるトランザクション
実行方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a transaction execution method, and particularly to a virtual memory in which a process executing a transaction maps a virtual process space and a main memory space into logical partitions. The present invention relates to a transaction execution method in a transaction processing system in which the process is composed of a plurality of programs for the purpose of executing a plurality of types of transactions.

〔従来の技術〕[Conventional technology]

従来、仮想的なプロセス空間と主記憶空間を論理的な区
画でマツピングを行う仮想記憶方式を有するプロセスの
実行は、実行時に目的の仮想的な空間が主記憶内に存在
しない場合に、論理的な区画で管理した一区画を主記憶
にロード後行われていた。
Conventionally, when executing a process that has a virtual memory method that maps virtual process space and main memory space in logical partitions, if the target virtual space does not exist in main memory at the time of execution, the logical This was done after loading a section managed in different sections into main memory.

また、ロードによる読み込み処理での遅延を避けるため
には、仮想的なプロセス空間を全て主記憶へ割り当てる
か、トランザクション実行の為のプログラムを全て主記
憶へ割り当てていた。
In addition, in order to avoid delays in the loading process, all virtual process spaces are allocated to main memory, or all programs for executing transactions are allocated to main memory.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した、従来のトランザクション実行方式では、トラ
ンザクションの実行を高速に行うためには、少なくても
トランザクションに関係するプログラムを全て主記憶に
割当てなくてはならず、今日のように多数のサブルーチ
ン群から構成されるシステムではトランザクションとプ
ログラムの管理が複雑になっている。
In the conventional transaction execution method described above, in order to execute transactions at high speed, at least all programs related to the transaction must be allocated to main memory. Transaction and program management is complex in these systems.

又、複数のサブルーチン群から構成されるために、トラ
ンザクションに関係するプログラムを全て主記憶に割当
る為に無駄な領域を割り当てたり、多量の主記憶が必要
である点に考慮がなされていなかった。
Also, since it is composed of multiple subroutine groups, no consideration was given to the fact that all the programs related to transactions are allocated to main memory, which results in wasted space and the need for a large amount of main memory. .

〔課題を解決するための手段〕〕 本発明の方式は、トランザクションを実行するプロセス
が、仮想的なプロセス空間と主記憶空間を論理的な区画
でマツピングを行う仮想記憶方式を有し、当該プロセス
が複数種別のトランザクションを実行する目的で複数の
プログラムから構成されるトランザクション処理におけ
るトランザクション実行方式において、トランザクショ
ンとプログラム管理するトランザクション管理手段と、
プログラム実行時に主記憶に存在しない空間をアクセス
すると割り込みを発生する処理装置と、当該割り込みに
て起動される仮想的なプロセス空間と主記憶空間をマツ
ピングする空間管理手段と、トランザクションと仮想的
な空間の使用位置を管理する参照位置管理手段と、該参
照位置から仮想的な空間を部分的に一括して主記憶ヘロ
ードする一括ロード手段とを有する。
[Means for Solving the Problems] The system of the present invention has a virtual storage system in which a process executing a transaction maps a virtual process space and a main storage space in logical partitions, and the process executes a transaction. In a transaction execution method in transaction processing that is composed of multiple programs for the purpose of executing multiple types of transactions, a transaction management means for managing transactions and programs;
A processing unit that generates an interrupt when a space that does not exist in main memory is accessed during program execution, a space management means that maps the virtual process space activated by the interrupt and the main memory space, and a transaction and virtual space The storage device has a reference position management means for managing the usage position of the reference position, and a batch loading means for partially loading the virtual space from the reference position to the main memory.

〔実施例〕〔Example〕

以下、本発明の実施例を図を参照して詳細に説明する。 Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明の構成を示すブロック図であり、トラン
ザクション100、仮想空間110、トランザクション
とプログラムを管理するトランザクション管理手段12
0、プログラム実行時に仮想的なプロセス空間と主記憶
空間をマツピンクする空間管理手段130、トランザク
ションと仮想的な空間の使用位置を管理する参照位置管
理手段140、トランザクションと仮想的な空間の使用
位置を記憶する参照位置記憶域141、仮想的な空間と
主記憶の状態を記憶する空間状態記憶域131、該参照
位置から仮想的な空間を部分的に一括して主記憶ヘロー
ドする主記憶160、主記憶上にロードされたプログラ
ムを実行する処理装置170から構成されている。
FIG. 1 is a block diagram showing the configuration of the present invention, including a transaction 100, a virtual space 110, and a transaction management means 12 for managing transactions and programs.
0. Space management means 130 that pinks the virtual process space and main memory space during program execution; Reference position management means 140 that manages the usage position of transactions and virtual space; A reference position storage area 141 for storing, a space state storage area 131 for storing the virtual space and the state of the main memory, a main memory 160 for partially loading the virtual space from the reference position to the main memory; It consists of a processing device 170 that executes a program loaded onto the memory.

トランザクション管理手段120はトランザクション1
00のトランザクション名101(Tlとする)から制
御を渡すプログラム(PLとする)を決定し、−括ロー
ド手段150にトランザクション100が使用する可能
性がある仮想空間の区画群の一括ロードを要求し、処理
装置170にプログラム(Pl)の実行を要求する。
Transaction management means 120 handles transaction 1
00's transaction name 101 (denoted as Tl), determines a program (denoted as PL) to which control is to be transferred, and requests the bulk loading means 150 to bulk load a group of partitions of the virtual space that may be used by the transaction 100. , requests the processing device 170 to execute the program (Pl).

−括ロード手段150は、トランザクション名101と
参照位置記憶域141と空間状態記憶域131の情報か
ら仮想空間の区画群を主記憶へ一括してロードする。
- The bulk loading means 150 loads the partition group of the virtual space into the main memory at once from the transaction name 101, the information in the reference position storage area 141, and the space state storage area 131.

処理装置170は、主記憶160内にロードされたプロ
グラム(Pl〉の命令から実行アドレスが存在する仮想
空間内区画番号112を決定し空間状態記憶域131を
参照し実行アドレスが主記憶に存在するか否かを判定し
、存在する場合は命令を実行し、そうでない場合は、プ
ログラム(Pl)の実行を中断し空間管理手段130に
仮想空間内区画番号112の区画の主記憶へのロードを
要求する。
The processing device 170 determines the partition number 112 in the virtual space where the execution address exists from the instruction of the program (Pl) loaded into the main memory 160, refers to the space state storage area 131, and determines the execution address exists in the main memory. If it exists, execute the command; if not, interrupt the execution of the program (Pl) and instruct the space management means 130 to load the partition with partition number 112 in the virtual space into the main memory. request.

空間管理手段130は、主記憶内でロードすべき主記憶
的区画番号(n)を決定し仮想空間内区画番号112を
区画をロードし、参照位置管理手段140に仮想空間内
区画番号112の参照を通知し、処理装置170ヘプロ
グラム(Pl)の実行再開を通知する。
The space management means 130 determines the main memory partition number (n) to be loaded in the main memory, loads the partition with the virtual space partition number 112, and sends a reference to the virtual space partition number 112 to the reference position management means 140. and notifies the processing device 170 of resuming execution of the program (Pl).

参照位置記憶域141は、第2図で示す情報5つ構成さ
れ、トランザクション名201と当該ランザクジョンが
前回迄の実行で参照した仮想?間区画群の区画番号群2
02を組み合わせた参斐位置エントリの集合203を保
持し、参照値1管理手段140が作成管理し、−括ロー
ド手ト150より参照される。
The reference position storage area 141 is composed of five pieces of information shown in FIG. 2, including the transaction name 201 and the virtual information that the transaction referred to in previous executions. Partition number group 2 of interpartition group
A set 203 of reference position entries combining 02 is maintained, created and managed by the reference value 1 management means 140, and referenced by the bulk load method 150.

空間状態記憶域131は、第3図で示す情報」り構成さ
れ仮想空間110の区画が主記憶16Cにロードされて
いるが否がの状態を示す。空間管理手段130が作成管
理し、−括ロード手ε150と処理装置170がら参照
される。
The space state storage area 131 is configured with the information shown in FIG. 3 and indicates whether or not the partitions of the virtual space 110 have been loaded into the main memory 16C. The space management means 130 creates and manages the data, and the data is referenced by the bulk loader ε 150 and the processing device 170.

トランザクション管理手段120は、第4図て示すよう
に、処理41でトランザクション名1゜1を取り出し、
処理42でトランザクション名101よりプログラム(
Pl)を決定する。処理43は、−括ロード処理150
を呼び出し処理41で決定したトランザクション名10
1が1回前に使用した仮想空間110の区画群を一括ロ
ードする。処理44は、処理装置170に対してプログ
ラム(Pl)の実行を要求し、処理を終了する。
As shown in FIG. 4, the transaction management means 120 extracts the transaction name 1゜1 in process 41, and
In process 42, the program (
Pl) is determined. The process 43 is - bulk load process 150
Transaction name 10 determined in call process 41
1 loads the partition group of the virtual space 110 that was used once before at once. Process 44 requests the processing device 170 to execute the program (Pl), and ends the process.

一括ロード手段150は、第5図で示すように、判断5
1でトランザクション名101が参照位置記憶域141
内に存在するか否かを判定する。存在する場合は処理5
2へ移る。そうでない場合は、処理を終了する。処理5
2は区画番号群202から一個区画番号を取り出す。取
り出す区画番号が無い場合は、処理55に移る。そうで
ない場合は処理53に移る。処理53は処理52で取り
出された区画番号から空間状態記憶域131を参照して
区画番号に対応する仮想空間が主記憶にロードされてい
るかを判定する。ロードされている場合は、処理52以
降の処理が繰り返され、そうでない場合は処理54に移
る。処理54は、区画番号に対応する仮想空間の区画を
主記憶ヘロードする為の読み込みを発行し処理52へ戻
る。処理55は処理54で仮想空間の区画を主記憶ヘロ
ードする為に発行しなIOの完了を全て待ち合わせ処理
を終了する。
As shown in FIG.
1, the transaction name 101 is the reference location storage area 141
Determine whether it exists within. If it exists, process 5
Move on to 2. If not, the process ends. Processing 5
2 takes out one block number from the block number group 202. If there is no partition number to be extracted, the process moves to process 55. If not, the process moves to process 53. Process 53 refers to the space state storage area 131 based on the partition number retrieved in process 52 and determines whether the virtual space corresponding to the partition number has been loaded into the main memory. If it has been loaded, the processes after process 52 are repeated; otherwise, the process moves to process 54. Process 54 issues a read command to load the virtual space partition corresponding to the partition number into the main memory, and returns to process 52. Process 55 waits for the completion of all IOs that were not issued in order to load the partitions of the virtual space into the main memory in process 54, and ends the process.

処理装置170は、第6図で示すように処理61で命令
を取り出す。処理62は命令が終わりであれば処理を終
了し、そうでなければ処理63に移る。処理63は、命
令の実行アドレスを計算する。処理64は処理63で計
算されたアドレスから空間状態記憶域131を記憶して
実行アドレスが主記憶に存在するが否かを判定する。存
在する場合は処理66に移る。そうでない場合は処理6
5に移る。処理66では命令を実行し処理61以降の処
理を繰り返す。処理65は空間管理手段130を呼び出
し仮想空間から主記憶へのロードを要求し、実行を終了
する。
The processing device 170 retrieves an instruction in a process 61 as shown in FIG. Process 62 ends the process if the instruction is finished, otherwise moves to process 63. Process 63 calculates the execution address of the instruction. Process 64 stores the space state storage area 131 from the address calculated in process 63 and determines whether the execution address exists in the main memory. If it exists, the process moves to process 66. If not, process 6
Move on to 5. In process 66, the command is executed and the processes from process 61 onwards are repeated. The process 65 calls the space management means 130 to request loading from the virtual space to the main memory, and ends the execution.

空間管理手段130は、第7図で示すように処理71で
主記憶の空き部分をサーチする。処理72は処理71で
空きの主記憶区画が有るが否かを判定し、有る場合は処
理74に移る。そうでない場合は、処理73に移る。処
理73は再利用が少ないと判定される主記憶の適当な区
画を仮想空間へ戻し空きを作成する。処理74は処理7
1が処理73で決定された主記憶の区画へ仮想空間の区
画をロードする。処理75はトランザクション100か
参照した仮想空間の区画を通知するために参照位置管理
手段140を呼び出す。処理76は、処理装置170に
プログラム(Pl)の再実行を要求して処理を終了する
The space management means 130 searches for an empty part of the main memory in process 71 as shown in FIG. Process 72 determines whether or not there is a free main memory partition in process 71, and if there is, the process moves to process 74. If not, the process moves to process 73. Process 73 returns an appropriate section of the main memory that is determined to be less likely to be reused to the virtual space to create a free space. Process 74 is Process 7
1 loads the virtual space partition into the main memory partition determined in process 73. Process 75 calls reference position management means 140 to notify the virtual space partition referenced by transaction 100 . Process 76 requests the processing device 170 to re-execute the program (Pl) and ends the process.

参照位置管理手段140は、第8図に示すように処理8
1でトランザクション名101が参照位1記憶域141
に有るが否か判定し、有る場合は処理83に移る。そう
でない場合は処理82に移る。処理82は、トランザク
ション名101を新たな参照位置エントリとして参照位
置記憶域141に追加する。処理83は参照位置エント
リに通知された仮想区画番号が存在するが否かを判定し
存在する場合は処理を終了し、そうでない場合は、処理
84へ移る。処理84は仮想区画番号を参照位置エント
リに追加し処理を終了する。
The reference position management means 140 performs processing 8 as shown in FIG.
1, transaction name 101 is referenced to 1 storage area 141
It is determined whether or not there is, and if there is, the process moves to process 83. If not, the process moves to process 82. Process 82 adds the transaction name 101 to the reference position storage area 141 as a new reference position entry. Process 83 determines whether or not the virtual partition number notified in the reference position entry exists. If it exists, the process ends; otherwise, the process moves to process 84. Process 84 adds the virtual partition number to the reference position entry and ends the process.

上記一連の処理をもって、トランザクションの実行を最
小限度の主記憶で高速に実行することが出来る。
With the above series of processes, transactions can be executed at high speed with a minimum amount of main memory.

〔発明の効果〕〔Effect of the invention〕

本発明によって、トランザクションを実行するプロセス
が、仮想的なプロセス空間と主記憶空間を論理的な区画
でマツピングを行う仮想記憶方式を持ち、当該プロセス
が複数種別のトランザクションを実行する目的で複数の
プログラムから構成されるトランザクション処理システ
ムにおいてもトランザクションの実行を最低限度の主記
憶で高速に実行する効果がある。
According to the present invention, a process that executes a transaction has a virtual memory method that maps a virtual process space and a main memory space in logical partitions, and the process executes multiple programs for the purpose of executing multiple types of transactions. Even in a transaction processing system composed of , transactions can be executed at high speed with a minimum amount of main memory.

第9図に従来技術との比較例を示す。線91が命令を実
行している時間で、点線92が仮想的な空間から主記憶
ヘロードする時間を示している。
FIG. 9 shows a comparative example with the prior art. A line 91 indicates the time during which the instruction is executed, and a dotted line 92 indicates the time during which the instruction is loaded from the virtual space to the main memory.

第9図の例ではトランザクションTXIとTX2が交互
に実行され、それぞれを実行することにより他のトラン
ザクションが使用する主記憶上の区画が破棄される環境
(例えばTX2の実行でTXlが使用した主記憶の区画
が破棄される)を想定している。
In the example shown in Figure 9, transactions TXI and TX2 are executed alternately, and by executing each, the main memory partition used by other transactions is destroyed (for example, the main memory used by TXl in the execution of TX2 is It is assumed that the following partitions will be discarded).

従来の方式ではTX2実行後にTXIを再度実行すると
TX2の実行によってTXlが前回に実行で使用した主
記憶上の区画が破棄されているなめに再度仮想空間より
主記憶にロードする動作が必ず発生し、1回目の実行と
同じたけ(tl±t2)の時間がかかる。
In the conventional method, when TXI is executed again after TX2 is executed, the partition on the main memory that was used by TXl in the previous execution has been discarded by the execution of TX2, so the operation to load it from the virtual space to the main memory again occurs. , it takes the same amount of time (tl±t2) as the first execution.

しかし本方式では、−度の実行により参照する区画が記
憶されるためにTXIの二度目の実行では区画の一括ロ
ード処理が実行され(t5+t6)であったロード時間
がt5だけに短縮されている。
However, in this method, the partition to be referenced is memorized by execution twice, so in the second execution of TXI, bulk loading processing of partitions is executed, and the loading time from (t5+t6) is shortened to just t5. .

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例の構成図、第2図は参照位置
記憶域の構成図、第3図は主記憶状態記憶域の構成図、
第4図はトランザクション管理手段の流れ図、第5図は
一括ロード手段の流れ図、第6図は処理装置の流れ図、
第7図は空間管理手段の流れ図、第8図は参照位置管理
手段の流れ図、第9図は本発明の詳細な説明するための
図である。 100・・・トランザクション、110・・・仮想空間
、120・・・トランザクション管理手段、130・・
・空間管理手段、 0・・・参照位置管理手段、 0・・・ 一括ロード手段、 0・・・主記憶、 O・・・処理 装置170゜
FIG. 1 is a configuration diagram of an embodiment of the present invention, FIG. 2 is a configuration diagram of a reference position storage area, and FIG. 3 is a configuration diagram of a main memory state storage area.
FIG. 4 is a flowchart of the transaction management means, FIG. 5 is a flowchart of the batch loading means, and FIG. 6 is a flowchart of the processing device.
FIG. 7 is a flowchart of the space management means, FIG. 8 is a flowchart of the reference position management means, and FIG. 9 is a diagram for explaining the present invention in detail. 100... Transaction, 110... Virtual space, 120... Transaction management means, 130...
・Space management means, 0... Reference position management means, 0... Bulk loading means, 0... Main memory, O... Processing device 170°

Claims (1)

【特許請求の範囲】 トランザクションを実行するプロセスが、仮想的なプロ
セス空間と主記憶空間を論理的な区画でマッピングを行
う仮想記憶方式を有し、当該プロセスが複数種別のトラ
ンザクションを実行する目的で複数のプログラムから構
成されるトランザクション処理におけるトランザクショ
ン実行方式において、 トランザクションとプログラム管理するトランザクショ
ン管理手段と、 プログラム実行時に主記憶に存在しない空間をアクセス
すると割り込みを発生する処理装置と、当該割り込みに
て起動される仮想的なプロセス空間と主記憶空間をマッ
ピングする空間管理手段トランザクションと仮想的な空
間の使用位置を管理する参照位置管理手段と、 該参照位置から仮想的な空間を部分的に一括して主記憶
へロードする一括ロード手段とを有することを特徴とす
るトランザクション実行方式。
[Claims] A process that executes a transaction has a virtual memory system that maps a virtual process space and a main memory space in logical partitions, and the process executes multiple types of transactions. In a transaction execution method for transaction processing consisting of multiple programs, there is a transaction management means for managing transactions and programs, a processing device that generates an interrupt when a space that does not exist in main memory is accessed during program execution, and a processing device that is activated by the interrupt. A space management means for mapping a virtual process space and a main memory space to be processed; a reference position management means for managing transactions and a usage position of the virtual space; 1. A transaction execution method comprising: bulk loading means for loading into main memory.
JP2272790A 1990-10-11 1990-10-11 Transaction executing system Pending JPH04148340A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2272790A JPH04148340A (en) 1990-10-11 1990-10-11 Transaction executing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2272790A JPH04148340A (en) 1990-10-11 1990-10-11 Transaction executing system

Publications (1)

Publication Number Publication Date
JPH04148340A true JPH04148340A (en) 1992-05-21

Family

ID=17518781

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2272790A Pending JPH04148340A (en) 1990-10-11 1990-10-11 Transaction executing system

Country Status (1)

Country Link
JP (1) JPH04148340A (en)

Similar Documents

Publication Publication Date Title
JP2003167737A (en) Stack use method
JP2826028B2 (en) Distributed memory processor system
JPH06105440B2 (en) Main memory management method
EP0373790A2 (en) Data processing apparatus for saving and restoring
JPH04148340A (en) Transaction executing system
JP3616649B2 (en) Method and apparatus for enabling address lines to access upper memory areas
JPH03250223A (en) Memory clearing processing system for virtual computer
JP2572435B2 (en) Instruction execution method of demand paging computer
JPH03265027A (en) Initializing device for computer system
JPH03182945A (en) Transfer system for data in main storage
JPS5850383B2 (en) information processing equipment
JPS63750A (en) Memory control method
JPH03231343A (en) Memory space expansion system for microprocessor
JPS6359633A (en) Virtual computer system
JP2644857B2 (en) Data transfer method
JPH0830466A (en) Multitask switching control method
JP3022848B2 (en) Multitask task switching method and real-time operating system
JPS58142451A (en) Interruption control system
JPH04107634A (en) Memory data bypass control system
JPH03103959A (en) Dynamic input/output constitution change system
JPS62164134A (en) Hardware stack control system
JPH02257232A (en) Interruption processing program managing method
JPS61248152A (en) Procedure change controlling system
JPH03158943A (en) Buffer storage/transfer system
JPH01292432A (en) Subroutine execution system for memory bank