JP2002049519A - Device and method for information processing - Google Patents

Device and method for information processing

Info

Publication number
JP2002049519A
JP2002049519A JP2000236035A JP2000236035A JP2002049519A JP 2002049519 A JP2002049519 A JP 2002049519A JP 2000236035 A JP2000236035 A JP 2000236035A JP 2000236035 A JP2000236035 A JP 2000236035A JP 2002049519 A JP2002049519 A JP 2002049519A
Authority
JP
Japan
Prior art keywords
resource
information
record
update
information processing
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
JP2000236035A
Other languages
Japanese (ja)
Other versions
JP2002049519A5 (en
Inventor
Hiroyuki Konishi
宏幸 小西
Emi Takahashi
恵美 高橋
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.)
Nihon Unisys Ltd
Original Assignee
Nihon Unisys Ltd
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 Nihon Unisys Ltd filed Critical Nihon Unisys Ltd
Priority to JP2000236035A priority Critical patent/JP2002049519A/en
Publication of JP2002049519A publication Critical patent/JP2002049519A/en
Publication of JP2002049519A5 publication Critical patent/JP2002049519A5/ja
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PROBLEM TO BE SOLVED: To actualize processing wherein the consistency of data is secured without being aware of data properties when many kinds of small-amount data are controlled by using a common memory. SOLUTION: When the resource management of the common memory is performed, properties of a table 5 and initial values of records are defined with user indexes as to resources (table 5 and its records) that an application 11 uses and held as a library (user index table 4) which can specify a user index by the specification of the table number of a resource and a record number. At a request to use the resource whose table number and record number are specified, the resource is accessed according to the user index held in the library.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は情報処理装置および
その方法に関し、例えば、コンピュータシステムにおけ
るトランザクション処理に利用される共有メモリのリソ
ース管理を行う情報処理装置およびその方法に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to an information processing apparatus and method, and more particularly to an information processing apparatus and method for managing resources of a shared memory used for transaction processing in a computer system.

【0002】[0002]

【従来の技術】コンピュータシステムを用いる情報処理
において、クライアントサーバシステムが一般に普及
し、UNIX(登録商標)の性能向上とあいまって、Op
enOLTP(Open/On-Line Transaction Processing)を使用
したトランザクション処理システムが開発されている。
2. Description of the Related Art In information processing using a computer system, client-server systems have become popular, and the performance of UNIX (registered trademark) has been improved.
A transaction processing system using enOLTP (Open / On-Line Transaction Processing) has been developed.

【0003】UNIXが稼動する機器をサーバとして、大量
のユーザデータを管理および制御するリソース管理シス
テムには、通常、データベース管理システムが使用され
る。この場合のデータ処理はディスクアクセスを伴うた
め、少量ではあるが多種のデータを取り扱うトランザク
ション処理システムでは、処理効率が悪いという問題が
ある。
[0003] A database management system is usually used as a resource management system for managing and controlling a large amount of user data using a device on which UNIX operates as a server. Since the data processing in this case involves a disk access, there is a problem that the processing efficiency is poor in a transaction processing system that handles a small amount of various data.

【0004】上記の問題を解決する既存の技術として、
共有メモリを利用したメモリファイル化が知られてい
る。これは、データアクセス速度がディスクシステムよ
りも格段に速い半導体メモリ上においてリソース管理を
行う技術である。しかし、半導体メモリ上で処理が行わ
れるため、データベース管理システムと比べて、同時ア
クセスの管理が難しく、並行処理を行うトランザクショ
ン処理プログラムからのアクセスを可能にするには、デ
ータの整合性を確保しなければならない。
[0004] As existing techniques for solving the above problems,
Memory file creation using a shared memory is known. This is a technique for managing resources on a semiconductor memory whose data access speed is much higher than that of a disk system. However, since processing is performed on semiconductor memory, it is difficult to manage simultaneous access compared to a database management system. To enable access from a transaction processing program that performs parallel processing, data consistency must be ensured. There must be.

【0005】[0005]

【発明が解決しようとする課題】本発明は、共有メモリ
を用いた少量多品種のデータ制御において、データ属性
を意識することなく、データの整合性を確保した処理を
実現することを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to realize a process in which data consistency is ensured without being conscious of data attributes in data control of a small quantity and many kinds using a shared memory. .

【0006】さらに、高速アクセスを実現させるため、
共有メモリ上のリソース管理およびリカバリを効率的に
行うことを他の目的とする。
Further, in order to realize high-speed access,
Another object of the present invention is to efficiently manage and recover resources on a shared memory.

【0007】[0007]

【課題を解決するための手段】本発明は、前記の目的を
達成する一手段として、以下の構成を備える。
The present invention has the following configuration as one means for achieving the above object.

【0008】本発明にかかる情報処理装置は、共有メモ
リのリソースを管理する情報処理装置であって、アプリ
ケーションが利用するリソースとなるテーブルおよびレ
コードについて、テーブルの属性およびレコードの初期
値をパラメタにより定義する定義手段と、定義されたパ
ラメタを、リソースのテーブル番号およびレコード番号
の指定により特定可能なライブラリとして保持する保持
手段と、テーブル番号およびレコード番号が指定された
リソースの利用要求に対して、前記ライブラリに保持さ
れたパラメタに従い、リソースへアクセスするアクセス
手段とを有し、前記ライブラリは、所定のリソースを共
有するアプリケーションごとに設けられることを特徴と
する。
An information processing apparatus according to the present invention is an information processing apparatus for managing resources of a shared memory, and defines an attribute of a table and an initial value of a record by a parameter for a table and a record which are resources used by an application. Means for holding the defined parameters as a library that can be specified by specifying the table number and record number of the resource; and Access means for accessing resources according to the parameters held in the library, wherein the library is provided for each application sharing a predetermined resource.

【0009】また、属性が異なるリソースの同時制御を
行う情報処理装置であって、複数のアプリケーションに
共有されるリソースについて、そのリソースが非回復型
か回復型かを示す属性情報を含むリソース情報が記録さ
れるメモリと、ポインタにより、前記メモリに記録され
たリソース情報の特定を可能にするリソース管理テーブ
ルと、前記リソースに対するトランザクションを管理
し、アプリケーションによるリソースに対するトランザ
クションおよびトランザクションによるレコードロック
情報の特定を、識別情報により可能にする管理手段と、
アプリケーションのリソース利用要求に応じて、前記ポ
インタおよび前記リソース管理テーブルを利用してリソ
ース情報を特定し、利用要求されたリソースの属性を検
査する検査手段と、前記検査手段の検査結果に基づき、
利用要求されたリソースにアクセスするアクセス手段と
を有し、前記アクセス手段は、前記検査結果が前記非回
復型の属性を示す場合はリソースの読み込みまたは更新
を行い、前記回復型の属性を示す場合は、前記識別情報
により特定されるレコードロック情報からそのレコード
に対する更新データを検索して、検索された更新データ
の読み込みまたは更新を行うことを特徴とする。
In an information processing apparatus for simultaneously controlling resources having different attributes, for resource shared by a plurality of applications, resource information including attribute information indicating whether the resource is a non-recoverable type or a recoverable type is provided. A memory to be recorded, a resource management table that enables identification of resource information recorded in the memory by a pointer, a transaction for the resource, and a transaction for the resource by the application and a specification of the record lock information by the transaction. , Management means enabled by identification information,
In response to the resource use request of the application, the resource information is specified by using the pointer and the resource management table, and a check unit for checking the attribute of the requested resource, based on a check result of the check unit,
Access means for accessing the requested resource, wherein the access means reads or updates the resource when the inspection result indicates the non-recoverable attribute, and indicates the recoverable attribute. Is characterized by retrieving update data for the record from the record lock information specified by the identification information, and reading or updating the retrieved update data.

