JP2009140293A - System analyzer, memory dump acquisition method and memory dump acquisition program - Google Patents
System analyzer, memory dump acquisition method and memory dump acquisition program Download PDFInfo
- Publication number
- JP2009140293A JP2009140293A JP2007316779A JP2007316779A JP2009140293A JP 2009140293 A JP2009140293 A JP 2009140293A JP 2007316779 A JP2007316779 A JP 2007316779A JP 2007316779 A JP2007316779 A JP 2007316779A JP 2009140293 A JP2009140293 A JP 2009140293A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- storage area
- memory dump
- dump
- acquired
- 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
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
本発明は、メモリダンプを取得する技術に関する。 The present invention relates to a technique for acquiring a memory dump.
計算機に障害が発生した場合、障害の原因を解析するために、メモリダンプを取得する方法が用いられる。 When a failure occurs in the computer, a method of acquiring a memory dump is used to analyze the cause of the failure.
メモリダンプを取得する方法としては、メモリダンプの取得中にメモリダンプ取得処理以外の処理によるメモリ内容の変化を避けるために、メモリダンプ取得処理以外のすべての処理を停止させてメモリダンプ取得処理のみを実行する技術が開示されている。しかし、メモリダンプ取得処理以外のすべての処理を停止させる場合には、障害発生時又は再起動時以外にメモリダンプを取得することができない。 As a method of acquiring a memory dump, in order to avoid changes in memory contents due to processing other than memory dump acquisition processing during memory dump acquisition, all processing other than memory dump acquisition processing is stopped and only memory dump acquisition processing is performed. Techniques for performing are disclosed. However, when all processes other than the memory dump acquisition process are stopped, the memory dump cannot be acquired except when a failure occurs or when the system is restarted.
そこで、特許文献1には、メモリダンプの取得中であっても、計算機の処理を継続することを可能とする技術が開示されている。
特許文献1に開示された技術では、メモリダンプの取得中に書き込み命令を受け付けた場合には、空きメモリが存在すればメモリ内容を空きメモリに複写することによって、計算機の処理を継続できるようにしている。
In the technique disclosed in
しかし、一台の計算機上で複数のオペレーティングシステム(OS)が稼働している場合には、特許文献1に開示された技術を適用することは困難である。
However, when a plurality of operating systems (OS) are operating on one computer, it is difficult to apply the technique disclosed in
本発明の代表的な一形態では、計算機システムにおけるシステム解析装置であって、前記システム解析装置は、中央処理装置、主記憶装置及び外部記憶装置を備え、前記主記憶装置は、当該主記憶装置に割り当てられた記憶領域を管理するためのメモリ管理情報を格納し、前記計算機システムは、前記主記憶装置に割り当てられた記憶領域のメモリダンプを取得するメモリダンプ取得部を含み、前記メモリダンプ取得部は、前記メモリダンプを前記外部記憶装置に格納し、前記中央処理装置は、前記メモリダンプが取得されている記憶領域に対して書き込み要求を受け付けた場合には、前記メモリダンプが取得されている記憶領域と異なる記憶領域を前記主記憶装置に新たに割り当て、前記新たに割り当てられた記憶領域に、前記メモリダンプが取得されている記憶領域に記録された情報を複写し、前記新たに割り当てられた記憶領域に対応するメモリ管理情報を追加し、前記メモリダンプの取得要求を受け付けた場合には、前記メモリ管理情報に基づいて、前記メモリダンプが取得される記憶領域に対応する、前記新たに割り当てられた記憶領域が存在するか否かを判定し、前記メモリダンプが取得される記憶領域に対応する、前記新たに割り当てられた記憶領域が存在する場合には、前記新たに割り当てられた記憶領域に記憶された情報をメモリダンプとして取得する。 In a typical embodiment of the present invention, a system analysis apparatus in a computer system, wherein the system analysis apparatus includes a central processing unit, a main storage device, and an external storage device, and the main storage device is the main storage device. Storing memory management information for managing the storage area allocated to the storage system, wherein the computer system includes a memory dump acquisition unit for acquiring a memory dump of the storage area allocated to the main storage device, and acquiring the memory dump The unit stores the memory dump in the external storage device, and when the central processing unit receives a write request for the storage area from which the memory dump is acquired, the memory dump is acquired. A new storage area is allocated to the main storage device, and the memory dump is allocated to the newly allocated storage area. When the memory dump acquisition request is accepted, the memory management information corresponding to the newly allocated storage area is added. Based on the information, it is determined whether or not the newly allocated storage area exists corresponding to the storage area from which the memory dump is acquired, and corresponds to the storage area from which the memory dump is acquired, If there is a newly allocated storage area, the information stored in the newly allocated storage area is acquired as a memory dump.
本発明の一形態によれば、記憶領域ごとのメモリダンプを取得することが可能であるため、複数のOSが実行されている計算機においても、システム解析装置を停止することなく、OSごとにメモリダンプを取得することができる。 According to an embodiment of the present invention, a memory dump for each storage area can be acquired. Therefore, even in a computer in which a plurality of OSs are executed, a memory for each OS can be obtained without stopping the system analysis apparatus. A dump can be obtained.
以下に図面を参照しながら本発明の実施の形態を説明する。 Embodiments of the present invention will be described below with reference to the drawings.
(第1の実施の形態)
図1は、本発明の第1の実施の形態のシステム解析装置の構成図である。
(First embodiment)
FIG. 1 is a configuration diagram of a system analysis apparatus according to the first embodiment of this invention.
本発明の第1の実施の形態のシステム解析装置は、中央処理装置10、主記憶装置20、及び外部記憶装置40を含む。中央処理装置10、主記憶装置20、及び外部記憶装置40は、バス50によって接続される。
The system analysis apparatus according to the first embodiment of the present invention includes a
中央処理装置10は、主記憶装置20に記憶された各種プログラムを実行することによって、各種業務を処理する。具体的には、中央処理装置10は、オペレーティングシステム12、メモリの状態を管理するメモリ管理部11及びメモリダンプ取得部31などが実行される。なお、システム解析装置では、単一のシステムが稼働していてもよいし、複数のシステムが並列して稼働し、複数のOS12が実行されていてもよい。
The
主記憶装置20は、中央処理装置10によって実行されるプログラム及び当該プログラムによって使用されるデータが記憶される。具体的には、主記憶装置20には、OS12、メモリ管理部11、及びメモリダンプ取得部31などのプログラムの他に、メモリ管理情報21、OS用メモリ22、及びダンプメモリ23が記憶されている。
The
メモリ管理部11は、システム解析装置の起動とともに実行される。メモリ管理部11は、システム解析装置で稼働するシステムが使用する記憶領域(メモリ)を管理する。システム解析装置において、新たにプログラムが実行されると、メモリ管理部11に登録され、当該プログラムを実行するためにメモリが割り当てられる。
The
OS12は、システム解析装置で稼働しているシステムが実行されるオペレーティングシステムである。なお、システム解析装置において、複数のシステムが稼働している場合には、主記憶装置20には、システム(OS12)ごとに記憶領域が割り当てられる。
The OS 12 is an operating system in which a system running on the system analysis apparatus is executed. When a plurality of systems are operating in the system analysis device, a storage area is allocated to the
メモリダンプ取得部31は、OS12上で実行されるアプリケーションとして実現しても、OS12内で実行されるモジュールとして実現してもよい。さらに、OS12とは別に実行されるソフトウェアとして実現しても、システム解析装置とは別の計算機で実行されるソフトウェア又はハードウェアとして実現してもよい。
The memory
メモリ管理情報21は、メモリの状態を記憶する。メモリ管理情報21の詳細は、図2にて後述する。
The
OS用メモリ22は、システム解析装置で実行される各OS12によって使用される記憶領域である。
The
ダンプメモリ23は、メモリダンプ取得開始時のOS用メモリ22を退避させるための記憶領域である。また、ダンプメモリ23は、OS用メモリ22に割り当てられてもよいし、OS用メモリ22とは別に割り当てられてもよい。本発明の第1の実施の形態では、ダンプメモリ23は、図1に示すように、OS用メモリ22とは別の領域に割り当てられる。
The
ダンプメモリ23がOS用メモリ22に割り当てられる場合には、メモリ管理部11によって各OS12の実行が開始されるタイミングで、OS用メモリ22を割り当てると同時にダンプメモリ23を割り当てることが考えられる。この場合、各OS12のメモリダンプを取得する際には、異なるダンプメモリ23が使用される。
When the
一方、ダンプメモリ23がOS用メモリ22とは別に主記憶装置20に割り当てられる場合には、定義ファイルなどによって予め設定された情報又はOS用メモリ22の状態に基づいて、メモリ管理部11によって予め割り当てることが考えられる。この場合、各OS12のメモリダンプを取得する際に、同じダンプメモリ23が使用される。
On the other hand, when the
以上、本発明の第1の実施の形態のシステム解析装置の全体構成の説明を終了する。続いて、メモリ管理情報21の詳細について説明する。
This is the end of the description of the overall configuration of the system analysis apparatus according to the first embodiment of this invention. Next, details of the
図2は、本発明の第1の実施の形態のメモリ管理情報21の一例であるメモリ管理テーブル211を示す図である。
FIG. 2 illustrates a memory management table 211 that is an example of the
メモリ管理テーブル211は、ドメインID2111、仮想論理アドレス2112、実物理アドレス2113、使用中フラグ2114、ダンプフラグ2115、及び更新フラグ2116を含む。メモリ管理テーブル211には、主記憶装置20に割り当てられたメモリごとに、レコードが作成される。
The memory management table 211 includes a
ドメインID2111は、当該レコードに対応するメモリを使用するOS12を識別する識別子である。
The
仮想論理アドレス2112は、OS12によって使用される記憶領域のアドレスである。仮想論理アドレス2112は、OS12によって割り当てられた仮想的なアドレスである。
The virtual
実物理アドレス2113は、メモリ管理部11によって使用されるアドレスである。実物理アドレス2113は、すべてのメモリに対して一意に特定されるアドレスである。
The real
使用中フラグ2114は、当該メモリの使用状態を管理する。ダンプフラグ2115は、当該メモリがメモリダンプ取得中の退避状態であるか否かを管理する。
The in-
更新フラグ2116は、メモリダンプを取得後の更新状態を管理する。すなわち、メモリダンプが取得されると、更新フラグ2116の値に「オフ」が設定され、メモリダンプ取得後にメモリの内容が更新された場合には「オン」が設定される。
The
以上、本発明の第1に実施の形態におけるメモリ管理情報であるメモリ管理テーブル211の説明を終了する。続いて、各構成による処理の詳細について説明する。 This is the end of the description of the memory management table 211 that is the memory management information in the first embodiment of the present invention. Next, details of processing by each configuration will be described.
図3は、本発明の第1の実施の形態のシステム解析装置において実行されるメモリダンプ取得処理の手順を示すフローチャートである。 FIG. 3 is a flowchart illustrating a procedure of the memory dump acquisition process executed in the system analysis apparatus according to the first embodiment of this invention.
中央処理装置10は、OS12からのメモリダンプ取得要求を受け付けると、メモリダンプ取得部31を実行し、メモリダンプ取得対象のOS12のメモリダンプ取得開始をメモリ管理部11に通知する(S101)。
When the
中央処理装置10は、メモリ管理部11によって、メモリダンプ取得開始を通知したメモリダンプ取得部31をメモリ管理部11に登録する(S110)。
The
中央処理装置10は、メモリダンプを取得する対象のOS12に対応するOS用メモリ22に書き込み保護を実施する(S111)。ここで、書き込み保護は、中央処理装置又は主記憶装置の機能によって実現してもよいし、メモリ管理テーブル211に情報を登録することによってメモリ管理部11の処理で実現してもよい。
The
中央処理装置10は、メモリダンプ取得部31にメモリダンプを取得する対象のOS12のメモリダンプを取得する準備が完了した旨を通知する(S112)。
The
中央処理装置10は、メモリダンプ取得部31によって、メモリダンプを取得する対象のOS12のメモリの読み出しをメモリ管理部11に指示する(S102)。ここで、S102の処理は、メモリダンプ取得部31のメモリダンプを取得する対象のOS12のメモリ読み出し命令を、メモリ管理部11の処理が横取りすることによって実現してもよい。
The
中央処理装置10は、受け付けた読み出し指示がS110の処理で登録されたメモリダンプ取得部31からの指示である場合には、メモリ管理部11によって、読み出し対象のメモリのすべてに対して、以下に示すS114からS1171までの処理、又は、S114からS1172までの処理を繰り返し実行する(S113)。繰り返しの単位は、メモリごとでもよいし、所定のサイズに区切られた複数のメモリごとでもよい。
When the received read instruction is an instruction from the memory
中央処理装置10は、メモリ管理部11によって、メモリ管理テーブル211から読み出されるメモリに関する情報を取得する(S114)。
The
中央処理装置10は、S114の処理で取得された情報のダンプフラグ2115の値が「オン」であるか否かを判定する(S115)
中央処理装置10は、ダンプフラグ2115の値が「オン」である場合には(S115の結果が「オン」)、実物理アドレス2113の値に基づいて、主記憶装置20のダンプメモリ23に格納された情報を読み出す(S1161)。さらに、S1161の処理で読み出されたメモリを解放する(S1171)。具体的には、ダンプメモリを取得する対象のメモリの書き込み保護を解除するとともに、当該メモリに対応するメモリ管理テーブル211のレコードについて、ドメインID2111及び仮想論理アドレス2112を初期化し、使用中フラグ2114、ダンプフラグ2115及び更新フラグ2116にオフを設定する。
The
When the value of the
一方、中央処理装置10は、ダンプフラグ2115の値が「オフ」である場合には(S115の結果が「オフ」)、ダンプメモリ23が作成されていないため、実物理アドレス2113の値に基づいて、OS用メモリ22に格納された情報を読み出す(S1162)。
On the other hand, when the value of the
中央処理装置10は、S1162の処理で読み出されたメモリの書き込み保護を解除するともに、当該メモリに対応するメモリ管理テーブル211のレコードの更新フラグ2116の値を「オフ」に設定する(S1172)。
The
そして、中央処理装置10は、すべての対象メモリに対する処理が完了すると、メモリ管理部11によって、メモリダンプ取得部31に、S1161又はS1162の処理で読み出されたメモリの情報を送信する(S118)。
When the processing for all the target memories is completed, the
中央処理装置10は、メモリダンプ取得部31によって、S118の処理で送信されたメモリの情報を外部記憶装置40に保存する(S103)。さらに、メモリ管理部11にメモリダンプ取得処理の終了を通知する(S104)。
The
中央処理装置10は、メモリダンプ取得終了の通知元であるメモリダンプ取得部31の登録を解除する(S110)。
The
なお、図3に示したフローチャートでは、メモリダンプ取得部31によるOS12に対応するメモリの情報の取得(S102〜S103)を一度に処理しているが、所定の大きさに分割し、複数回に分けて繰り返し処理してもよい。
In the flowchart shown in FIG. 3, the memory
以上で、本発明の第1の実施の形態のメモリダンプ取得処理の説明を終了する。続いて、メモリダンプ差分取得処理について説明する。 This is the end of the description of the memory dump acquisition process according to the first embodiment of this invention. Next, the memory dump difference acquisition process will be described.
図4は、本発明の第1の実施の形態のシステム解析装置において実行されるメモリダンプ差分取得処理の手順を示すフローチャートである。 FIG. 4 is a flowchart illustrating a procedure of a memory dump difference acquisition process executed in the system analysis apparatus according to the first embodiment of this invention.
メモリダンプ差分取得処理は、更新されたメモリに対してのみダンプを取得する点において、図3に示したメモリダンプ取得処理と相違する。具体的には、S101、S111、S112及びS102の処理が、S121、S131、S132及びS122の処理に変更される。以下、変更された処理を中心にメモリダンプ差分取得処理を説明する。 The memory dump difference acquisition process is different from the memory dump acquisition process shown in FIG. 3 in that a dump is acquired only for the updated memory. Specifically, the processing of S101, S111, S112, and S102 is changed to the processing of S121, S131, S132, and S122. Hereinafter, the memory dump difference acquisition process will be described focusing on the changed process.
中央処理装置10は、メモリダンプ取得部31を実行し、メモリダンプ(差分)取得対象のOS12のメモリダンプの差分の取得開始をメモリ管理部11に通知する(S121)。
The
中央処理装置10は、メモリ管理部11によって、メモリダンプを取得する対象のメモリのうち、メモリ管理テーブル211の対応するレコードの更新フラグ2116の値が「オン」であるメモリに書き込み保護を実施する(S131)。
The
中央処理装置10は、メモリダンプ取得部31にメモリダンプを取得する対象のOS12のメモリダンプの差分を取得する準備が完了した旨を通知する(S132)。
The
中央処理装置10は、メモリダンプ取得部31によって、メモリダンプの差分を取得する対象のOS12のメモリの読み出しをメモリ管理部11に指示する(S122)。
The
以上のように、メモリの内容が更新された場合のみメモリダンプを取得するようにすることによって、必要なメモリダンプを取得する時間を短縮することができる。 As described above, by acquiring the memory dump only when the contents of the memory are updated, it is possible to shorten the time for acquiring the necessary memory dump.
以上で、本発明の第1の実施の形態のメモリダンプ差分取得処理の説明を終了する。 This is the end of the description of the memory dump difference acquisition processing according to the first embodiment of this invention.
ここで、メモリダンプを取得する対象が複数存在する場合、S103の処理で外部記憶装置40に取得されたメモリの情報を記録するために要する時間がボトルネックとなる可能性がある。また、書き込み速度が高速であって、大容量の外部記憶装置を使用すると、コストが大きくなってしまう。
Here, when there are a plurality of targets for acquiring the memory dump, the time required to record the memory information acquired in the
この問題点は、S103の処理でメモリの情報が保存される外部記憶装置40について、書き込み速度の異なる複数の外部記憶装置によって実装することによって解決することができる。具体的には、メモリダンプ取得部31によって直接書き込まれる外部記憶装置は、小容量かつ高速に書き込み可能な記憶装置とし、一方、メモリダンプを長期保存する外部記憶装置は大容量かつ低速な記憶装置とする。このように実装することによって、実現コストを抑えながら、取得されたメモリダンプを外部記憶装置40に格納する時間を短縮することができる。さらに、メモリダンプ取得処理中又はメモリダンプ差分取得処理中にOS用メモリ22を退避させるためのダンプメモリ23に必要となる容量を削減することも可能である。
This problem can be solved by mounting the
図5は、本発明の第1の実施の形態のシステム解析装置において実行されるOSのメモリ更新処理の手順を示すフローチャートである。 FIG. 5 is a flowchart illustrating the procedure of the OS memory update process executed in the system analysis apparatus according to the first embodiment of this invention.
本処理は、メモリダンプ取得処理中、又は、メモリダンプ差分取得処理中のメモリダンプを取得する対象であるOS12によって使用されるOS用メモリ22へのメモリ更新処理である。
This process is a memory update process to the
中央処理装置10は、OS12によって、メモリ管理部11に対して、メモリ領域への書き込みを指示する(S141)。S141の処理は、OS12のメモリ書き込み命令を、メモリ管理部11が横取りすることによって実現してもよい。
The
中央処理装置10は、メモリ管理部11によって、書き込み対象のメモリのすべてに対し、以下のS152からS156までの処理を繰り返し実行する(S151)。繰り返しの単位は、メモリごとでもよいし、所定のサイズに区切られた複数のメモリごとでもよい。
The
中央処理装置10は、メモリ管理部11によって、書き込み対象のメモリに書き込み保護が施されているか否かを判定する(S152)。ここで、書き込み保護確認は、図3のS111又は図4のS131処理の書き込み保護と連動させることによって、中央処理装置10又は主記憶装置20の機能によって実現してもよいし、メモリ管理テーブル211に情報を登録することによって、メモリ管理部11で実現してもよい。
The
中央処理装置10は、メモリに書き込み保護が施されている場合には(S152の結果が「Yes」)、主記憶装置20に別のメモリを新たに割り当てる(S153)。ここで、別のメモリの割り当ては、中央処理装置10又は主記憶装置20の機能によって実現してもよいし、メモリ管理テーブル211に基づいて、メモリ管理部11によって実現してもよい。さらに、割り当てられた別のメモリに書き込み対象のメモリに格納された情報を複写する。
If the memory is write-protected (the result of S152 is “Yes”), the
中央処理装置10は、メモリ管理部11によって、メモリ管理テーブル211の書き込み保護されているメモリに対応するレコードのダンプフラグ2115を「オン」に設定する。そして、別に割り当てられたメモリに対応するドメインID2111に当該OS12のドメインIDを設定し、仮想論理アドレス2112に書き込み保護されているメモリに対応する仮想論理アドレスを設定し、さらに、使用中フラグ2114を「オン」に設定する(S154)。
The
中央処理装置10は、S154の処理が終了した場合、又は、メモリに書き込み保護が施されていない場合には(S152の結果が「No」)、主記憶装置20にOS12から書き込みを指示された情報を書き込む(S155)。メモリに書き込み保護が施されている場合には(S152の結果が「Yes」)、新たに割り当てられたメモリに指示された情報を書き込む。また、メモリに書き込み保護が施されていない場合には(S152の結果が「No」)、OS用メモリ22に指示された情報を書き込む。
The
中央処理装置10は、メモリ管理部11によって、メモリ管理テーブル211のS155の処理で書き込まれたメモリに対応するレコードの更新フラグ2116の値を「オン」に設定する(S156)。
The
以上のメモリ更新処理を実行することによって、OS12が使用するOS用メモリ22のメモリダンプ取得処理中又はメモリダンプ差分取得中に、当該OS用メモリ22にデータを書き込む場合であっても、メモリダンプ開始時点のメモリを保存することができる。
By executing the above memory update process, even when data is written to the
本発明の第1の実施の形態によれば、OS12を停止することなく、OS12によって読み書きされるOS用メモリ22のメモリダンプを、メモリダンプ取得処理開始の状態で取得することができる。また、OS12を停止することなく、OS12に属するOS用メモリ22のメモリダンプの差分をメモリダンプ差分取得処理開始の状態で取得することができる。
According to the first embodiment of the present invention, it is possible to acquire a memory dump of the
また、本発明の第1の実施の形態によれば、メモリダンプ取得部によるメモリ読み出し処理は、従来のメモリダンプ取得部に変更を加えることなく使用することができる。 Further, according to the first embodiment of the present invention, the memory read processing by the memory dump acquisition unit can be used without changing the conventional memory dump acquisition unit.
さらに、本発明の第1の実施の形態によれば、一定間隔でメモリダンプを取得し、その間はメモリダンプの差分を取得することによって、メモリダンプの取得量を減らしつつ高頻度に解析データを収集することができる。 Furthermore, according to the first embodiment of the present invention, the memory dump is acquired at regular intervals, and during that period, the difference between the memory dumps is acquired, thereby reducing the amount of memory dump acquisition and the analysis data frequently. Can be collected.
本発明の第1の実施の形態によれば、分散システムにおいて稼働している複数のシステムに対して、同時にメモリダンプを取得することができるため、解析対象のシステムだけでなく関連するシステムのメモリダンプも利用してシステムを解析することができる。 According to the first embodiment of the present invention, since a memory dump can be acquired simultaneously for a plurality of systems operating in a distributed system, not only the analysis target system but also the related system memory A dump can also be used to analyze the system.
本発明の第1の実施の形態によれば、メモリダンプ取得部31をシステム解析装置の外部に設け、複数のシステム解析装置に同時にメモリダンプの取得を要求することによって、分散システムにおいて関連する複数のシステムのメモリダンプを同時に取得することができる。
According to the first embodiment of the present invention, the memory
(第2の実施の形態)
本発明の第1の実施の形態では、メモリダンプ取得中に書き込み要求を受け付けた場合には、主記憶装置20に別の記憶領域を割り当てることによって、OS12を停止させることなくメモリダンプを取得する方法について説明した。本発明の第2の実施の形態では、主記憶装置が二重化されている場合について説明する。
(Second Embodiment)
In the first embodiment of the present invention, when a write request is received during memory dump acquisition, a memory dump is acquired without suspending the
なお、本発明の第2の実施の形態において、本発明の第1の実施の形態と共通する内容については適宜説明を省略する。 Note that in the second embodiment of the present invention, description of the contents common to the first embodiment of the present invention will be omitted as appropriate.
図6は、本発明の第2の実施の形態のシステム解析装置の構成図である。 FIG. 6 is a configuration diagram of a system analysis apparatus according to the second embodiment of this invention.
本発明の第2の実施の形態のシステム解析装置は、本発明の第1の実施の形態のシステム解析装置の主記憶装置20を多重化したものである。本発明の第1の実施の形態のシステム解析装置との相違点は、主記憶装置20が正主記憶装置201及び副主記憶装置202に置き換わる点である。
The system analysis apparatus according to the second embodiment of the present invention is obtained by multiplexing the
正主記憶装置201には、正メモリの状態を記憶する正メモリ管理情報25が記憶され、さらに、システム解析装置で実行されている各OS12によって使用されるOS用正メモリ221が割り当てられている。
The primary
副主記憶装置202には、副メモリの状態を記憶する副メモリ管理情報26が記憶され、さらに、システム解析装置で実行されている各OS12に対応するOS用副メモリ222が割り当てられている。したがって、OS用副メモリ222は、OS用正メモリ221にも対応することになる。
The secondary
また、OS用正メモリ221及びOS用副メモリ222は、同期される。OS用正メモリ221とOS用副メモリ222との同期は、メモリ管理部11によって実現されてもよいし、OS12上で動作するアプリケーションとして実現してもよい。さらに、OS12内で動作するモジュールとして実現しても、メモリ管理部11とは別に中央処理装置10によって実行されるソフトウェアとして実現してもよく、中央処理装置10とは別の処理装置によって実行されるソフトウェア又はハードウェアとして実現してもよい。また、正主記憶装置201に対して、副主記憶装置202は一つであってもよいし、複数であってもよい。
Further, the OS
以上、本発明の第2の実施の形態のシステム解析装置の全体構成の説明を終了する。続いて、各構成の詳細について説明する。 This is the end of the description of the overall configuration of the system analysis apparatus according to the second embodiment of this invention. Next, details of each component will be described.
図7は、本発明の第2の実施の形態の正メモリ管理情報25の一例である正メモリ管理テーブル251を示す図である。
FIG. 7 illustrates a primary memory management table 251 that is an example of the primary
正メモリ管理テーブル251は、ドメインID2111、仮想論理アドレス2112、実物理アドレス2113、使用中フラグ2114、及び更新フラグ2116を含む。正メモリ管理テーブル251には、正主記憶装置201に割り当てられたメモリ(記憶領域)ごとに、レコードが作成される。
The primary memory management table 251 includes a
ドメインID2111、仮想論理アドレス2112、実物理アドレス2113、使用中フラグ2114、及び更新フラグ2116は、本発明の第1の実施の形態のメモリ管理テーブル211と同じ用途である。
The
図8は、本発明の第2の実施の形態の副メモリ管理情報26の一例である副メモリ管理テーブル261を示す図である。
FIG. 8 is a diagram illustrating the sub memory management table 261 that is an example of the sub
副メモリ管理テーブル261は、正メモリ管理テーブル251の構成と同じである。副主記憶装置202には、正主記憶装置201に割り当てられたメモリに対応するメモリが割り当てられ、記憶された内容が同期される。副メモリ管理テーブル261には、副主記憶装置202に割り当てられたメモリごとに、レコードが作成される。したがって、副メモリ管理テーブル261の各レコードは、正主記憶装置201に割り当てられたメモリにも対応する。
The secondary memory management table 261 has the same configuration as the primary memory management table 251. A memory corresponding to the memory allocated to the primary
以上で、本発明の第2の実施の形態の正メモリ管理情報25の一例である正メモリ管理テーブル251及び副メモリ管理情報26の一例である副メモリ管理テーブル261の説明を終了する。続いて、各構成の処理について説明する。
The description of the primary memory management table 251 as an example of the primary
図9は、本発明の第2の実施の形態のシステム解析装置において実行されるメモリダンプ取得処理の手順を示すフローチャートである。 FIG. 9 is a flowchart illustrating a procedure of a memory dump acquisition process executed in the system analysis apparatus according to the second embodiment of this invention.
中央処理装置10は、OS12からのメモリダンプ取得要求を受け付けると、メモリダンプ取得部31を実行し、メモリダンプ取得対象のOS12のメモリダンプ取得開始をメモリ管理部11に通知する(S201)。
When the
中央処理装置10は、メモリ管理部11によって、メモリダンプを取得するOS12に対応するOS用正メモリ221と、当該OS用正メモリ221に対応するOS用副メモリ222との同期を停止する(S211)。
The
中央処理装置10は、メモリダンプ取得部31にメモリダンプを取得する対象のOS12のメモリダンプを取得する準備が完了した旨を通知する(S212)。
The
中央処理装置10は、メモリダンプ取得部31によって、メモリダンプを取得する対象のOS12のメモリの読み出しをメモリ管理部11に指示する(S202)。ここで、S202の処理は、メモリダンプ取得部31のメモリダンプを取得する対象のOS12のメモリ読み出し命令を、メモリ管理部11の処理が横取りすることによって実現してもよい。
The
中央処理装置10は、メモリ管理部11によって、読み出し対象のメモリのすべてに対して、以下に示すS216及びS217の処理を繰り返し実行する(S213)。繰り返しの単位は、メモリごとでもよいし、所定のサイズに区切られた複数のメモリごとでもよい。
The
中央処理装置10は、メモリ管理部11によって、副主記憶装置202のOS用副メモリ222に格納された情報を読み出す(S216)。さらに、S216の処理で読み出されたメモリに対応する副メモリ管理テーブル261のレコードに含まれる更新フラグ2116の値を「オフ」に設定する(S217)。
The
メモリダンプを取得するすべての対象のメモリに対して以上の処理が終了すると、中央処理装置10は、メモリ管理部11によって、S216の処理で読み出されたメモリの情報をメモリダンプ取得部31に送信する(S218)。
When the above processing is completed for all the target memories from which the memory dump is acquired, the
中央処理装置10は、メモリダンプ取得部31によって、S218の処理で受信したメモリの情報を外部記憶装置に保存する(S203)。
The
一方、中央処理装置10は、メモリダンプを取得する対象のOS12によって使用されるOS用正メモリ221であって、正メモリ管理テーブル251の対応するレコードの更新フラグ2116の値が「オン」であるメモリに対し、メモリ管理部11によって、以下のS262からS265までの処理を実行する(S261)。実行する対象は、メモリごとであってもよいし、所定のサイズに区切られた複数のメモリごとであってもよい。
On the other hand, the
中央処理装置10は、メモリ管理部11によって、正主記憶装置201から正メモリ管理テーブル251の対応するレコード(この場合、OS用正メモリ221)の更新フラグ2116の値が「オン」のメモリの情報を読み出す(S262)。
The
中央処理装置10は、次に、メモリ管理部11によって、正メモリ管理テーブル251のS262の処理で読み出されたメモリに対応するレコードの更新フラグ2116の値を「オフ」に設定する(S263)。
Next, the
中央処理装置10は、メモリ管理部11によって、処理対象のOS用正メモリ221と同期するOS用副メモリ222を特定し、特定されたOS用副メモリ222にS262の処理で読み出されたメモリの情報を書き込む(S264)。具体的には、処理対象のOS用正メモリ221のドメインID2111、仮想論理アドレス2112、及び実物理アドレス2113に基づいて、OS用副メモリ222を特定する。
The
中央処理装置10は、メモリ管理部11によって、S264の処理で情報が書き込まれたOS用副メモリ222に対応する副メモリ管理テーブル261のレコードの更新フラグ2116を「オン」に設定する(S265)。
The
そして、S261の繰り返しが終了すると、中央処理装置10は、メモリダンプが取得されたOS12によって使用されるOS用正メモリ221と、対応するOS用副メモリ222の同期を再開する(S266)。
When the repetition of S261 ends, the
以上で、本発明の第2の実施の形態のメモリダンプ取得処理の説明を終了する。続いて、メモリダンプ差分取得処理について説明する。 This is the end of the description of the memory dump acquisition process according to the second embodiment of this invention. Next, the memory dump difference acquisition process will be described.
図10は、本発明の第2の実施の形態のシステム解析装置において実行されるメモリダンプ差分取得処理の手順を示すフローチャートである。 FIG. 10 is a flowchart illustrating a procedure of memory dump difference acquisition processing executed in the system analysis apparatus according to the second embodiment of this invention.
メモリダンプ差分取得処理は、更新されたメモリに対してのみダンプを取得する点において、図9に示したメモリダンプ取得処理と相違する。具体的には、S201、S211、S212及びS202の処理が、S221、S231、S232及びS222の処理に変更される。以下、変更された処理を中心にメモリダンプ差分取得処理を説明する。 The memory dump difference acquisition process is different from the memory dump acquisition process shown in FIG. 9 in that a dump is acquired only for the updated memory. Specifically, the processing of S201, S211, S212, and S202 is changed to the processing of S221, S231, S232, and S222. Hereinafter, the memory dump difference acquisition process will be described focusing on the changed process.
中央処理装置10は、メモリダンプ取得部31を実行し、メモリダンプ(差分)取得対象のOS12のメモリダンプの差分の取得開始をメモリ管理部11に通知する(S201)。
The
中央処理装置10は、メモリ管理部11によって、メモリダンプを取得するOS12に対応するOS用正メモリ221に対応するOS用副メモリ222であって、副メモリ管理テーブル261に対応するレコードの更新フラグ2116の値が「オン」であるOS用副メモリ222について、OS用正メモリ221との同期を停止する(S231)。
The
中央処理装置10は、メモリダンプ取得部31にメモリダンプを取得する対象のOS12のメモリダンプの差分を取得する準備が完了した旨を通知する(S232)。
The
中央処理装置10は、メモリダンプ取得部31によって、メモリダンプの差分を取得する対象のOS12の更新済みのメモリの読み出しをメモリ管理部11に指示する(S222)。S202の処理は、メモリダンプ取得部31のメモリダンプを取得する対象のOS12のメモリ読み出し命令を、メモリ管理部11の処理が横取りすることによって実現してもよい。
The
以上のように、メモリの内容が更新された場合のみメモリダンプを取得するようにすることによって、必要なメモリダンプを取得する時間を短縮することができる。以上で、本発明の第2の実施の形態のメモリダンプ差分取得処理の説明を終了する。 As described above, by acquiring the memory dump only when the contents of the memory are updated, it is possible to shorten the time for acquiring the necessary memory dump. This is the end of the description of the memory dump difference acquisition processing according to the second embodiment of this invention.
なお、本発明の第1の実施の形態で説明したように、メモリダンプ取得部31によってメモリダンプが直接書き込まれる外部記憶装置を小容量で高速に書き込み可能な記憶装置とし、メモリダンプを長期保存する外部記憶装置は大容量で低速な記憶装置とすることによって、実現コストを抑えながら、取得されたメモリダンプを外部記憶装置40に格納する時間を短縮することができる。したがって、OS用正メモリ221とOS用副メモリ222との同期を停止する期間を短縮することができる。
As described in the first embodiment of the present invention, the external storage device in which the memory dump is directly written by the memory
図11は、本発明の第2の実施の形態のシステム解析装置において実行されるOSのメモリ更新処理の手順を示すフローチャートである。 FIG. 11 is a flowchart illustrating a procedure of OS memory update processing executed in the system analysis apparatus according to the second embodiment of this invention.
本処理は、メモリダンプ取得処理中、又は、メモリダンプ差分取得処理中のメモリダンプを取得する対象であるOS12によって使用されるOS用正メモリ221へのメモリ更新処理である。
This process is a memory update process to the OS
中央処理装置10は、OS12によって、メモリ管理部11に対して、メモリ領域への書き込みを指示する(S141)。S141の処理は、OS12のメモリ書き込み命令を、メモリ管理部11が横取りすることによって実現されてもよい。
The
中央処理装置10は、メモリ管理部11によって、書き込み対象のメモリのすべてに対し、以下のS252からS256又はS252からS221までの処理を繰り返し実行する(S251)。繰り返しの単位は、メモリごとでもよいし、所定のサイズに区切られた複数のメモリごとでもよい。
The
中央処理装置10は、メモリ管理部11によって、OS12によって使用されるOS用正メモリ221と対応するOS用副メモリ222との同期が実施されているか否かを判定する(S252)。なお、S252の処理は、メモリダンプ取得処理又はメモリダンプ差分取得の際に、正主記憶装置201のメモリダンプ取得対象メモリ(この場合、OS用正メモリ221)に書き込み保護を実施すれば、書き込み対象のメモリに書き込み保護が実施されているか否かを判定することによっても可能である。
The
中央処理装置10は、OS用正メモリ221と対応するOS用副メモリ222との同期が実施されていないと判定した場合には(S252の結果が「Yes」)、該当する正主記憶装置201のOS用正メモリ221に指示された情報を書き込む(S2551)。
When the
中央処理装置10は、続いて、S255の処理で情報が書き込まれたメモリに対応する正メモリ管理テーブル251のレコードの更新フラグ2116を「オン」に設定する(S256)。
Subsequently, the
一方、中央処理装置10は、OS用正メモリ221と対応するOS用副メモリ222との同期が実施されていると判定した場合には(S252の結果が「Yes」)、正主記憶装置201のOS用正メモリ221に指示された情報を書き込む(S2552)。
On the other hand, when the
そして、S2552のOS用正メモリ221への書き込み処理の実行後、副主記憶装置202のOS用副メモリ222には、OS用正メモリ221とOS用副メモリ222との同期によって、更新された情報が書き込まれる(S271)。さらに、S271の処理で情報が書き込まれたメモリに対応する副メモリ管理テーブル261のレコードの更新フラグ2116の値を「オン」に設定する(S272)。
After the execution of the write process to the OS
本発明の第2の実施の形態によれば、本発明の第1の実施の形態と同様に、OS12を停止することなく、OS12に対応するOS用副メモリ222のメモリダンプをメモリダンプ取得処理開始の状態で取得することができる。
According to the second embodiment of the present invention, similarly to the first embodiment of the present invention, the memory dump acquisition process of the memory dump of the
本発明の第2の実施の形態では、さらに、本発明の第1の実施の形態の効果に加え、以下の効果を得ることができる。 In the second embodiment of the present invention, the following effects can be obtained in addition to the effects of the first embodiment of the present invention.
本発明の第2の実施の形態によれば、メモリダンプ取得処理中又はメモリダンプ差分取得処理中のOS12のOS用正メモリ221への書き込みのオーバヘッドを削減できる。
According to the second embodiment of the present invention, it is possible to reduce the overhead of writing to the OS
本発明の第2の実施の形態によれば、メモリダンプ取得処理中又はメモリダンプ差分取得処理中にOS用正メモリ221を退避させるためのダンプメモリ23を必要としないため、使用されるメモリの容量を少なくすることができる。
According to the second embodiment of the present invention, the
(第3の実施の形態)
本発明の第3の実施の形態は、本発明の第2の実施の形態と同様に、主記憶装置が二重化された構成となっている。本発明の第2の実施の形態とは、メモリダンプ取得中にOS用正メモリ221に格納された情報が格納された場合の処理が相違する。以下、本発明の第3の実施の形態について説明する。
(Third embodiment)
As in the second embodiment of the present invention, the third embodiment of the present invention has a configuration in which the main storage device is duplicated. The second embodiment of the present invention is different from the processing in the case where the information stored in the OS
本発明の第3の実施の形態のシステム解析装置の構成は、図6に示した本発明の第2の実施の形態のシステム解析装置と同じである。 The configuration of the system analysis apparatus according to the third embodiment of the present invention is the same as that of the system analysis apparatus according to the second embodiment of the present invention shown in FIG.
また、本発明の第3の実施の形態の正メモリ管理情報25及び副メモリ管理情報26についても、図7及び図8に示した正メモリ管理テーブル251及び副メモリ管理テーブル261と同じである。
Also, the primary
図12は、本発明の第3の実施の形態のシステム解析装置において実行されるメモリダンプ取得処理の手順を示すフローチャートである。 FIG. 12 is a flowchart illustrating a procedure of a memory dump acquisition process executed in the system analysis apparatus according to the third embodiment of this invention.
図9に示した本発明の第2の実施の形態のメモリダンプ取得処理との相違点は、S218の処理の後からS261からS266までの処理が削除され、S217の処理とS218の処理との間にS361からS367までの処理が追加されている。以下、相違点を中心に本発明の第3の実施の形態のメモリダンプ取得処理の手順を説明する。 The difference from the memory dump acquisition process of the second embodiment of the present invention shown in FIG. 9 is that the processes from S261 to S266 are deleted after the process of S218, and the process of S217 and the process of S218 are different. In the meantime, the processing from S361 to S367 is added. Hereinafter, the procedure of the memory dump acquisition process according to the third embodiment of the present invention will be described focusing on the differences.
中央処理装置10は、S217の処理が終了すると、メモリ管理部11によって、正メモリ管理テーブル251から、副メモリ管理テーブル261のS216の処理で読み出されたメモリに対応するドメインID2111、仮想論理アドレス2112及び実物理アドレス2113に基づいて、同期対象である正主記憶装置201のOS用正メモリ221に対応するレコードを取得する(S361)。
When the processing of S217 is completed, the
中央処理装置10は、メモリ管理部11によって、S361の処理で取得されたレコードの更新フラグ2116の値が「オン」であるか「オフ」であるかを判定する(S362)。
The
中央処理装置10は、更新フラグ2116の値が「オン」であった場合には(S362の結果が「オン」)、メモリ管理部11によって、正主記憶装置201のOS用正メモリ221から情報を読み出す(S363)。
When the value of the
中央処理装置10は、メモリ管理部11によって、S363の処理で読み出された正メモリ管理テーブル251のレコードの更新フラグ2116の値を「オフ」に設定する(S364)。さらに、対応する副主記憶装置202のOS用副メモリ222にS363の処理でOS用正メモリ221から読み出された情報を書き込む(S365)。
The
中央処理装置10は、メモリ管理部11によって、S365の処理で情報が書き込まれたOS用副メモリ222に対応する副メモリ管理テーブル261のレコードの更新フラグ2116を「オン」に設定する(S366)。
The
中央処理装置10は、S367の処理が終了した場合、又は、更新フラグ2116の値が「オフ」であった場合には(S362の結果が「オフ」)、S363の処理で情報が読み出されたOS用正メモリと、対応するOS用副メモリ222との同期を再開する(S367)。
When the process of S367 is completed or the value of the
以上で、本発明の第3の実施の形態のメモリダンプ取得処理の説明を終了する。続いて、メモリダンプ差分取得処理について説明する。 This is the end of the description of the memory dump acquisition process according to the third embodiment of this invention. Next, the memory dump difference acquisition process will be described.
図13は、本発明の第3の実施の形態のシステム解析装置において実行されるメモリダンプ差分取得処理の手順を示すフローチャートである。 FIG. 13 is a flowchart illustrating a procedure of a memory dump difference acquisition process executed in the system analysis apparatus according to the third embodiment of this invention.
メモリダンプ差分取得処理は、更新されたメモリに対してのみダンプを取得する点において、図9に示したメモリダンプ取得処理と相違する。具体的には、S201、S211、S212及びS202の処理が、S221、S231、S232及びS222の処理に変更される。 The memory dump difference acquisition process is different from the memory dump acquisition process shown in FIG. 9 in that a dump is acquired only for the updated memory. Specifically, the processing of S201, S211, S212, and S202 is changed to the processing of S221, S231, S232, and S222.
また、S221、S231、S232及びS222の処理は、図10に示した本発明の第2の実施の形態のメモリダンプ差分取得処理に含まれるS221、S231、S232及びS222の処理と同じである。 Further, the processes of S221, S231, S232, and S222 are the same as the processes of S221, S231, S232, and S222 included in the memory dump difference acquisition process of the second embodiment of the present invention shown in FIG.
以上で、本発明の第3の実施の形態のメモリダンプ差分取得処理の説明を終了する。 Above, description of the memory dump difference acquisition process of the 3rd Embodiment of this invention is complete | finished.
また、本発明の第3の実施の形態のOS用正メモリ221に対するメモリ更新処理は、図11に示した本発明の第2の実施の形態のメモリ更新処理と同じである。
The memory update process for the OS
本発明の第3の実施の形態によれば、本発明の第2の実施の形態の効果に加えて、メモリダンプ取得処理中又はメモリダンプ差分取得処理中に、OS12のOS用副メモリ222のメモリの読み出しと同時に、OS用正メモリ221の情報を反映させることによって、OS用正メモリ221とOS用副メモリ222の同期を停止する時間を短縮することができる。
According to the third embodiment of the present invention, in addition to the effect of the second embodiment of the present invention, during the memory dump acquisition process or the memory dump difference acquisition process, the
10 中央処理装置
11 メモリ管理部
12 オペレーティングシステム(OS)
20 主記憶装置
21 メモリ管理情報
22 OS用メモリ
23 ダンプメモリ
25 正メモリ管理情報
26 副メモリ管理情報
31 メモリダンプ取得部
40 外部記憶装置
201 正主記憶装置
202 副主記憶装置
211 メモリ管理テーブル
221 OS用正メモリ
222 OS用副メモリ
251 正メモリ管理テーブル
261 副メモリ管理テーブル
10
DESCRIPTION OF
Claims (13)
前記システム解析装置は、中央処理装置、主記憶装置及び外部記憶装置を備え、
前記主記憶装置は、当該主記憶装置に割り当てられた記憶領域を管理するためのメモリ管理情報を格納し、
前記計算機システムは、前記記憶領域に記憶された情報であるメモリダンプを取得するメモリダンプ取得部を含み、
前記メモリダンプ取得部は、前記メモリダンプを前記外部記憶装置に格納し、
前記中央処理装置は、
前記メモリダンプが取得されている記憶領域に対して書き込み要求を受け付けた場合には、前記メモリダンプが取得されている記憶領域と異なる記憶領域を前記主記憶装置に新たに割り当て、
前記新たに割り当てられた記憶領域に、前記メモリダンプが取得されている記憶領域に記録された情報を複写し、
前記新たに割り当てられた記憶領域に対応するメモリ管理情報を追加し、
前記メモリダンプの取得要求を受け付けた場合には、前記メモリ管理情報に基づいて、前記メモリダンプが取得される記憶領域に対応する、前記新たに割り当てられた記憶領域が存在するか否かを判定し、
前記メモリダンプが取得される記憶領域に対応する、前記新たに割り当てられた記憶領域が存在する場合には、前記新たに割り当てられた記憶領域に記憶された情報をメモリダンプとして取得することを特徴とするシステム解析装置。 A system analysis device for analyzing processing executed in a computer system,
The system analysis device includes a central processing unit, a main storage device, and an external storage device,
The main storage device stores memory management information for managing a storage area allocated to the main storage device,
The computer system includes a memory dump acquisition unit that acquires a memory dump that is information stored in the storage area,
The memory dump acquisition unit stores the memory dump in the external storage device;
The central processing unit is
When a write request is received for the storage area from which the memory dump is acquired, a storage area different from the storage area from which the memory dump is acquired is newly allocated to the main storage device,
Copy the information recorded in the storage area from which the memory dump has been acquired to the newly allocated storage area,
Add memory management information corresponding to the newly allocated storage area,
If the memory dump acquisition request is received, it is determined whether or not the newly allocated storage area corresponding to the storage area from which the memory dump is acquired exists based on the memory management information And
When there is a newly allocated storage area corresponding to the storage area from which the memory dump is acquired, the information stored in the newly allocated storage area is acquired as a memory dump. System analysis device.
前記中央処理装置は、前記メモリ管理情報に基づいて、前記メモリダンプが取得された後に更新された記憶領域からメモリダンプを取得することを特徴とする請求項1に記載のシステム解析装置。 The memory management information includes information indicating whether or not the storage area allocated to the main storage device has been updated after the memory dump is acquired;
The system analysis apparatus according to claim 1, wherein the central processing unit acquires a memory dump from a storage area updated after the memory dump is acquired based on the memory management information.
前記主記憶装置には、前記オペレーティングシステムごとに記憶領域が割り当てられることを特徴とする請求項1に記載のシステム解析装置。 A plurality of operating systems are executed on the system analysis device,
The system analysis apparatus according to claim 1, wherein a storage area is allocated to the main storage device for each operating system.
前記メモリダンプの取得要求を受け付けた場合に、メモリダンプの取得を開始する前に、メモリダンプが取得される記憶領域の書き込みを禁止し、
前記メモリダンプが取得される記憶領域の書き込みが禁止されているか否かに基づいて、前記メモリダンプが取得中であるか否かを判定することを特徴とする請求項1に記載のシステム解析装置。 The central processing unit is
When accepting the acquisition request of the memory dump, before starting the acquisition of the memory dump, prohibit the writing of the storage area from which the memory dump is acquired,
2. The system analysis apparatus according to claim 1, wherein it is determined whether or not the memory dump is being acquired based on whether or not writing to a storage area from which the memory dump is acquired is prohibited. .
前記システム解析装置は、中央処理装置、主記憶装置及び外部記憶装置を備え、
前記主記憶装置は、
情報が読み書きされる記憶領域を提供し、
正主記憶装置と、前記正主記憶装置に記憶された情報の複製を保持する副主記憶装置とを含み、
前記副主記憶装置は、前記正主記憶装置に記憶されている情報と一致するように同期され、
前記計算機システムは、前記記憶領域に記憶された情報であるメモリダンプを取得するメモリダンプ取得部を含み、
前記メモリダンプ取得部は、前記メモリダンプを前記外部記憶装置に格納し、
前記中央処理装置は、
前記メモリダンプの取得要求を受け付けた場合には、前記メモリダンプが取得される前記正主記憶装置に割り当てられた第1の記憶領域と、前記第1の記憶領域に対応する前記副主記憶装置に割り当てられた第2の記憶領域との同期を停止し、
前記第2の記憶領域に記憶された情報を読み出し、
前記第2の記憶領域から読み出された情報を、前記外部記憶装置に格納し、
前記第1の記憶領域と前記第2の記憶領域との同期を再開することを特徴とするシステム解析装置。 A system analysis device for analyzing processing executed in a computer system,
The system analysis device includes a central processing unit, a main storage device, and an external storage device,
The main storage device
Provide a storage area where information is read and written,
A primary main storage device, and a secondary main storage device that holds a copy of the information stored in the primary main storage device,
The secondary main storage device is synchronized to match the information stored in the primary main storage device;
The computer system includes a memory dump acquisition unit that acquires a memory dump that is information stored in the storage area,
The memory dump acquisition unit stores the memory dump in the external storage device;
The central processing unit is
When receiving the acquisition request of the memory dump, the first storage area allocated to the primary main storage device from which the memory dump is acquired, and the secondary main storage apparatus corresponding to the first storage area Stop synchronizing with the second storage area allocated to
Reading information stored in the second storage area;
Storing the information read from the second storage area in the external storage device;
A system analysis apparatus that resumes synchronization between the first storage area and the second storage area.
前記メモリ管理情報は、前記第1の記憶領域が前記メモリダンプが取得された後に更新されたか否かを示す情報を含み、
前記中央処理装置は、前記メモリ管理情報に基づいて、前記メモリダンプが取得された後に更新された記憶領域からメモリダンプを取得することを特徴とする請求項7に記載のシステム解析装置。 The primary main storage device stores memory management information for managing the first storage area;
The memory management information includes information indicating whether the first storage area has been updated after the memory dump is acquired;
8. The system analysis apparatus according to claim 7, wherein the central processing unit acquires a memory dump from a storage area updated after the memory dump is acquired based on the memory management information.
前記正主記憶装置には、前記オペレーティングシステムごとに記憶領域が割り当てられることを特徴とする請求項7に記載のシステム解析装置。 A plurality of operating systems are executed on the system analysis device,
The system analysis apparatus according to claim 7, wherein a storage area is allocated to the primary main storage device for each operating system.
前記主記憶装置は、当該主記憶装置に割り当てられた記憶領域を管理するためのメモリ管理情報を格納し、
前記メモリダンプ取得方法は、
前記メモリダンプが取得されている記憶領域に対して書き込み要求を受け付けた場合には、前記メモリダンプが取得されている記憶領域と異なる記憶領域を前記主記憶装置に新たに割り当て、
前記新たに割り当てられた記憶領域に、前記メモリダンプが取得されている記憶領域に記録された情報を複写し、
前記新たに割り当てられた記憶領域に対応するメモリ管理情報を追加し、
前記メモリダンプの取得要求を受け付けた場合には、前記メモリ管理情報に基づいて、前記メモリダンプが取得される記憶領域に対応する、前記新たに割り当てられた記憶領域が存在するか否かを判定し、
前記メモリダンプが取得される記憶領域に対応する、前記新たに割り当てられた記憶領域が存在する場合には、前記新たに割り当てられた記憶領域に記憶された情報をメモリダンプとして取得することを特徴とするメモリダンプ取得方法。 In a system analysis apparatus comprising a central processing unit, a main storage device and an external storage device, a method for obtaining a memory dump of a storage area allocated to the main storage device,
The main storage device stores memory management information for managing a storage area allocated to the main storage device,
The memory dump acquisition method is:
When a write request is received for the storage area from which the memory dump is acquired, a storage area different from the storage area from which the memory dump is acquired is newly allocated to the main storage device,
Copy the information recorded in the storage area from which the memory dump has been acquired to the newly allocated storage area,
Add memory management information corresponding to the newly allocated storage area,
If the memory dump acquisition request is received, it is determined whether or not the newly allocated storage area corresponding to the storage area from which the memory dump is acquired exists based on the memory management information And
When there is a newly allocated storage area corresponding to the storage area from which the memory dump is acquired, the information stored in the newly allocated storage area is acquired as a memory dump. Memory dump acquisition method.
前記主記憶装置は、当該主記憶装置に割り当てられた記憶領域を管理するためのメモリ管理情報を格納し、
前記メモリダンプ取得プログラムは、
前記メモリダンプが取得されている記憶領域に対して書き込み要求を受け付けた場合には、前記メモリダンプが取得されている記憶領域と異なる記憶領域を前記主記憶装置に新たに割り当てる手順と、
前記新たに割り当てられた記憶領域に、前記メモリダンプが取得されている記憶領域に記録された情報を複写する手順と、
前記新たに割り当てられた記憶領域に対応するメモリ管理情報を追加する手順と、
前記メモリダンプの取得要求を受け付けた場合には、前記メモリ管理情報に基づいて、前記メモリダンプが取得される記憶領域に対応する、前記新たに割り当てられた記憶領域が存在するか否かを判定する手順と、
前記メモリダンプが取得される記憶領域に対応する、前記新たに割り当てられた記憶領域が存在する場合には、前記新たに割り当てられた記憶領域に記憶された情報をメモリダンプとして取得する手順と、を前記システム解析装置に実行させることを特徴とするメモリダンプ取得プログラム。 A program that is executed by a system analysis device including a central processing unit and a main storage device and acquires a memory dump of a storage area allocated to the main storage device,
The main storage device stores memory management information for managing a storage area allocated to the main storage device,
The memory dump acquisition program is:
When a write request is received for the storage area from which the memory dump has been acquired, a procedure for newly allocating a storage area different from the storage area from which the memory dump is acquired;
A procedure for copying the information recorded in the storage area from which the memory dump has been acquired to the newly allocated storage area;
Adding memory management information corresponding to the newly allocated storage area;
If the memory dump acquisition request is received, it is determined whether or not the newly allocated storage area corresponding to the storage area from which the memory dump is acquired exists based on the memory management information And the steps to
If there is a newly allocated storage area corresponding to the storage area from which the memory dump is acquired, a procedure for acquiring information stored in the newly allocated storage area as a memory dump; Is executed by the system analysis apparatus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007316779A JP2009140293A (en) | 2007-12-07 | 2007-12-07 | System analyzer, memory dump acquisition method and memory dump acquisition program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007316779A JP2009140293A (en) | 2007-12-07 | 2007-12-07 | System analyzer, memory dump acquisition method and memory dump acquisition program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009140293A true JP2009140293A (en) | 2009-06-25 |
Family
ID=40870825
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007316779A Pending JP2009140293A (en) | 2007-12-07 | 2007-12-07 | System analyzer, memory dump acquisition method and memory dump acquisition program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009140293A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013080313A1 (en) * | 2011-11-30 | 2013-06-06 | 株式会社日立製作所 | Memory dump collection technique |
WO2013150634A1 (en) * | 2012-04-05 | 2013-10-10 | 株式会社日立製作所 | Computer system, computer, and program |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0282326A (en) * | 1988-09-20 | 1990-03-22 | Fujitsu Ltd | Dump device for online memory |
JPH07210429A (en) * | 1994-01-11 | 1995-08-11 | Hitachi Ltd | Dump acquiring method, controller and information processing system |
JPH10154087A (en) * | 1996-11-25 | 1998-06-09 | Mitsubishi Electric Corp | Memory content dumping method |
JPH11345158A (en) * | 1998-06-03 | 1999-12-14 | Hitachi Ltd | Dump acquiring method, controller and information processing system |
US20020093691A1 (en) * | 2001-01-17 | 2002-07-18 | Paul Durrant | Live memory snapshot |
JP2007226413A (en) * | 2006-02-22 | 2007-09-06 | Hitachi Ltd | Memory dump method, memory dump program and computer system |
-
2007
- 2007-12-07 JP JP2007316779A patent/JP2009140293A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0282326A (en) * | 1988-09-20 | 1990-03-22 | Fujitsu Ltd | Dump device for online memory |
JPH07210429A (en) * | 1994-01-11 | 1995-08-11 | Hitachi Ltd | Dump acquiring method, controller and information processing system |
JPH10154087A (en) * | 1996-11-25 | 1998-06-09 | Mitsubishi Electric Corp | Memory content dumping method |
JPH11345158A (en) * | 1998-06-03 | 1999-12-14 | Hitachi Ltd | Dump acquiring method, controller and information processing system |
US20020093691A1 (en) * | 2001-01-17 | 2002-07-18 | Paul Durrant | Live memory snapshot |
JP2007226413A (en) * | 2006-02-22 | 2007-09-06 | Hitachi Ltd | Memory dump method, memory dump program and computer system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013080313A1 (en) * | 2011-11-30 | 2013-06-06 | 株式会社日立製作所 | Memory dump collection technique |
JPWO2013080313A1 (en) * | 2011-11-30 | 2015-04-27 | 株式会社日立製作所 | Memory dump collection method |
WO2013150634A1 (en) * | 2012-04-05 | 2013-10-10 | 株式会社日立製作所 | Computer system, computer, and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190012110A1 (en) | Information processing apparatus, and control method of information processing system | |
US20080028402A1 (en) | Method of setting operation environment and computer system | |
US7631156B2 (en) | Storage system issuing optimum I/O command to allocation-on-use enabled volume and controlling method therefor | |
WO2019061352A1 (en) | Data loading method and device | |
US7689796B2 (en) | Computer system, storage system and method for saving storage area by integrating same data | |
JP2014513338A5 (en) | Method, computer readable storage medium and system for optimal compression of a virtual disk | |
US20170364394A1 (en) | System and method to perform live migration of a virtual machine without suspending operation thereof | |
US9542112B2 (en) | Secure cross-process memory sharing | |
US20160266844A1 (en) | Storage system, node apparatus, cache control method and program | |
US10635604B2 (en) | Extending a cache of a storage system | |
US20150378770A1 (en) | Virtual machine backup | |
US20160098302A1 (en) | Resilient post-copy live migration using eviction to shared storage in a global memory architecture | |
JP2010191524A (en) | Management computer and processing management method | |
JP2009230596A (en) | User data protection method for server device, server device, and computer program | |
US20170090964A1 (en) | Post-copy virtual machine migration with assigned devices | |
US20070260769A1 (en) | Computer-implemented method, apparatus, and computer program product for managing DMA write page faults using a pool of substitute pages | |
US11734430B2 (en) | Configuration of a memory controller for copy-on-write with a resource controller | |
CN114595164B (en) | Method and apparatus for managing TLB cache in virtualized platform | |
US20180157605A1 (en) | Configuration of a memory controller for copy-on-write | |
US10001921B2 (en) | Data migration method and data migration device | |
JP2009140293A (en) | System analyzer, memory dump acquisition method and memory dump acquisition program | |
US10210035B2 (en) | Computer system and memory dump method | |
CN103488606A (en) | Node controller based request response method and device | |
US9372700B2 (en) | Network boot system | |
JP2013015990A (en) | Information processing system, information processing program and information processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100128 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110531 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110607 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20111011 |