【0010】また、オンライン処理中の共有メモリにお
ける更新データをバックアップする情報処理装置であっ
て、定期的に共有メモリのダンプを採取して、採取され
たダンプを記録装置に出力する採取手段と、リソース内
における更新されたレコードに関する情報、並びに、ダ
ンプの採取時間およびリソースの更新時間を示す情報を
リソース管理テーブルに記録する記録手段とを有し、前
記採取手段は、前記リソース管理テーブルに記録された
ダンプの採取時間とリソースの更新時間とを比較して、
リソースの更新時間が遅い場合は更新されたレコードに
関する情報に基づき、更新されたレコードを対象とする
採取を行うことを特徴とする。
An information processing apparatus for backing up update data in the shared memory during online processing, a sampling means for periodically collecting a dump of the shared memory and outputting the collected dump to a recording device; Recording means for recording information on the updated record in the resource, and information indicating the dump collection time and the resource update time in a resource management table, wherein the collection means is recorded in the resource management table. Compare the dump collection time and the resource update time
When the update time of the resource is late, sampling is performed on the updated record based on the information on the updated record.

【0011】本発明にかかる情報処理方法は、共有メモ
リのリソースを管理する情報処理方法であって、アプリ
ケーションが利用するリソースとなるテーブルおよびレ
コードについて、テーブルの属性およびレコードの初期
値をパラメタにより定義し、定義されたパラメタを、リ
ソースのテーブル番号およびレコード番号の指定により
特定可能なライブラリとして保持し、テーブル番号およ
びレコード番号が指定されたリソースの利用要求に対し
て、前記ライブラリに保持されたパラメタに従い、リソ
ースにアクセスする各ステップを有し、前記ライブラリ
は、所定のリソースを共有するアプリケーションごとに
設けられることを特徴とする。
An information processing method according to the present invention is an information processing method for managing resources of a shared memory, wherein a table attribute and an initial value of a record are defined by parameters for a table and a record which are resources used by an application. Then, the defined parameters are held as a library that can be specified by specifying the table number and record number of the resource, and the parameter stored in the library is used in response to a use request of the resource with the specified table number and record number. , And wherein the library is provided for each application sharing a predetermined resource.

【0012】また、複数のアプリケーションに共有され
るリソースについて、そのリソースが非回復型か回復型
かを示す属性情報を含むリソース情報が記録されるメモ
リ、ポインタにより、前記メモリに記録されたリソース
情報の特定を可能にするリソース管理テーブル、並び
に、前記リソースに対するトランザクションを管理し、
アプリケーションによるリソースに対するトランザクシ
ョンおよびトランザクションによるレコードロック情報
の特定を、識別情報により可能にする管理手段を有し、
前記属性が異なるリソースの同時制御を行う情報処理方
法であって、アプリケーションのリソース利用要求に応
じて、前記ポインタおよび前記リソース管理テーブルを
利用してリソース情報を特定し、利用要求されたリソー
スの属性を検査し、その検査結果に基づき、利用要求さ
れたリソースにアクセスする各ステップを有し、前記ア
クセスにより、前記検査結果が前記非回復型の属性を示
す場合はリソースの読み込みまたは更新が行われ、前記
回復型の属性を示す場合は、前記識別情報により特定さ
れるレコードロック情報からそのレコードに対する更新
データが検索され、検索された更新データの読み込みま
たは更新が行われることを特徴とする。
[0012] Further, for a resource shared by a plurality of applications, a resource in which resource information including attribute information indicating whether the resource is a non-recoverable type or a recoverable type is recorded. A resource management table that allows identification of, and manages transactions for the resources,
A management unit that enables identification of the transaction for the resource by the application and the record lock information by the transaction,
An information processing method for simultaneously controlling resources having different attributes, wherein resource information is specified using the pointer and the resource management table in response to a resource use request of an application, and the attribute of the resource requested to be used is specified. Inspecting, and based on the inspection result, each step of accessing the resource requested to be used, and when the inspection result indicates the non-recoverable attribute, the resource is read or updated. When the recovery type attribute is indicated, the update data for the record is searched from the record lock information specified by the identification information, and the searched update data is read or updated.

【0013】また、オンライン処理中の共有メモリにお
ける更新データをバックアップする情報処理方法であっ
て、定期的に共有メモリのダンプを採取して、採取され
たダンプを記録装置に出力し、リソース内における更新
されたレコードに関する情報、並びに、ダンプの採取時
間およびリソースの更新時間を示す情報をリソース管理
テーブルに記録する各ステップを有し、前記ダンプ採取
ステップは、前記リソース管理テーブルに記録されたダ
ンプの採取時間とリソースの更新時間とを比較して、リ
ソースの更新時間が遅い場合は更新されたレコードに関
する情報に基づき、更新されたレコードを対象とする採
取を行うことを特徴とする。
An information processing method for backing up update data in a shared memory during online processing, wherein a dump of the shared memory is periodically collected, the collected dump is output to a recording device, and the Information relating to the updated record, and each step of recording information indicating a dump collection time and a resource update time in a resource management table, wherein the dump collection step includes a step of recording the dump recorded in the resource management table. The collection time is compared with the update time of the resource, and when the update time of the resource is late, the collection of the updated record is performed based on the information on the updated record.

【0014】[0014]

【発明の実施の形態】以下、本発明にかかる一実施形態
の情報処理を図面を参照して詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, information processing according to an embodiment of the present invention will be described in detail with reference to the drawings.

【0015】[概要]図1は本実施形態の情報処理にお
ける共有メモリリソース管理システムを説明する図、図
2は共有メモリのリソース管理システムにおけるトラン
ザクション管理、テーブル管理およびデータテーブル管
理の一例を示す図、図3は更新データのバックアップを
説明する図である
[Overview] FIG. 1 is a diagram for explaining a shared memory resource management system in information processing according to the present embodiment.
2 is a diagram illustrating an example of transaction management, table management, and data table management in a shared memory resource management system, and FIG. 3 is a diagram illustrating backup of updated data.

【0016】本実施形態は、上述した問題を解決するた
めに、少量ではあるが、アクセス頻度の高いユーザデー
タをユーザテーブルの形態で共有メモリ上に作成し、そ
れを維持・管理するメモリリソースマネージャ(MRM: Me
mory Resource Manager)を使用する。
In the present embodiment, in order to solve the above-mentioned problem, a memory resource manager that creates a small amount of frequently accessed user data in the form of a user table in a shared memory, and maintains and manages the created user data. (MRM: Me
mory Resource Manager).

【0017】ユーザテーブル5のデータには、継続して
維持・管理が必要なものと、制御情報のようにデータ内
容が固定で初期値から変更されないもの、および、変更
しても継続の必要がないもの(言い換えれば、毎回初期
値でよいもの)が混在する。そこで、ユーザテーブル5
のデータに、障害時のデータリカバリが可能なタイプ
(回復型)、および、リカバリ不要のタイプ(非回復
型)を規定し、ユーザテーブル5に対するユーザインデ
ックステーブル4にその情報(パラメタ)をもつ。加え
て、MRMに、オープン環境でのリソースマネージャとし
ての役割を担わせるため、接続管理テーブル2およびト
ランザクション管理テーブル3を設け、X/Open DTPモデ
ル(分散トランザクション処理モデル)において定義さ
れるRM(ResourceManager)としての機能にも対応させ
る。
The data in the user table 5 need to be continuously maintained and managed, the data such as control information has a fixed data content that is not changed from an initial value, and the data needs to be continued even if changed. There are some that do not exist (in other words, the ones that can be initialized each time). So user table 5
A type (recovery type) that enables data recovery in the event of a failure and a type that does not require recovery (non-recovery type) are specified for the data, and the information (parameters) is stored in the user index table 4 for the user table 5. In addition, a connection management table 2 and a transaction management table 3 are provided to make the MRM play a role as a resource manager in the open environment, and the RM (ResourceManager) defined in the X / Open DTP model (distributed transaction processing model) ) Function.

【0018】[MRM]MRMはトランザクション処理におけ
る多種多様なデータを簡単な操作で取り扱える必要があ
る。この多種多様なデータには、即時更新データ、遅延
更新データ、2フェーズコミット(2PC: Two Phase Commi
t)対応データ、および、1フェーズコミット(1PC: One P
hase Commit)対応データなどが含まれる。すなわち、同
一プロセス内で即時更新および遅延更新データを同時に
取り扱うことができ、2PCデータを扱うプロセス、並び
に、1PCデータを扱うプロセスによる同一のMRMに対する
アクセスを可能にすることである。
[MRM] MRM needs to be able to handle various kinds of data in transaction processing by simple operations. This variety of data includes immediate update data, delayed update data, two-phase commit (2PC: Two Phase Commi
t) Corresponding data and one-phase commit (1PC: One P
hase Commit) data. That is, the immediate update and the delayed update data can be handled simultaneously in the same process, and the process for handling 2PC data and the process for handling 1PC data can access the same MRM.

【0019】MRMは、上記の機能を実現するため、制御
テーブルの中心にMRMシステム管理テーブル1を備える。
そして、MRMにコネクトしたプロセスIDを接続管理テー
ブル2のエントリとして管理する。並びに、もしトラン
ザクションタイプであればトランザクションIDをトラン
ザクション管理テーブル3のエントリとして管理し、使
用する回復型テーブルへの更新データを管理する。
The MRM has an MRM system management table 1 at the center of the control table to realize the above functions.
Then, the process ID connected to the MRM is managed as an entry of the connection management table 2. If it is a transaction type, the transaction ID is managed as an entry in the transaction management table 3, and the update data to the recovery type table to be used is managed.

【0020】MRMへのアクセスには簡単なAPI(Applicati
on Program Interface)11が提供される。API 11は、そ
れぞれ並行かつ同時に、MRMが制御する共有メモリテー
ブルをアクセスする。回復型の更新データは、MRMサー
バプロセス13により、そのAfter Looks(図2に示すレコ
ード更新情報テーブル7の更新データ)がAUDIT更新ログ
15としてファイルに出力される。
To access the MRM, a simple API (Applicati
on Program Interface) 11 is provided. The API 11 accesses the shared memory table controlled by the MRM concurrently and simultaneously. The recovery type update data is transmitted to the AUDIT update log by the MRM server process 13 after its looks (update data of the record update information table 7 shown in FIG. 2).
Output to file as 15.

【0021】また、共有メモリ上のテーブルデータを定
期的にファイルにダンプするMRMサイクリックダンププ
ロセス14が提供される。このプロセスにより、ダンプフ
ァイル8およびAUDIT更新ログ15により行われるリカバリ
処理が効率化される。なお、このプロセスは、オンライ
ン処置を中断させることなく、テーブルデータをファイ
ルにダンプすることが可能である。
Also provided is an MRM cyclic dump process 14 for periodically dumping table data on the shared memory to a file. By this process, the recovery process performed by the dump file 8 and the AUDIT update log 15 is made more efficient. Note that this process can dump the table data to a file without interrupting the online action.

【0022】なお、上記のプロセス13および14は、MRM
モニタプロセス12により監視され、制御される。従っ
て、ユーザは、提供されるMRMのAPI 11を呼び出すこと
で、遅延更新型および即時更新型のデータを容易に扱う
ことができる。
It should be noted that the above processes 13 and 14 are based on the MRM
Monitored and controlled by monitor process 12. Therefore, the user can easily handle the delayed update type and the immediate update type data by calling the provided MRM API 11.

【0023】上記のMRMの開発で生じた幾つかの課題お
よび問題点を列挙する。
Some problems and problems arising in the development of the above MRM are listed.

【0024】[1]回復型および非回復型のデータテー
ブルの同時制御 通常のデータベース管理システムは、RMに対応するため
Xaインタフェイスをサポートするが、回復不要の非回復
型データは取り扱わず、すべて回復型データとして管理
する。今回開発するMRMは、回復型および非回復型のデ
ータが一つのプログラムから同時かつ並行してアクセス
されることを考慮して、共有メモリを制御する必要があ
る。
[1] Simultaneous control of recovery-type and non-recovery-type data tables A normal database management system is compatible with RM.
It supports the Xa interface, but does not handle non-recoverable data that does not require recovery, and manages all as recoverable data. The MRM to be developed this time needs to control the shared memory in consideration of the fact that recoverable and non-recoverable data are accessed simultaneously and concurrently from one program.

【0025】[2]メモリの有効活用 共有メモリ上に展開するデータテーブルの配置を効率的
に行う必要がある。共有メモリのメモリサイズの最大値
は、UNIX OSのカーネルパラメタで制限されているた
め、その最大値に合わせて、共有メモリ上へデータテー
ブルの展開を行わなくてはならない。
[2] Effective Use of Memory It is necessary to efficiently arrange data tables to be developed on the shared memory. Since the maximum value of the memory size of the shared memory is limited by the kernel parameter of the UNIX OS, the data table must be expanded on the shared memory according to the maximum value.

【0026】[3]ロック制御 トランザクション処理により、同時かつ並行に、複数の
プログラムからデータが参照され更新される。これは、
効率的な排他制御、および、プログラム異常終了時のロ
ック解消が必須であることを示す。また、MRMの処理効
率の向上を図りマルチスレッド化を行うため、マルチス
レッド対応の排他制御を行う必要がある。
[3] Lock Control Data is referred to and updated from a plurality of programs simultaneously and concurrently by transaction processing. this is,
This indicates that efficient exclusion control and lock release at the time of abnormal termination of a program are essential. Further, in order to improve the processing efficiency of the MRM and perform multi-threading, it is necessary to perform exclusive control corresponding to multi-threading.

【0027】[4]簡易で効率的な処理 ユーザ任意テーブルの観点から、ユーザが独自かつ容易
にデータを定義することができ、簡単なインタフェイス
を介してデータを参照、更新することができる必要があ
る。さらに、高速アクセスを実現させるため、共有メモ
リ上だけにおける管理およびリカバリ対応が必要にな
る。
[4] Simple and Efficient Processing From the viewpoint of a user-arbitrary table, it is necessary for a user to be able to independently and easily define data, and to be able to refer to and update data through a simple interface. There is. Furthermore, in order to realize high-speed access, management and recovery only on the shared memory are required.

【0028】[メモリ管理テーブルの仕組み]図2に示
すシステム管理テーブル1によりMRM全体が制御され、ユ
ーザからのMRMアクセスは、すべてシステム管理テーブ
ル1経由により行われる。
[Mechanism of Memory Management Table] The entire MRM is controlled by the system management table 1 shown in FIG. 2, and all MRM accesses from the user are performed via the system management table 1.

【0029】[1]システム管理テーブル1の管理情報 MRMに接続したプロセス単位に、以下の情報などがシス
テム管理テーブル1によって管理される。 接続管理テーブル2へのポインタ トランザクション管理テーブル3へのポインタ ユーザインデックステーブル4へのポインタ
[1] Management Information of System Management Table 1 The following information is managed by the system management table 1 for each process connected to the MRM. Pointer to connection management table 2 Pointer to transaction management table 3 Pointer to user index table 4

【0030】[2]接続管理テーブル2の管理情報 MRMに接続したプロセス単位に、以下の情報などが接続
管理テーブル2によって管理される。 MRMを呼び出したプログラムのプロセスID(PID) MRMを呼び出したプログラムのスレッドID(TID) 接続対象のRMのID(RMID)、ここではMRMのID Xa_Infor文字列(ただし、Xaインタフェイスのプロセス
のみ)
[2] Management Information of Connection Management Table 2 The following information is managed by the connection management table 2 for each process connected to the MRM. The process ID (PID) of the program that called the MRM The thread ID (TID) of the program that called the MRM The ID (RMID) of the RM to be connected, here the ID of the MRM Xa_Infor String (however, only the process of the Xa interface)

【0031】なお、Xa_Infor文字列は、グローバルトラ
ンザクションの管理、MRM、および、MRM以外のリソース
マネージャに対するコミット制御を行うためのもので、
外部管理プログラムが、リソースをオープンするときに
使う情報であり、一般にデータベース名やアクセスモー
ドを文字列で指定する。本実施形態においてはデータベ
ース名だけの指定になる。
The Xa_Infor character string is used to manage a global transaction, perform MRM, and perform commit control for resource managers other than MRM.
Information used when an external management program opens a resource. Generally, a database name and an access mode are specified by character strings. In the present embodiment, only the database name is specified.

【0032】 [3]トランザクション管理テーブル3の管理情報 トランザクション単位に、以下の情報などがトランザク
ション管理テーブル3によって管理される。 PID TID トランザクションID(XID) A/L(After Looks)を格納する共有メモリのID(ALID)(つ
まりレコード更新情報テーブル7の共有メモリID) 処理ステータス 2PC(Xa)または1PCの識別情報 (ロックを行った回復型テーブル番号、レコード番号を
保持する)ロック情報テーブル6へのポインタ
[3] Management Information of Transaction Management Table 3 The following information is managed by the transaction management table 3 for each transaction. PID TID Transaction ID (XID) ID of shared memory that stores A / L (After Looks) (ALID) (that is, shared memory ID of record update information table 7) Processing status 2PC (Xa) or 1PC identification information (lock Holds the recovery type table number and record number that were performed) Pointer to lock information table 6

【0033】 [4]ユーザインデックステーブル4の管理情報 テーブル番号単位に、以下の情報などがユーザインデッ
クステーブル4によって管理される。 格納するレコード数 レコード長 テーブルタイプ(回復型/非回復型) データを格納する共有メモリのID ロック領域のオフセット データ領域のオフセット
[4] Management Information of User Index Table 4 The following information is managed by the user index table 4 for each table number. Number of records to be stored Record length Table type (recoverable / non-recoverable) ID of shared memory for storing data Offset of lock area Offset of data area

【0034】[5]ロック情報テーブル6の管理情報 ロック/更新を行った回復型テーブルの情報などがロッ
クテーブル6によって管理される。 テーブル番号 レコード番号 A/L書込ポインタ
[5] Management Information of Lock Information Table 6 Information of the locked / updated recovery type table is managed by the lock table 6. Table number Record number A / L write pointer

【0035】 [7]レコード更新情報テーブル7の管理情報 更新を行った回復型テーブルの更新データが管理され
る。 更新データ長 更新データ
[7] Management Information of Record Update Information Table 7 Update data of the updated recovery type table is managed. Update data length Update data

【0036】[処理の仕組み]MRMは、トランザクショ
ン処理プログラムからアクセスされるため、効率的かつ
堅牢なロック制御の仕組みが必要である。
[Processing Mechanism] Since the MRM is accessed from the transaction processing program, an efficient and robust lock control mechanism is required.

【0037】[1]ロック制御の方法 ロック制御方法としては、メモリの有効活用、他システ
ムへの移植性、マルチスレッド対応などの観点からMute
x Lockの仕組みを採用するが、セマフォ(semaphore)と
比較して有利な項目である。
[1] Lock Control Method As a lock control method, Mute is used from the viewpoints of effective use of memory, portability to other systems, multithread support, and the like.
It employs the x Lock mechanism, which is an advantage compared to semaphores.

【0038】なお、Mutex Lockとは、相互排他ロックの
ことで、プロセスやスレッドの実行を直列化したい場合
に、コードの危険領域が複数のプロセスまたはスレッド
によって同時に実行されないようにする仕組みである。
既にロックされている場合は、そのロックが解除される
まで待機状態になり、ロックが獲得できた場合は更新な
どの処理を行い、ロックを解除する。 ロックのリソース管理が共有メモリだけ可能、仕掛けが
単純 マルチスレッド上から簡単に使用可能 ロック処理がより高速 POSIX(Portable Operating System environment-Intera
ctive eXecutive)準拠かつWIN32でも同等機能があり、
移植性に優れる
The Mutex Lock is a mutual exclusion lock, and is a mechanism for preventing the risky area of the code from being simultaneously executed by a plurality of processes or threads when serializing the execution of a process or a thread.
If the lock has already been obtained, the process waits until the lock is released, and if the lock is acquired, processing such as updating is performed to release the lock. Lock resource management is only possible with shared memory, and the mechanism is simple. It can be easily used on multi-threads. Lock processing is faster POSIX (Portable Operating System environment-Intera
ctive eXecutive) compliant and has the same function in WIN32,
Excellent portability

【0039】[2]ロック制御の仕組み ロックの最小単位をレコードとし、各データテーブル単
位に、そのロック情報を管理する。更新データ(A/L)の
制御のために、トランザクション管理テーブル3からリ
ンクされているロック情報テーブル6をアクセスする。
レコードロックおよび解除の処理は、このデータテーブ
ル単位のロック情報で行う。
[2] Lock Control Mechanism The minimum unit of lock is a record, and the lock information is managed for each data table. For controlling the update data (A / L), the lock information table 6 linked from the transaction management table 3 is accessed.
The process of record lock and release is performed based on the lock information for each data table.

【0040】ユーザから、あるテーブルのn番目のレコ
ードに対してロック付きの読込要求が発行された場合、
MRMシステム管理テーブル1を経由して、ユーザインデッ
クステーブル4の該当レコードを検索し、そのテーブル
番号に格納された共有メモリIDによって、展開されたデ
ータテーブル(ユーザテーブル5に含まれる)を検索す
る。そして、データテーブルに設定されたロック管理領
域から、指定されたレコード番号のロック状態をチェッ
クする。
When a user issues a read request with a lock to the n-th record of a table,
The corresponding record of the user index table 4 is searched through the MRM system management table 1, and the expanded data table (included in the user table 5) is searched by the shared memory ID stored in the table number. Then, the lock state of the designated record number is checked from the lock management area set in the data table.

【0041】ロック管理領域には、OSが制御するMutex
ロック領域情報およびMutexロック情報のほか、MRMシス
テムが制御を行うための情報として、ロックしたPIDお
よびTID、さらに、ロックの設定/解除を表すロックフラ
ッグ(LK-F)などがある。
The Mutex controlled by the OS is in the lock management area.
In addition to the lock area information and Mutex lock information, information for controlling the MRM system includes a locked PID and TID, and a lock flag (LK-F) indicating lock setting / release.

【0042】MRMは、ロック状態のチェックとして、ロ
ック管理領域を検索し、LK-Fが設定されているか否かを
確認する。LK-Fが設定されていればロック中、設定され
ていなければアンロックと判断する。
As a check of the lock state, the MRM searches the lock management area and checks whether LK-F is set. If LK-F is set, it is determined to be locked. If not, it is determined to be unlocked.

【0043】OSのMutex領域情報およびMutexロック情報
により判断しないのは、ロックを設定していたプログラ
ム(プロセス)が、自から設定したロックを解除せずに
異常終了した場合、そのロック情報が残ってしまうから
である。言い換えれば、このロック情報が残ってしまう
問題を回避するために、MRMがロック状態をチェックす
るためのLK-Fを設けてある。
The reason why the determination is not made based on the Mutex area information and the Mutex lock information of the OS is that if the program (process) setting the lock terminates abnormally without releasing the lock set by itself, the lock information remains. It is because. In other words, in order to avoid the problem that the lock information remains, an LK-F for the MRM to check the lock state is provided.

【0044】MRMは、ロック要求を受けると、該当レコ
ードがロック状態に設定されていないことを確認し、Mu
tex Lock→LK-Fの設定→Mutex Unlockの一連の処理を行
う。この状態でロック情報が残った場合のロックの解除
方法は、MRMの内部スレッドが一定間隔でMRMシステム管
理テーブル1からリンクしている接続管理テーブル2のPI
Dおよびロック管理領域のPIDを検索する。そして、検索
したPIDに対応するプロセスが終了していた場合は異常
終了と判断して、そのレコードのLK-Fを解除する。これ
により、そのレコードはアンロック状態になり、他のプ
ロセスからのアクセスが可能になる。
Upon receiving the lock request, the MRM confirms that the record is not set to the locked state,
Performs a series of processing from tex Lock → LK-F setting → Mutex Unlock. If the lock information remains in this state, the lock is released by using the PI of the connection management table 2 where the internal thread of the MRM is linked from the MRM system management table 1 at regular intervals.
Search D and PID of lock management area. If the process corresponding to the searched PID has been completed, it is determined that the process has ended abnormally, and the LK-F of the record is released. As a result, the record is unlocked and can be accessed from another process.

【0045】なお、ロック制御は、回復型および非回復
型のテーブルについて同一である。
The lock control is the same for the recovery type and non-recovery type tables.

【0046】[3]回復型/非回復型のロック制御 本実施形態のMRMは、トランザクション処理に必要にな
る制御情報を管理することを目的とする。そのため、遅
延更新型(回復型)のデータと即時更新型(非回復型)
のデータの混在管理が可能である。
[3] Recoverable / Non-Recovery Lock Control The MRM of the present embodiment aims to manage control information required for transaction processing. Therefore, delayed update type (recovery type) data and immediate update type (non-recovery type)
Data can be mixedly managed.

【0047】遅延更新型のデータは、トランザクション
開始(TRBegin)によって更新が宣言され、トランザクシ
ョン終了(CommitまたはRollback)によって実際に更新
される、あるいは、更新データがキャンセルされる。従
って、更新データは、トザンザクション終了までAfter
Looksとして保持される。一方、即時更新型のデータ
は、データの更新要求と同時に即時更新され、非回復型
として取り扱われる。
The delayed update type data is declared to be updated at the start of a transaction (TRBegin) and is actually updated at the end of a transaction (Commit or Rollback), or the updated data is canceled. Therefore, the updated data will not be updated until the end of the transaction.
Retained as Looks. On the other hand, the immediate update type data is immediately updated at the same time as the data update request, and is treated as a non-recovery type.

【0048】回復型および非回復型のデータは同一プロ
セスから取り扱うことができる。また、回復型か非回復
型かを示すテーブル属性は、ユーザインデックステーブ
ル4で管理され、属性に応じて次の処理が施される。
Recoverable and non-recoverable data can be handled from the same process. Further, table attributes indicating the recovery type or the non-recovery type are managed in the user index table 4, and the following processing is performed according to the attribute.

【0049】●ロック付き読込処理 ロック付き読込処理は、基本的に、回復型も非回復型も
同様な処理である。
Reading Process with Lock The reading process with lock is basically the same for both the recovery type and the non-recovery type.

【0050】読み込み対象のテーブル/レコードをMutex
Lockし、LK-Fを設定した後、MutexLockを解除する。ロ
ック管理方法には、回復型と非回復型とで次の違いがあ
る。
The table / record to be read is Mutex
Lock and set LK-F, then release MutexLock. The lock management method has the following differences between the recovery type and the non-recovery type.

【0051】回復型の場合は、さらにロック情報テーブ
ル6にその情報(PID、テーブル番号、レコード番号な
ど)をエントリする。これにより、回復型では、更新用
ロックとして管理され、トランザクションが確定する
(CommitまたはRollback)までロックが保持される。該
当レコードが同一トランザクション内で既に更新されて
いた場合は、レコード更新情報テーブル7(詳細は後述
する)からそのレコードが読み込まれる。すなわち、更
新済のレコードが読み込まれることになる。
In the case of the recovery type, the information (PID, table number, record number, etc.) is further entered in the lock information table 6. As a result, in the recovery type, the lock is managed as an update lock, and the lock is held until the transaction is confirmed (Commit or Rollback). If the record has already been updated in the same transaction, the record is read from the record update information table 7 (details will be described later). That is, the updated record is read.

【0052】また、非回復型の場合は、該当レコードが
ロックされ、ロック解除要求によりロックが解除され
る。
In the case of the non-recovery type, the corresponding record is locked, and the lock is released by a lock release request.

【0053】さらに、ロック付き読込処理で設定された
ロックは、該当レコードの更新処理において自動的に解
除される。
Further, the lock set in the read processing with the lock is automatically released in the update processing of the record.

【0054】●更新処理 更新処理は、回復型と非回復型とでは大きく異なる。Update Processing The update processing differs greatly between the recovery type and the non-recovery type.

【0055】非回復型は、即時更新され、ロックも解除
されてユーザに戻る。つまり、更新と同時にロック解除
も更新用APIによって行われる。
The non-recovery type is immediately updated, the lock is released, and the user returns. That is, the lock is released by the update API at the same time as the update.

【0056】一方、回復型は、遅延更新になり、更新内
容が更新データ(After Looks)としてレコード更新情報
テーブル7に格納される。レコード更新情報テーブル7
は、トランザクション単位に、トランザクション管理テ
ーブル3によって管理される。回復型の実際の更新は、
トランザクションが確定した時点で行われる。つまり、
遅延更新であるから、更新用APIは更新データ(After Lo
oks)への格納しか行わず、ユーザがコミット用APIを後
に呼び出すと、その時点で実際の更新と同時にロック解
除が行われる。
On the other hand, the recovery type is a delayed update, and the update content is stored in the record update information table 7 as update data (After Looks). Record update information table 7
Are managed by the transaction management table 3 in transaction units. The actual resilient update is
Performed when the transaction is finalized. That is,
Since the update is delayed, the update API uses the update data (After Lo
oks), and when the user calls the commit API later, the lock is released at the same time as the actual update.

【0057】●ロックの解除 非回復型は、上述したように、ロック解除要求、また
は、同一レコードの更新要求によりロックが解除され
る。つまり、ユーザテーブル5のLK-Fが設定されている
ロック情報を検索し、LK-Fを解除する。
Release of Lock In the non-recovery type, as described above, the lock is released by a lock release request or a request for updating the same record. That is, the lock information in which the LK-F is set in the user table 5 is searched, and the LK-F is released.

【0058】回復型のロックは、トランザクションの確
定によって解除される。トランザクション管理テーブル
3からロック情報テーブル6が検索され、設定されている
ロック情報が解放される。この際、保持されている更新
データ(After Looks)は、トランザクションの確定方法
(CommitまたはRollback)により、更新されるかキャン
セル(破棄)される。
The recovery type lock is released by confirming the transaction. Transaction management table
The lock information table 6 is searched from 3 and the set lock information is released. At this time, the held update data (After Looks) is updated or canceled (discarded) by the transaction confirmation method (Commit or Rollback).

【0059】[4]2PCおよび1PC制御 本実施形態のMRMは、Xaインタフェイスをサポートす
る。すなわち、2PCに対応している。また、他のデータ
ベースとは独立した制御を可能にする1PC機能も合わせ
もつ。これらの機能は、プロセス単位にXaインタフェイ
ス準拠のトランザクション処理か、独自のローカルトラ
ンザクション処理かを宣言することで、使い分けること
ができる。使用宣言が必要なことから、これらの機能
は、プロセス単位で使い分ける必要があり、混在使用は
許されない。
[4] 2PC and 1PC Control The MRM of this embodiment supports the Xa interface. That is, it corresponds to 2PC. It also has a 1PC function that enables control independent of other databases. These functions can be used properly by declaring transaction processing conforming to the Xa interface or original local transaction processing for each process. Since a use declaration is required, these functions must be used separately for each process, and mixed use is not allowed.

【0060】●2PC 本実施形態のMRMがサポートする2PCは、X/OPENのDTPモ
デルで定められたXaインタフェイス仕様に準拠し、Xa_o
pen/Xa_close/Xa_start/Xa_end/Xa_rollback/Xa_prepar
e/Xa_commit/Xa_recover/Xa_forgetの各インタフェイス
をサポートする。
2PC The 2PC supported by the MRM of the present embodiment conforms to the Xa interface specification defined by the X / OPEN DTP model, and Xa_o
pen / Xa_close / Xa_start / Xa_end / Xa_rollback / Xa_prepar
Supports each interface of e / Xa_commit / Xa_recover / Xa_forget.

【0061】トランザクション管理テーブル3により、
そのトランザクションID(XID)を管理し、以降、トラン
ザクションマネージャ(TM)からのXaインタフェイスを制
御する。Xa_prepareで更新データをAUDIT更新ログファ
イルへ書き込み、以降、Xa_commitに備える。Xa_commit
要求に対しては、AUDIT更新ログの確定情報の書き込
み、および、共有メモリのユーザテーブル5への実際の
更新処理を行う。Xa_rollbackが要求されると、AUDIT更
新ログにRollbackの情報を書き込み、更新処理のキャン
セルをログに残す。共有メモリ上では、更新データが破
棄され、更新前の状態が保証される。
According to the transaction management table 3,
It manages the transaction ID (XID) and thereafter controls the Xa interface from the transaction manager (TM). Write the update data to the AUDIT update log file with Xa_prepare, and then prepare for Xa_commit. Xa_commit
In response to the request, write the confirmation information of the AUDIT update log and perform the actual update processing to the user table 5 in the shared memory. When Xa_rollback is requested, the Rollback information is written to the AUDIT update log, and the cancellation of the update process is recorded in the log. On the shared memory, the update data is discarded, and the state before the update is guaranteed.

【0062】●1PC ローカルトランザクション機能をもち、Xa_commit要求
に対して、AUDIT更新ログへの更新データの書き込み、
および、共有メモリ上での実際の更新が同時に行われ
る。Xa_rollback要求に対しては、保持していた更新デ
ータが破棄され、共有メモリの内容はそのままの状態で
ある。
● 1PC Has a local transaction function, writes update data to the AUDIT update log in response to a Xa_commit request,
In addition, the actual update on the shared memory is performed at the same time. In response to the Xa_rollback request, the held update data is discarded, and the contents of the shared memory remain unchanged.

【0063】[5]マルチスレッド制御 本実施形態のMRMは、共有メモリをデータベース(RM:
リソースマネージャ)とするもので、その目的の一つは
処理効率の向上である。そのため、MRMサーバは各コマ
ンド単位(各API単位)にマルチスレッドで処理され、
複数の処理が同時に動作するよう考慮されている。
[5] Multi-Thread Control The MRM of this embodiment stores a shared memory in a database (RM:
Resource manager), and one of its purposes is to improve processing efficiency. Therefore, the MRM server is processed in multi-threads for each command (each API),
It is considered that a plurality of processes operate simultaneously.

【0064】[6]効率的なダンプ処理 本実施形態のMRMは、共有メモリのデータを定期的にフ
ァイルにダンプし、障害に備えるバックアップ機能を提
供する。図4はMRMサイクリックダンププロセス14の処理
を説明する図である。
[6] Efficient Dump Processing The MRM of the present embodiment periodically dumps data in the shared memory to a file, and provides a backup function in preparation for a failure. FIG. 4 is a diagram for explaining the processing of the MRM cyclic dump process 14.

【0065】このダンプ機能は、MRMが稼動中はメモリ
上に常駐し、指定された時間に、オンライン処理中に関
わらず、共有メモリのダンプを採取する。ダンプされた
データは、更新時に採取されたAUDIT更新ログファイル1
5の更新内容とマージされながら、リカバリ元のデータ
になる。
This dump function resides in the memory while the MRM is operating, and collects a dump of the shared memory at a designated time regardless of whether the online processing is being performed. The dumped data is AUDIT update log file 1 collected at the time of update
Becomes the recovery source data while being merged with the updated contents of 5.

【0066】ダンプ処理は、共有メモリの内容をバッフ
ァにコピーして出力することから、共有メモリが大きけ
れば大きいほどCPUの処理時間を要し、オンンイン処理
に支障を来たしかねない。これを防ぐため、本実施形態
のMRMは、共有メモリのユーザテーブル5内に更新レコー
ド情報をもち、更新されたレコードのみをダンプする仕
組みを有する。更新されたレコードだけを対象にするた
め、テーブル全体をダンプする処理に比べて、処理負荷
を大幅に軽減することができる。
In the dump processing, since the contents of the shared memory are copied to a buffer and output, the larger the shared memory is, the longer the processing time of the CPU is required, which may hinder the on-in processing. To prevent this, the MRM of the present embodiment has a mechanism that has update record information in the user table 5 of the shared memory and dumps only updated records. Since only the updated records are targeted, the processing load can be significantly reduced as compared with the process of dumping the entire table.

【0067】更新されたレコードのダンプを可能にする
ため、ダンプファイル8は、前回のダンプデータをその
まま引き継ぎ、引き継がれたデータに更新されたレコー
ドが上書きされる方式にする。
In order to make it possible to dump updated records, the dump file 8 takes over the previous dump data as it is, and the updated data is overwritten with the inherited data.

【0068】このように、本実施形態によれば、MRMを
使用することで、ユーザのライブラリとして共有メモリ
上のデータを簡単なAPIを介して処理することが可能に
なる。さらに、共有メモリ上だけでデータの読み書きが
できるから、メモリの有効利用、処理効率の向上が実現
される。
As described above, according to the present embodiment, by using the MRM, it becomes possible to process data on the shared memory as a user's library via a simple API. Furthermore, since data can be read and written only on the shared memory, effective use of the memory and improvement in processing efficiency are realized.

【0069】MRMは、回復型および非回復型のデータ
(レコード)を一つの管理テーブルで管理、それらのデ
ータ(レコード)がアクセスされた際に回復型または非
回復型の判断を行うことで、リソースの有効活用および
制御の仕組みの簡素化を図れる。ユーザは、自分のデー
タとして回復型、非回復型を意識することなく処理する
ことができる。
The MRM manages recoverable and non-recoverable data (records) in a single management table, and makes a determination of recoverable or non-recoverable when those data (records) are accessed. Effective utilization of resources and simplification of the control mechanism can be achieved. The user can process the data without being aware of the recovery type or the non-recovery type.

【0070】障害時のリカバリに備える手段として使用
する、MRMのオンラインダンプは、上記の方法により、
ダンプ処理にかかるCPUの処理負荷を軽減して、オンラ
イン処理への影響を極力少なくすることができる。つま
り、更新されたデータ(レコード)を管理し、ダンプ時
に、更新されたデータ(レコード)の範囲をチェックす
ることで、ダンプ対象のデータ(レコード)範囲を絞り
込む。このような絞り込みを行えば、順次蓄積される蓄
積型のデータ(レコード)に対して大きな効果が期待で
きる。つまり、通常、データ(レコード)の蓄積に伴い
ダンプ処理に要する時間(ダンプ時間)は延びるが、本
実施形態のMRMのダンプ処理は、更新されたデータ(レ
コード)だけをダンプ対象にするから、ほぼ一定のダン
プ時間になる。
The online dump of the MRM, which is used as a means for recovery in the event of a failure, can be performed by the above method.
The processing load on the CPU for dump processing can be reduced, and the effect on online processing can be minimized. That is, the updated data (record) is managed, and the range of the updated data (record) is checked at the time of dumping, thereby narrowing the range of data (record) to be dumped. If such narrowing is performed, a great effect can be expected for accumulation type data (records) that are sequentially accumulated. That is, usually, the time required for the dump processing (dump time) increases with the accumulation of data (records), but the dump processing of the MRM according to the present embodiment dumps only updated data (records). Almost constant dump time.

【0071】[0071]

【発明の効果】以上説明したように、本発明によれば、
共有メモリを用いた少量多品種のデータ制御において、
データ属性を意識することなく、データの整合性を確保
した処理を実現することができる。
As described above, according to the present invention,
In data control of small quantity and many kinds using shared memory,
Processing that ensures data consistency can be realized without being conscious of data attributes.

【0072】さらに、高速アクセスを実現させるため、
共有メモリ上のリソース管理およびリカバリを効率的に
行うことができる。
Further, in order to realize high-speed access,
Resource management and recovery on the shared memory can be performed efficiently.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本実施形態の情報処理における共有メモリリソ
ース管理システムを説明する図、
FIG. 1 is an exemplary view for explaining a shared memory resource management system in information processing according to an embodiment;

【図2】図2は共有メモリのリソース管理システムにお
けるトランザクション管理、テーブル管理およびデータ
テーブル管理の一例を示す図、
FIG. 2 is a diagram showing an example of transaction management, table management, and data table management in a shared memory resource management system;

【図3】図3は更新データのバックアップを説明する図
である。
FIG. 3 is a diagram illustrating backup of update data;

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 共有メモリのリソースを管理する情報処
理装置であって、 アプリケーションが利用するリソースとなるテーブルお
よびレコードについて、テーブルの属性およびレコード
の初期値をパラメタにより定義する定義手段と、 定義されたパラメタを、リソースのテーブル番号および
レコード番号の指定により特定可能なライブラリとして
保持する保持手段と、 テーブル番号およびレコード番号が指定されたリソース
の利用要求に対して、前記ライブラリに保持されたパラ
メタに従い、リソースへアクセスするアクセス手段とを
有し、 前記ライブラリは、所定のリソースを共有するアプリケ
ーションごとに設けられることを特徴とする情報処理装
置。
An information processing apparatus that manages resources of a shared memory, comprising: a definition unit that defines, by parameters, table attributes and record initial values for tables and records that are resources used by an application. Means for holding the parameters set as a library that can be specified by specifying the table number and record number of the resource, and responding to a use request of the resource with the specified table number and record number in accordance with the parameters held in the library. And an access unit for accessing a resource, wherein the library is provided for each application sharing a predetermined resource.
【請求項2】 属性が異なるリソースの同時制御を行う
情報処理装置であって、 複数のアプリケーションに共有されるリソースについ
て、そのリソースが非回復型か回復型かを示す属性情報
を含むリソース情報が記録されるメモリと、 ポインタにより、前記メモリに記録されたリソース情報
の特定を可能にするリソース管理テーブルと、 前記リソースに対するトランザクションを管理し、アプ
リケーションによるリソースに対するトランザクション
およびトランザクションによるレコードロック情報の特
定を、識別情報により可能にする管理手段と、 アプリケーションのリソース利用要求に応じて、前記ポ
インタおよび前記リソース管理テーブルを利用してリソ
ース情報を特定し、利用要求されたリソースの属性を検
査する検査手段と、 前記検査手段の検査結果に基づき、利用要求されたリソ
ースにアクセスするアクセス手段とを有し、 前記アクセス手段は、前記検査結果が前記非回復型の属
性を示す場合はリソースの読み込みまたは更新を行い、
前記回復型の属性を示す場合は、前記識別情報により特
定されるレコードロック情報からそのレコードに対する
更新データを検索して、検索された更新データの読み込
みまたは更新を行うことを特徴とする情報処理装置。
2. An information processing apparatus for simultaneously controlling resources having different attributes, wherein resource information including attribute information indicating whether the resource is a non-recoverable type or a recoverable type is provided for a resource shared by a plurality of applications. A memory to be recorded; a resource management table that enables identification of resource information recorded in the memory by using a pointer; and a transaction for the resource that manages transactions for the resource. Management means enabling the identification information, and checking means for specifying resource information using the pointer and the resource management table in response to a resource use request of an application, and checking attributes of the requested resource. , Previous Based on the inspection result of the inspection means, and a access means for accessing the available requested resource, said access means, if the inspection result indicates an attribute of the non-restoring performs read or update the resource,
An information processing apparatus that, when indicating the recovery type attribute, searches for update data for the record from the record lock information specified by the identification information and reads or updates the searched update data. .
【請求項3】 前記アクセス手段は、アプリケーション
からリソースの確定が指示された場合、前記更新データ
によりそのリソースを更新または確定することを特徴と
する請求項2に記載された情報処理装置。
3. The information processing apparatus according to claim 2, wherein the access unit updates or determines the resource with the update data when an instruction to determine the resource is issued from an application.
【請求項4】 オンライン処理中の共有メモリにおける
更新データをバックアップする情報処理装置であって、 定期的に共有メモリのダンプを採取して、採取されたダ
ンプを記録装置に出力する採取手段と、 リソース内における更新されたレコードに関する情報、
並びに、ダンプの採取時間およびリソースの更新時間を
示す情報をリソース管理テーブルに記録する記録手段と
を有し、 前記採取手段は、前記リソース管理テーブルに記録され
たダンプの採取時間とリソースの更新時間とを比較し
て、リソースの更新時間が遅い場合は更新されたレコー
ドに関する情報に基づき、更新されたレコードを対象と
する採取を行うことを特徴とする情報処理装置。
4. An information processing apparatus for backing up update data in a shared memory during online processing, a collecting means for periodically collecting a dump of the shared memory and outputting the collected dump to a recording device; Information about updated records in the resource,
Recording means for recording information indicating a dump collection time and a resource update time in a resource management table, wherein the collection means includes a dump collection time and a resource update time recorded in the resource management table. An information processing apparatus characterized in that, when the update time of a resource is late, sampling is performed on the updated record based on information on the updated record.
【請求項5】 前記更新されたレコードを対象とする採
取は、更新されたレコードを含む所定範囲を一括してダ
ンプすることを特徴とする請求項4に記載された情報処
理装置。
5. The information processing apparatus according to claim 4, wherein the collection for the updated record collectively dumps a predetermined range including the updated record.
【請求項6】 共有メモリのリソースを管理する情報処
理方法であって、 アプリケーションが利用するリソースとなるテーブルお
よびレコードについて、テーブルの属性およびレコード
の初期値をパラメタにより定義し、 定義されたパラメタを、リソースのテーブル番号および
レコード番号の指定により特定可能なライブラリとして
保持し、 テーブル番号およびレコード番号が指定されたリソース
の利用要求に対して、前記ライブラリに保持されたパラ
メタに従い、リソースにアクセスする各ステップを有
し、 前記ライブラリは、所定のリソースを共有するアプリケ
ーションごとに設けられることを特徴とする情報処理方
法。
6. An information processing method for managing resources of a shared memory, wherein a table attribute and a record initial value are defined by parameters for a table and a record that are resources used by an application, and the defined parameter is defined by the parameters. A library which can be specified by specifying a table number and a record number of a resource, and which accesses a resource in accordance with the parameters held in the library in response to a use request of the resource whose table number and the record number are specified. An information processing method, comprising the steps of: providing a library for each application sharing a predetermined resource.
【請求項7】 複数のアプリケーションに共有されるリ
ソースについて、そのリソースが非回復型か回復型かを
示す属性情報を含むリソース情報が記録されるメモリ、
ポインタにより、前記メモリに記録されたリソース情報
の特定を可能にするリソース管理テーブル、並びに、前
記リソースに対するトランザクションを管理し、アプリ
ケーションによるリソースに対するトランザクションお
よびトランザクションによるレコードロック情報の特定
を、識別情報により可能にする管理手段を有し、前記属
性が異なるリソースの同時制御を行う情報処理方法であ
って、 アプリケーションのリソース利用要求に応じて、前記ポ
インタおよび前記リソース管理テーブルを利用してリソ
ース情報を特定し、利用要求されたリソースの属性を検
査し、 その検査結果に基づき、利用要求されたリソースにアク
セスする各ステップを有し、 前記アクセスにより、前記検査結果が前記非回復型の属
性を示す場合はリソースの読み込みまたは更新が行わ
れ、前記回復型の属性を示す場合は、前記識別情報によ
り特定されるレコードロック情報からそのレコードに対
する更新データが検索され、検索された更新データの読
み込みまたは更新が行われることを特徴とする情報処理
方法。
7. A memory in which, for a resource shared by a plurality of applications, resource information including attribute information indicating whether the resource is a non-recoverable type or a recoverable type is recorded.
A resource management table that enables identification of resource information recorded in the memory by a pointer, and a transaction for the resource that is managed by the application, and a transaction for the resource by the application and a record lock information by the transaction are identified by the identification information. An information processing method for simultaneously controlling resources having different attributes, comprising specifying resource information using the pointer and the resource management table in response to a resource use request of an application. Examining the attribute of the requested resource, and accessing the requested resource based on the result of the examination. When the access result indicates the non-recoverable attribute, Reading resources If update or update is performed and indicates the recovery type attribute, update data for the record is searched from the record lock information specified by the identification information, and the searched update data is read or updated. An information processing method characterized by the following.
【請求項8】 アプリケーションからリソースの確定が
指示された場合、前記更新データによりぞのリソースが
更新または確定されることを特徴とする請求項7に記載
された情報処理方法。
8. The information processing method according to claim 7, wherein when an application instructs resource determination, the resource is updated or determined by the update data.
【請求項9】 オンライン処理中の共有メモリにおける
更新データをバックアップする情報処理方法であって、 定期的に共有メモリのダンプを採取して、採取されたダ
ンプを記録装置に出力し、 リソース内における更新されたレコードに関する情報、
並びに、ダンプの採取時間およびリソースの更新時間を
示す情報をリソース管理テーブルに記録する各ステップ
を有し、 前記ダンプ採取ステップは、前記リソース管理テーブル
に記録されたダンプの採取時間とリソースの更新時間と
を比較して、リソースの更新時間が遅い場合は更新され
たレコードに関する情報に基づき、更新されたレコード
を対象とする採取を行うことを特徴とする情報処理方
法。
9. An information processing method for backing up update data in a shared memory during online processing, comprising: periodically collecting a dump of the shared memory; outputting the collected dump to a recording device; Information about the updated record,
And a step of recording information indicating a dump collection time and a resource update time in a resource management table, wherein the dump collection step includes a dump collection time and a resource update time recorded in the resource management table. An information processing method, wherein if the update time of the resource is late, sampling is performed on the updated record based on the information on the updated record.
【請求項10】 前記更新されたレコードを対象とする
採取は、更新されたレコードを含む所定範囲を一括して
ダンプすることを特徴とする請求項9に記載された情報
処理方法。
10. The information processing method according to claim 9, wherein the collection for the updated record is performed by dumping a predetermined range including the updated record at once.
【請求項11】 請求項6から請求項10の何れかに記載
された情報処理方法を実現するプログラムが記憶された
ことを特徴とする記憶媒体。
11. A storage medium storing a program for realizing the information processing method according to claim 6. Description:
JP2000236035A 2000-08-03 2000-08-03 Device and method for information processing Pending JP2002049519A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000236035A JP2002049519A (en) 2000-08-03 2000-08-03 Device and method for information processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000236035A JP2002049519A (en) 2000-08-03 2000-08-03 Device and method for information processing

Publications (2)

Publication Number Publication Date
JP2002049519A true JP2002049519A (en) 2002-02-15
JP2002049519A5 JP2002049519A5 (en) 2005-04-07

Family

ID=18728149

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000236035A Pending JP2002049519A (en) 2000-08-03 2000-08-03 Device and method for information processing

Country Status (1)

Country Link
JP (1) JP2002049519A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012515393A (en) * 2009-01-14 2012-07-05 マイクロソフト コーポレーション Transaction processing in transaction memory
WO2014006694A1 (en) * 2012-07-03 2014-01-09 富士通株式会社 Information processing device, information storage processing program and information storage processing method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012515393A (en) * 2009-01-14 2012-07-05 マイクロソフト コーポレーション Transaction processing in transaction memory
EP2377029A4 (en) * 2009-01-14 2012-08-08 Microsoft Corp Transaction processing in transactional memory
WO2014006694A1 (en) * 2012-07-03 2014-01-09 富士通株式会社 Information processing device, information storage processing program and information storage processing method
JPWO2014006694A1 (en) * 2012-07-03 2016-06-02 富士通株式会社 Information processing apparatus, information storage processing program, and information storage processing method

Similar Documents

Publication Publication Date Title
Chen et al. Fast and general distributed transactions using RDMA and HTM
EP1800215B1 (en) Oplogging for online recovery in direct connection client server systems
US6493837B1 (en) Using log buffers to trace an event in a computer system
JP2679779B2 (en) Transaction processing method and apparatus
JP3754459B2 (en) Parallel virtual file system
KR100974156B1 (en) Apparatus, system, and method for file system serialization reinitialization
US6018746A (en) System and method for managing recovery information in a transaction processing system
US7047380B2 (en) System and method for using file system snapshots for online data backup
JP4219589B2 (en) Transactional file system
US5455946A (en) Method and means for archiving modifiable pages in a log based transaction management system
US20070239725A1 (en) Active cache offline access and management of project files
JP3974892B2 (en) Method, system, and computer readable medium for managed file system filter model and architecture
US6606685B2 (en) System and method for intercepting file system writes
US20080104441A1 (en) Data processing system and method
JP2008541263A (en) Fast and reliable synchronization of file system directories
JPH11506552A (en) Method for accessing files in a multiprocessor computer system using pipes and fifos
KR100313844B1 (en) Locking tool data objects in a framework environment
US8001098B2 (en) Database update management
US20140040191A1 (en) Inventorying and copying file system folders and files
Kraft et al. Apiary: A DBMS-Integrated Transactional Function-as-a-Service Framework
US20090307442A1 (en) Memory Access Control
JPH10283228A (en) System for compressing log stream of multi-system environment
US20100191708A1 (en) Synchronous Deletion of Managed Files
EP3785136A1 (en) Hydration of a hierarchy of dehydrated files
JP2002049519A (en) Device and method for information processing

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040517

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040517

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7426

Effective date: 20040517

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20040517

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070824

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080307