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 PDF

Info

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
Application number
JP2007316779A
Other languages
Japanese (ja)
Inventor
Yuji Sumiya
有司 角谷
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2007316779A priority Critical patent/JP2009140293A/en
Publication of JP2009140293A publication Critical patent/JP2009140293A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To acquire a memory dump without stopping a calculator. <P>SOLUTION: In the system analyzer, memory management information for managing a storage region is stored in a main storage. In the case of receiving a write request to the storage region in which the memory dump is acquired, the system analyzer newly allocates a storage region different from the storage region in which the memory dump is acquired, adds the memory management information corresponding to the newly allocated storage region, determines whether or not the newly allocated storage region corresponding to the storage region in which the memory dump is acquired is present on the basis of the memory management information in receiving a memory dump acquisition request, and acquires information stored in the newly allocated storage region as the memory dump when the newly allocated storage region corresponding to the storage region in which the memory dump is acquired is present. <P>COPYRIGHT: (C)2009,JPO&INPIT

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には、メモリダンプの取得中であっても、計算機の処理を継続することを可能とする技術が開示されている。
特開平10−154087号公報
Therefore, Patent Document 1 discloses a technique that allows the computer to continue processing even while a memory dump is being acquired.
JP-A-10-154087

特許文献1に開示された技術では、メモリダンプの取得中に書き込み命令を受け付けた場合には、空きメモリが存在すればメモリ内容を空きメモリに複写することによって、計算機の処理を継続できるようにしている。   In the technique disclosed in Patent Document 1, when a write command is received during acquisition of a memory dump, if the free memory exists, the contents of the memory are copied to the free memory so that the processing of the computer can be continued. ing.

しかし、一台の計算機上で複数のオペレーティングシステム(OS)が稼働している場合には、特許文献1に開示された技術を適用することは困難である。   However, when a plurality of operating systems (OS) are operating on one computer, it is difficult to apply the technique disclosed in Patent Document 1.

本発明の代表的な一形態では、計算機システムにおけるシステム解析装置であって、前記システム解析装置は、中央処理装置、主記憶装置及び外部記憶装置を備え、前記主記憶装置は、当該主記憶装置に割り当てられた記憶領域を管理するためのメモリ管理情報を格納し、前記計算機システムは、前記主記憶装置に割り当てられた記憶領域のメモリダンプを取得するメモリダンプ取得部を含み、前記メモリダンプ取得部は、前記メモリダンプを前記外部記憶装置に格納し、前記中央処理装置は、前記メモリダンプが取得されている記憶領域に対して書き込み要求を受け付けた場合には、前記メモリダンプが取得されている記憶領域と異なる記憶領域を前記主記憶装置に新たに割り当て、前記新たに割り当てられた記憶領域に、前記メモリダンプが取得されている記憶領域に記録された情報を複写し、前記新たに割り当てられた記憶領域に対応するメモリ管理情報を追加し、前記メモリダンプの取得要求を受け付けた場合には、前記メモリ管理情報に基づいて、前記メモリダンプが取得される記憶領域に対応する、前記新たに割り当てられた記憶領域が存在するか否かを判定し、前記メモリダンプが取得される記憶領域に対応する、前記新たに割り当てられた記憶領域が存在する場合には、前記新たに割り当てられた記憶領域に記憶された情報をメモリダンプとして取得する。   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 central processing unit 10, a main storage device 20, and an external storage device 40. The central processing unit 10, the main storage device 20, and the external storage device 40 are connected by a bus 50.

中央処理装置10は、主記憶装置20に記憶された各種プログラムを実行することによって、各種業務を処理する。具体的には、中央処理装置10は、オペレーティングシステム12、メモリの状態を管理するメモリ管理部11及びメモリダンプ取得部31などが実行される。なお、システム解析装置では、単一のシステムが稼働していてもよいし、複数のシステムが並列して稼働し、複数のOS12が実行されていてもよい。   The central processing unit 10 executes various programs by executing various programs stored in the main storage device 20. Specifically, the central processing unit 10 executes an operating system 12, a memory management unit 11 that manages a memory state, a memory dump acquisition unit 31, and the like. In the system analysis apparatus, a single system may be operating, a plurality of systems may be operating in parallel, and a plurality of OSs 12 may be executed.

主記憶装置20は、中央処理装置10によって実行されるプログラム及び当該プログラムによって使用されるデータが記憶される。具体的には、主記憶装置20には、OS12、メモリ管理部11、及びメモリダンプ取得部31などのプログラムの他に、メモリ管理情報21、OS用メモリ22、及びダンプメモリ23が記憶されている。   The main storage device 20 stores a program executed by the central processing unit 10 and data used by the program. Specifically, the main storage device 20 stores memory management information 21, an OS memory 22, and a dump memory 23 in addition to programs such as the OS 12, the memory management unit 11, and the memory dump acquisition unit 31. Yes.

メモリ管理部11は、システム解析装置の起動とともに実行される。メモリ管理部11は、システム解析装置で稼働するシステムが使用する記憶領域(メモリ)を管理する。システム解析装置において、新たにプログラムが実行されると、メモリ管理部11に登録され、当該プログラムを実行するためにメモリが割り当てられる。   The memory management unit 11 is executed when the system analysis apparatus is activated. The memory management unit 11 manages a storage area (memory) used by a system operating in the system analysis apparatus. When a new program is executed in the system analysis apparatus, it is registered in the memory management unit 11 and a memory is allocated to execute the program.

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 main storage device 20 for each system (OS 12).

メモリダンプ取得部31は、OS12上で実行されるアプリケーションとして実現しても、OS12内で実行されるモジュールとして実現してもよい。さらに、OS12とは別に実行されるソフトウェアとして実現しても、システム解析装置とは別の計算機で実行されるソフトウェア又はハードウェアとして実現してもよい。   The memory dump acquisition unit 31 may be realized as an application executed on the OS 12 or as a module executed in the OS 12. Further, it may be realized as software executed separately from the OS 12, or may be realized as software or hardware executed by a computer different from the system analysis apparatus.

メモリ管理情報21は、メモリの状態を記憶する。メモリ管理情報21の詳細は、図2にて後述する。   The memory management information 21 stores the state of the memory. Details of the memory management information 21 will be described later with reference to FIG.

OS用メモリ22は、システム解析装置で実行される各OS12によって使用される記憶領域である。   The OS memory 22 is a storage area used by each OS 12 executed by the system analysis apparatus.

ダンプメモリ23は、メモリダンプ取得開始時のOS用メモリ22を退避させるための記憶領域である。また、ダンプメモリ23は、OS用メモリ22に割り当てられてもよいし、OS用メモリ22とは別に割り当てられてもよい。本発明の第1の実施の形態では、ダンプメモリ23は、図1に示すように、OS用メモリ22とは別の領域に割り当てられる。   The dump memory 23 is a storage area for saving the OS memory 22 at the start of memory dump acquisition. The dump memory 23 may be allocated to the OS memory 22 or may be allocated separately from the OS memory 22. In the first embodiment of the present invention, the dump memory 23 is allocated to an area different from the OS memory 22 as shown in FIG.

ダンプメモリ23がOS用メモリ22に割り当てられる場合には、メモリ管理部11によって各OS12の実行が開始されるタイミングで、OS用メモリ22を割り当てると同時にダンプメモリ23を割り当てることが考えられる。この場合、各OS12のメモリダンプを取得する際には、異なるダンプメモリ23が使用される。   When the dump memory 23 is allocated to the OS memory 22, it is conceivable to allocate the dump memory 23 at the same time as the OS memory 22 is allocated at the timing when the execution of each OS 12 is started by the memory management unit 11. In this case, a different dump memory 23 is used when acquiring a memory dump of each OS 12.

一方、ダンプメモリ23がOS用メモリ22とは別に主記憶装置20に割り当てられる場合には、定義ファイルなどによって予め設定された情報又はOS用メモリ22の状態に基づいて、メモリ管理部11によって予め割り当てることが考えられる。この場合、各OS12のメモリダンプを取得する際に、同じダンプメモリ23が使用される。   On the other hand, when the dump memory 23 is allocated to the main storage device 20 separately from the OS memory 22, the memory management unit 11 preliminarily stores the dump memory 23 based on information preset by a definition file or the like or the state of the OS memory 22. It is possible to assign. In this case, the same dump memory 23 is used when acquiring the memory dump of each OS 12.

以上、本発明の第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 memory management information 21 will be described.

図2は、本発明の第1の実施の形態のメモリ管理情報21の一例であるメモリ管理テーブル211を示す図である。   FIG. 2 illustrates a memory management table 211 that is an example of the memory management information 21 according to the first embodiment of this invention.

メモリ管理テーブル211は、ドメインID2111、仮想論理アドレス2112、実物理アドレス2113、使用中フラグ2114、ダンプフラグ2115、及び更新フラグ2116を含む。メモリ管理テーブル211には、主記憶装置20に割り当てられたメモリごとに、レコードが作成される。   The memory management table 211 includes a domain ID 2111, a virtual logical address 2112, a real physical address 2113, a busy flag 2114, a dump flag 2115, and an update flag 2116. In the memory management table 211, a record is created for each memory allocated to the main storage device 20.

ドメインID2111は、当該レコードに対応するメモリを使用するOS12を識別する識別子である。   The domain ID 2111 is an identifier for identifying the OS 12 that uses the memory corresponding to the record.

仮想論理アドレス2112は、OS12によって使用される記憶領域のアドレスである。仮想論理アドレス2112は、OS12によって割り当てられた仮想的なアドレスである。   The virtual logical address 2112 is an address of a storage area used by the OS 12. The virtual logical address 2112 is a virtual address assigned by the OS 12.

実物理アドレス2113は、メモリ管理部11によって使用されるアドレスである。実物理アドレス2113は、すべてのメモリに対して一意に特定されるアドレスである。   The real physical address 2113 is an address used by the memory management unit 11. The real physical address 2113 is an address uniquely specified for all memories.

使用中フラグ2114は、当該メモリの使用状態を管理する。ダンプフラグ2115は、当該メモリがメモリダンプ取得中の退避状態であるか否かを管理する。   The in-use flag 2114 manages the use state of the memory. The dump flag 2115 manages whether or not the memory is in a save state during memory dump acquisition.

更新フラグ2116は、メモリダンプを取得後の更新状態を管理する。すなわち、メモリダンプが取得されると、更新フラグ2116の値に「オフ」が設定され、メモリダンプ取得後にメモリの内容が更新された場合には「オン」が設定される。   The update flag 2116 manages the update state after acquiring the memory dump. That is, when a memory dump is acquired, the value of the update flag 2116 is set to “off”, and when the memory contents are updated after the memory dump is acquired, “on” is set.

以上、本発明の第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 central processing unit 10 receives a memory dump acquisition request from the OS 12, the central processing unit 10 executes the memory dump acquisition unit 31, and notifies the memory management unit 11 of the start of memory dump acquisition of the OS 12 that is the memory dump acquisition target (S101).

中央処理装置10は、メモリ管理部11によって、メモリダンプ取得開始を通知したメモリダンプ取得部31をメモリ管理部11に登録する(S110)。   The central processing unit 10 registers the memory dump acquisition unit 31 notified of the start of memory dump acquisition in the memory management unit 11 by the memory management unit 11 (S110).

中央処理装置10は、メモリダンプを取得する対象のOS12に対応するOS用メモリ22に書き込み保護を実施する(S111)。ここで、書き込み保護は、中央処理装置又は主記憶装置の機能によって実現してもよいし、メモリ管理テーブル211に情報を登録することによってメモリ管理部11の処理で実現してもよい。   The central processing unit 10 implements write protection on the OS memory 22 corresponding to the OS 12 for which a memory dump is acquired (S111). Here, the write protection may be realized by a function of the central processing unit or the main storage device, or may be realized by processing of the memory management unit 11 by registering information in the memory management table 211.

中央処理装置10は、メモリダンプ取得部31にメモリダンプを取得する対象のOS12のメモリダンプを取得する準備が完了した旨を通知する(S112)。   The central processing unit 10 notifies the memory dump acquisition unit 31 that the preparation for acquiring the memory dump of the target OS 12 for acquiring the memory dump is completed (S112).

中央処理装置10は、メモリダンプ取得部31によって、メモリダンプを取得する対象のOS12のメモリの読み出しをメモリ管理部11に指示する(S102)。ここで、S102の処理は、メモリダンプ取得部31のメモリダンプを取得する対象のOS12のメモリ読み出し命令を、メモリ管理部11の処理が横取りすることによって実現してもよい。   The central processing unit 10 instructs the memory management unit 11 to read out the memory of the OS 12 from which the memory dump is acquired by using the memory dump acquisition unit 31 (S102). Here, the processing of S102 may be realized by the processing of the memory management unit 11 intercepting the memory read command of the OS 12 that is the target of acquiring the memory dump of the memory dump acquisition unit 31.

中央処理装置10は、受け付けた読み出し指示がS110の処理で登録されたメモリダンプ取得部31からの指示である場合には、メモリ管理部11によって、読み出し対象のメモリのすべてに対して、以下に示すS114からS1171までの処理、又は、S114からS1172までの処理を繰り返し実行する(S113)。繰り返しの単位は、メモリごとでもよいし、所定のサイズに区切られた複数のメモリごとでもよい。   When the received read instruction is an instruction from the memory dump acquisition unit 31 registered in the process of S110, the central processing unit 10 performs the following on all of the memory to be read by the memory management unit 11. The processing from S114 to S1171 or the processing from S114 to S1172 is repeatedly executed (S113). The repetition unit may be for each memory, or for each of a plurality of memories partitioned into a predetermined size.

中央処理装置10は、メモリ管理部11によって、メモリ管理テーブル211から読み出されるメモリに関する情報を取得する(S114)。   The central processing unit 10 acquires information about the memory read from the memory management table 211 by the memory management unit 11 (S114).

中央処理装置10は、S114の処理で取得された情報のダンプフラグ2115の値が「オン」であるか否かを判定する(S115)
中央処理装置10は、ダンプフラグ2115の値が「オン」である場合には(S115の結果が「オン」)、実物理アドレス2113の値に基づいて、主記憶装置20のダンプメモリ23に格納された情報を読み出す(S1161)。さらに、S1161の処理で読み出されたメモリを解放する(S1171)。具体的には、ダンプメモリを取得する対象のメモリの書き込み保護を解除するとともに、当該メモリに対応するメモリ管理テーブル211のレコードについて、ドメインID2111及び仮想論理アドレス2112を初期化し、使用中フラグ2114、ダンプフラグ2115及び更新フラグ2116にオフを設定する。
The central processing unit 10 determines whether or not the value of the dump flag 2115 of the information acquired in the process of S114 is “ON” (S115).
When the value of the dump flag 2115 is “ON” (the result of S115 is “ON”), the central processing unit 10 stores the value in the dump memory 23 of the main storage device 20 based on the value of the real physical address 2113. The read information is read (S1161). Further, the memory read in the process of S1161 is released (S1171). Specifically, the write protection of the memory for which the dump memory is acquired is canceled, the domain ID 2111 and the virtual logical address 2112 are initialized for the record of the memory management table 211 corresponding to the memory, the in-use flag 2114, The dump flag 2115 and the update flag 2116 are set to OFF.

一方、中央処理装置10は、ダンプフラグ2115の値が「オフ」である場合には(S115の結果が「オフ」)、ダンプメモリ23が作成されていないため、実物理アドレス2113の値に基づいて、OS用メモリ22に格納された情報を読み出す(S1162)。   On the other hand, when the value of the dump flag 2115 is “off” (the result of S115 is “off”), the central processing unit 10 has not created the dump memory 23 and therefore based on the value of the real physical address 2113. Then, the information stored in the OS memory 22 is read (S1162).

中央処理装置10は、S1162の処理で読み出されたメモリの書き込み保護を解除するともに、当該メモリに対応するメモリ管理テーブル211のレコードの更新フラグ2116の値を「オフ」に設定する(S1172)。   The central processing unit 10 releases the write protection of the memory read in the process of S1162, and sets the value of the update flag 2116 of the record of the memory management table 211 corresponding to the memory to “off” (S1172). .

そして、中央処理装置10は、すべての対象メモリに対する処理が完了すると、メモリ管理部11によって、メモリダンプ取得部31に、S1161又はS1162の処理で読み出されたメモリの情報を送信する(S118)。   When the processing for all the target memories is completed, the central processing unit 10 transmits the memory information read in the processing of S1161 or S1162 to the memory dump acquisition unit 31 by the memory management unit 11 (S118). .

中央処理装置10は、メモリダンプ取得部31によって、S118の処理で送信されたメモリの情報を外部記憶装置40に保存する(S103)。さらに、メモリ管理部11にメモリダンプ取得処理の終了を通知する(S104)。   The central processing unit 10 uses the memory dump acquisition unit 31 to save the memory information transmitted in the process of S118 in the external storage device 40 (S103). Further, the end of the memory dump acquisition process is notified to the memory management unit 11 (S104).

中央処理装置10は、メモリダンプ取得終了の通知元であるメモリダンプ取得部31の登録を解除する(S110)。   The central processing unit 10 cancels the registration of the memory dump acquisition unit 31 that is a notification source of the completion of memory dump acquisition (S110).

なお、図3に示したフローチャートでは、メモリダンプ取得部31によるOS12に対応するメモリの情報の取得(S102〜S103)を一度に処理しているが、所定の大きさに分割し、複数回に分けて繰り返し処理してもよい。   In the flowchart shown in FIG. 3, the memory dump acquisition unit 31 acquires the memory information corresponding to the OS 12 (S102 to S103) at one time. It may be divided and repeated.

以上で、本発明の第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 central processing unit 10 executes the memory dump acquisition unit 31 and notifies the memory management unit 11 of the start of acquisition of the memory dump difference of the OS 12 that is the memory dump (difference) acquisition target (S121).

中央処理装置10は、メモリ管理部11によって、メモリダンプを取得する対象のメモリのうち、メモリ管理テーブル211の対応するレコードの更新フラグ2116の値が「オン」であるメモリに書き込み保護を実施する(S131)。   The central processing unit 10 uses the memory management unit 11 to perform write protection on the memory for which the memory dump is acquired, in which the value of the update flag 2116 of the corresponding record in the memory management table 211 is “ON”. (S131).

中央処理装置10は、メモリダンプ取得部31にメモリダンプを取得する対象のOS12のメモリダンプの差分を取得する準備が完了した旨を通知する(S132)。   The central processing unit 10 notifies the memory dump acquisition unit 31 that preparation for acquiring the memory dump difference of the target OS 12 from which the memory dump is acquired has been completed (S132).

中央処理装置10は、メモリダンプ取得部31によって、メモリダンプの差分を取得する対象のOS12のメモリの読み出しをメモリ管理部11に指示する(S122)。   The central processing unit 10 instructs the memory management unit 11 to read out the memory of the target OS 12 from which the memory dump difference is acquired by the memory dump acquisition unit 31 (S122).

以上のように、メモリの内容が更新された場合のみメモリダンプを取得するようにすることによって、必要なメモリダンプを取得する時間を短縮することができる。   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 external storage device 40 in the process of S103 may become a bottleneck. Further, if the writing speed is high and a large-capacity external storage device is used, the cost increases.

この問題点は、S103の処理でメモリの情報が保存される外部記憶装置40について、書き込み速度の異なる複数の外部記憶装置によって実装することによって解決することができる。具体的には、メモリダンプ取得部31によって直接書き込まれる外部記憶装置は、小容量かつ高速に書き込み可能な記憶装置とし、一方、メモリダンプを長期保存する外部記憶装置は大容量かつ低速な記憶装置とする。このように実装することによって、実現コストを抑えながら、取得されたメモリダンプを外部記憶装置40に格納する時間を短縮することができる。さらに、メモリダンプ取得処理中又はメモリダンプ差分取得処理中にOS用メモリ22を退避させるためのダンプメモリ23に必要となる容量を削減することも可能である。   This problem can be solved by mounting the external storage device 40 in which the memory information is stored in the process of S103 with a plurality of external storage devices having different writing speeds. Specifically, the external storage device that is directly written by the memory dump acquisition unit 31 is a storage device that has a small capacity and can be written at high speed, while the external storage device that stores the memory dump for a long time is a large capacity and low speed storage device And By mounting in this way, it is possible to reduce the time for storing the acquired memory dump in the external storage device 40 while suppressing the realization cost. Furthermore, it is possible to reduce the capacity required for the dump memory 23 for saving the OS memory 22 during the memory dump acquisition process or the memory dump difference acquisition process.

図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 OS memory 22 used by the OS 12 that is a target for acquiring a memory dump during the memory dump acquisition process or the memory dump difference acquisition process.

中央処理装置10は、OS12によって、メモリ管理部11に対して、メモリ領域への書き込みを指示する(S141)。S141の処理は、OS12のメモリ書き込み命令を、メモリ管理部11が横取りすることによって実現してもよい。   The central processing unit 10 instructs the memory management unit 11 to write to the memory area using the OS 12 (S141). The process of S141 may be realized by the memory management unit 11 intercepting a memory write command of the OS 12.

中央処理装置10は、メモリ管理部11によって、書き込み対象のメモリのすべてに対し、以下のS152からS156までの処理を繰り返し実行する(S151)。繰り返しの単位は、メモリごとでもよいし、所定のサイズに区切られた複数のメモリごとでもよい。   The central processing unit 10 repeatedly executes the following processing from S152 to S156 for all the write target memories by the memory management unit 11 (S151). The repetition unit may be for each memory, or for each of a plurality of memories partitioned into a predetermined size.

中央処理装置10は、メモリ管理部11によって、書き込み対象のメモリに書き込み保護が施されているか否かを判定する(S152)。ここで、書き込み保護確認は、図3のS111又は図4のS131処理の書き込み保護と連動させることによって、中央処理装置10又は主記憶装置20の機能によって実現してもよいし、メモリ管理テーブル211に情報を登録することによって、メモリ管理部11で実現してもよい。   The central processing unit 10 determines whether the memory to be written has been write-protected by the memory management unit 11 (S152). Here, the write protection check may be realized by the function of the central processing unit 10 or the main storage device 20 in conjunction with the write protection of the S111 process of FIG. 3 or the S131 process of FIG. It may be realized by the memory management unit 11 by registering information in the memory management unit 11.

中央処理装置10は、メモリに書き込み保護が施されている場合には(S152の結果が「Yes」)、主記憶装置20に別のメモリを新たに割り当てる(S153)。ここで、別のメモリの割り当ては、中央処理装置10又は主記憶装置20の機能によって実現してもよいし、メモリ管理テーブル211に基づいて、メモリ管理部11によって実現してもよい。さらに、割り当てられた別のメモリに書き込み対象のメモリに格納された情報を複写する。   If the memory is write-protected (the result of S152 is “Yes”), the central processing unit 10 newly allocates another memory to the main storage device 20 (S153). Here, another memory allocation may be realized by the function of the central processing unit 10 or the main storage device 20, or may be realized by the memory management unit 11 based on the memory management table 211. Further, the information stored in the write target memory is copied to another allocated memory.

中央処理装置10は、メモリ管理部11によって、メモリ管理テーブル211の書き込み保護されているメモリに対応するレコードのダンプフラグ2115を「オン」に設定する。そして、別に割り当てられたメモリに対応するドメインID2111に当該OS12のドメインIDを設定し、仮想論理アドレス2112に書き込み保護されているメモリに対応する仮想論理アドレスを設定し、さらに、使用中フラグ2114を「オン」に設定する(S154)。   The central processing unit 10 sets the dump flag 2115 of the record corresponding to the write-protected memory in the memory management table 211 to “ON” by the memory management unit 11. Then, the domain ID of the OS 12 is set in the domain ID 2111 corresponding to the separately allocated memory, the virtual logical address corresponding to the memory write-protected in the virtual logical address 2112 is set, and the in-use flag 2114 is set. “ON” is set (S154).

中央処理装置10は、S154の処理が終了した場合、又は、メモリに書き込み保護が施されていない場合には(S152の結果が「No」)、主記憶装置20にOS12から書き込みを指示された情報を書き込む(S155)。メモリに書き込み保護が施されている場合には(S152の結果が「Yes」)、新たに割り当てられたメモリに指示された情報を書き込む。また、メモリに書き込み保護が施されていない場合には(S152の結果が「No」)、OS用メモリ22に指示された情報を書き込む。   The central processing unit 10 is instructed to write to the main storage device 20 from the OS 12 when the processing of S154 is completed or when the memory is not write-protected (the result of S152 is “No”). Information is written (S155). If the memory is write protected (the result of S152 is “Yes”), the instructed information is written to the newly allocated memory. If the memory is not write protected (the result of S152 is “No”), the instructed information is written to the OS memory 22.

中央処理装置10は、メモリ管理部11によって、メモリ管理テーブル211のS155の処理で書き込まれたメモリに対応するレコードの更新フラグ2116の値を「オン」に設定する(S156)。   The central processing unit 10 sets the value of the update flag 2116 of the record corresponding to the memory written in S155 of the memory management table 211 to “ON” by the memory management unit 11 (S156).

以上のメモリ更新処理を実行することによって、OS12が使用するOS用メモリ22のメモリダンプ取得処理中又はメモリダンプ差分取得中に、当該OS用メモリ22にデータを書き込む場合であっても、メモリダンプ開始時点のメモリを保存することができる。   By executing the above memory update process, even when data is written to the OS memory 22 during the memory dump acquisition process or the memory dump difference acquisition of the OS memory 22 used by the OS 12, the memory dump The starting memory can be saved.

本発明の第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 OS memory 22 read / written by the OS 12 without stopping the OS 12 while the memory dump acquisition process is started. Further, the memory dump difference of the OS memory 22 belonging to the OS 12 can be acquired without stopping the OS 12 while the memory dump difference acquisition process is started.

また、本発明の第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 dump acquisition unit 31 is provided outside the system analysis apparatus, and a plurality of system analysis apparatuses are requested to acquire a memory dump at the same time. System memory dump can be acquired at the same time.

(第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 OS 12 by allocating another storage area to the main storage device 20. The method was explained. In the second embodiment of the present invention, a case where the main storage device is duplicated will be described.

なお、本発明の第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 main storage device 20 of the system analysis apparatus according to the first embodiment of the present invention. The difference from the system analysis apparatus according to the first embodiment of the present invention is that the main storage device 20 is replaced with a primary main storage device 201 and a sub main storage device 202.

正主記憶装置201には、正メモリの状態を記憶する正メモリ管理情報25が記憶され、さらに、システム解析装置で実行されている各OS12によって使用されるOS用正メモリ221が割り当てられている。   The primary main storage device 201 stores primary memory management information 25 for storing the state of the primary memory, and further, an OS primary memory 221 used by each OS 12 executed in the system analysis device is allocated. .

副主記憶装置202には、副メモリの状態を記憶する副メモリ管理情報26が記憶され、さらに、システム解析装置で実行されている各OS12に対応するOS用副メモリ222が割り当てられている。したがって、OS用副メモリ222は、OS用正メモリ221にも対応することになる。   The secondary main storage device 202 stores secondary memory management information 26 for storing the state of the secondary memory, and further, an OS secondary memory 222 corresponding to each OS 12 executed by the system analysis device is allocated. Therefore, the OS sub memory 222 also corresponds to the OS primary memory 221.

また、OS用正メモリ221及びOS用副メモリ222は、同期される。OS用正メモリ221とOS用副メモリ222との同期は、メモリ管理部11によって実現されてもよいし、OS12上で動作するアプリケーションとして実現してもよい。さらに、OS12内で動作するモジュールとして実現しても、メモリ管理部11とは別に中央処理装置10によって実行されるソフトウェアとして実現してもよく、中央処理装置10とは別の処理装置によって実行されるソフトウェア又はハードウェアとして実現してもよい。また、正主記憶装置201に対して、副主記憶装置202は一つであってもよいし、複数であってもよい。   Further, the OS primary memory 221 and the OS secondary memory 222 are synchronized. The synchronization between the OS primary memory 221 and the OS sub memory 222 may be realized by the memory management unit 11 or may be realized as an application operating on the OS 12. Further, it may be realized as a module that operates in the OS 12 or may be realized as software executed by the central processing unit 10 separately from the memory management unit 11, and may be executed by a processing device different from the central processing unit 10. It may be realized as software or hardware. Further, the primary main storage device 201 may have one secondary main storage device 202 or a plurality of secondary main storage devices 202.

以上、本発明の第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 memory management information 25 according to the second embodiment of this invention.

正メモリ管理テーブル251は、ドメインID2111、仮想論理アドレス2112、実物理アドレス2113、使用中フラグ2114、及び更新フラグ2116を含む。正メモリ管理テーブル251には、正主記憶装置201に割り当てられたメモリ(記憶領域)ごとに、レコードが作成される。   The primary memory management table 251 includes a domain ID 2111, a virtual logical address 2112, a real physical address 2113, a busy flag 2114, and an update flag 2116. In the primary memory management table 251, a record is created for each memory (storage area) allocated to the primary main storage device 201.

ドメインID2111、仮想論理アドレス2112、実物理アドレス2113、使用中フラグ2114、及び更新フラグ2116は、本発明の第1の実施の形態のメモリ管理テーブル211と同じ用途である。   The domain ID 2111, the virtual logical address 2112, the real physical address 2113, the in-use flag 2114, and the update flag 2116 have the same application as the memory management table 211 according to the first embodiment of this invention.

図8は、本発明の第2の実施の形態の副メモリ管理情報26の一例である副メモリ管理テーブル261を示す図である。   FIG. 8 is a diagram illustrating the sub memory management table 261 that is an example of the sub memory management information 26 according to the second embodiment of this invention.

副メモリ管理テーブル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 main storage device 201 is allocated to the secondary main storage device 202, and the stored contents are synchronized. In the secondary memory management table 261, a record is created for each memory allocated to the secondary main storage device 202. Therefore, each record in the secondary memory management table 261 also corresponds to the memory allocated to the primary main storage device 201.

以上で、本発明の第2の実施の形態の正メモリ管理情報25の一例である正メモリ管理テーブル251及び副メモリ管理情報26の一例である副メモリ管理テーブル261の説明を終了する。続いて、各構成の処理について説明する。   The description of the primary memory management table 251 as an example of the primary memory management information 25 and the secondary memory management table 261 as an example of the secondary memory management information 26 according to the second embodiment of the present invention is finished. Subsequently, processing of each configuration will be described.

図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 central processing unit 10 receives a memory dump acquisition request from the OS 12, the central processing unit 10 executes the memory dump acquisition unit 31 and notifies the memory management unit 11 of the start of memory dump acquisition of the OS 12 subject to memory dump acquisition (S201).

中央処理装置10は、メモリ管理部11によって、メモリダンプを取得するOS12に対応するOS用正メモリ221と、当該OS用正メモリ221に対応するOS用副メモリ222との同期を停止する(S211)。   The central processing unit 10 causes the memory management unit 11 to stop synchronization between the OS primary memory 221 corresponding to the OS 12 that acquires the memory dump and the OS secondary memory 222 corresponding to the OS primary memory 221 (S211). ).

中央処理装置10は、メモリダンプ取得部31にメモリダンプを取得する対象のOS12のメモリダンプを取得する準備が完了した旨を通知する(S212)。   The central processing unit 10 notifies the memory dump acquisition unit 31 that the preparation for acquiring the memory dump of the target OS 12 for acquiring the memory dump is completed (S212).

中央処理装置10は、メモリダンプ取得部31によって、メモリダンプを取得する対象のOS12のメモリの読み出しをメモリ管理部11に指示する(S202)。ここで、S202の処理は、メモリダンプ取得部31のメモリダンプを取得する対象のOS12のメモリ読み出し命令を、メモリ管理部11の処理が横取りすることによって実現してもよい。   The central processing unit 10 instructs the memory management unit 11 to read out the memory of the target OS 12 from which the memory dump is acquired by using the memory dump acquisition unit 31 (S202). Here, the process of S202 may be realized by the process of the memory management unit 11 intercepting the memory read command of the OS 12 that is the target of acquiring the memory dump of the memory dump acquisition unit 31.

中央処理装置10は、メモリ管理部11によって、読み出し対象のメモリのすべてに対して、以下に示すS216及びS217の処理を繰り返し実行する(S213)。繰り返しの単位は、メモリごとでもよいし、所定のサイズに区切られた複数のメモリごとでもよい。   The central processing unit 10 causes the memory management unit 11 to repeatedly execute the following processes of S216 and S217 on all the memories to be read (S213). The repetition unit may be for each memory, or for each of a plurality of memories partitioned into a predetermined size.

中央処理装置10は、メモリ管理部11によって、副主記憶装置202のOS用副メモリ222に格納された情報を読み出す(S216)。さらに、S216の処理で読み出されたメモリに対応する副メモリ管理テーブル261のレコードに含まれる更新フラグ2116の値を「オフ」に設定する(S217)。   The central processing unit 10 reads the information stored in the OS sub memory 222 of the sub main storage device 202 by the memory management unit 11 (S216). Further, the value of the update flag 2116 included in the record of the sub memory management table 261 corresponding to the memory read in the process of S216 is set to “off” (S217).

メモリダンプを取得するすべての対象のメモリに対して以上の処理が終了すると、中央処理装置10は、メモリ管理部11によって、S216の処理で読み出されたメモリの情報をメモリダンプ取得部31に送信する(S218)。   When the above processing is completed for all the target memories from which the memory dump is acquired, the central processing unit 10 sends the memory information read out by the memory management unit 11 in the processing of S216 to the memory dump acquisition unit 31. Transmit (S218).

中央処理装置10は、メモリダンプ取得部31によって、S218の処理で受信したメモリの情報を外部記憶装置に保存する(S203)。   The central processing unit 10 uses the memory dump acquisition unit 31 to store the memory information received in the processing of S218 in the external storage device (S203).

一方、中央処理装置10は、メモリダンプを取得する対象のOS12によって使用されるOS用正メモリ221であって、正メモリ管理テーブル251の対応するレコードの更新フラグ2116の値が「オン」であるメモリに対し、メモリ管理部11によって、以下のS262からS265までの処理を実行する(S261)。実行する対象は、メモリごとであってもよいし、所定のサイズに区切られた複数のメモリごとであってもよい。   On the other hand, the central processing unit 10 is the OS primary memory 221 used by the OS 12 for which a memory dump is acquired, and the value of the update flag 2116 of the corresponding record in the primary memory management table 251 is “ON”. The following processes from S262 to S265 are executed on the memory by the memory management unit 11 (S261). The execution target may be for each memory or for each of a plurality of memories partitioned into a predetermined size.

中央処理装置10は、メモリ管理部11によって、正主記憶装置201から正メモリ管理テーブル251の対応するレコード(この場合、OS用正メモリ221)の更新フラグ2116の値が「オン」のメモリの情報を読み出す(S262)。   The central processing unit 10 uses the memory management unit 11 to store the memory in which the value of the update flag 2116 of the corresponding record (in this case, the OS primary memory 221) from the primary main storage device 201 is “ON”. Information is read (S262).

中央処理装置10は、次に、メモリ管理部11によって、正メモリ管理テーブル251のS262の処理で読み出されたメモリに対応するレコードの更新フラグ2116の値を「オフ」に設定する(S263)。   Next, the central processing unit 10 sets the value of the update flag 2116 of the record corresponding to the memory read out in the processing of S262 of the primary memory management table 251 to “off” by the memory management unit 11 (S263). .

中央処理装置10は、メモリ管理部11によって、処理対象のOS用正メモリ221と同期するOS用副メモリ222を特定し、特定されたOS用副メモリ222にS262の処理で読み出されたメモリの情報を書き込む(S264)。具体的には、処理対象のOS用正メモリ221のドメインID2111、仮想論理アドレス2112、及び実物理アドレス2113に基づいて、OS用副メモリ222を特定する。   The central processing unit 10 identifies the OS sub memory 222 synchronized with the OS main memory 221 to be processed by the memory management unit 11, and the memory read to the identified OS sub memory 222 by the process of S262. Is written (S264). Specifically, the OS sub memory 222 is specified based on the domain ID 2111, the virtual logical address 2112, and the real physical address 2113 of the OS primary memory 221 to be processed.

中央処理装置10は、メモリ管理部11によって、S264の処理で情報が書き込まれたOS用副メモリ222に対応する副メモリ管理テーブル261のレコードの更新フラグ2116を「オン」に設定する(S265)。   The central processing unit 10 sets the update flag 2116 of the record in the sub memory management table 261 corresponding to the OS sub memory 222 in which information is written in the process of S264, to “ON” by the memory management unit 11 (S265). .

そして、S261の繰り返しが終了すると、中央処理装置10は、メモリダンプが取得されたOS12によって使用されるOS用正メモリ221と、対応するOS用副メモリ222の同期を再開する(S266)。   When the repetition of S261 ends, the central processing unit 10 resumes the synchronization between the OS primary memory 221 used by the OS 12 for which the memory dump has been acquired and the corresponding OS sub memory 222 (S266).

以上で、本発明の第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 central processing unit 10 executes the memory dump acquisition unit 31 and notifies the memory management unit 11 of the start of acquiring the memory dump difference of the OS 12 that is the memory dump (difference) acquisition target (S201).

中央処理装置10は、メモリ管理部11によって、メモリダンプを取得するOS12に対応するOS用正メモリ221に対応するOS用副メモリ222であって、副メモリ管理テーブル261に対応するレコードの更新フラグ2116の値が「オン」であるOS用副メモリ222について、OS用正メモリ221との同期を停止する(S231)。   The central processing unit 10 is an OS submemory 222 corresponding to the OS primary memory 221 corresponding to the OS 12 from which the memory management unit 11 acquires a memory dump by the memory management unit 11, and a record update flag corresponding to the submemory management table 261 The OS sub memory 222 whose value 2116 is “ON” is stopped from synchronizing with the OS primary memory 221 (S231).

中央処理装置10は、メモリダンプ取得部31にメモリダンプを取得する対象のOS12のメモリダンプの差分を取得する準備が完了した旨を通知する(S232)。   The central processing unit 10 notifies the memory dump acquisition unit 31 that the preparation for acquiring the memory dump difference of the target OS 12 from which the memory dump is acquired is completed (S232).

中央処理装置10は、メモリダンプ取得部31によって、メモリダンプの差分を取得する対象のOS12の更新済みのメモリの読み出しをメモリ管理部11に指示する(S222)。S202の処理は、メモリダンプ取得部31のメモリダンプを取得する対象のOS12のメモリ読み出し命令を、メモリ管理部11の処理が横取りすることによって実現してもよい。   The central processing unit 10 instructs the memory management unit 11 to read the updated memory of the OS 12 that is the target of acquiring the memory dump difference by using the memory dump acquisition unit 31 (S222). The process of S202 may be realized by the process of the memory management unit 11 intercepting the memory read command of the OS 12 that is the target of acquiring the memory dump of the memory dump acquisition unit 31.

以上のように、メモリの内容が更新された場合のみメモリダンプを取得するようにすることによって、必要なメモリダンプを取得する時間を短縮することができる。以上で、本発明の第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 dump acquisition unit 31 is a storage device that can be written at a small capacity and at high speed, and the memory dump is stored for a long time. By setting the external storage device to be a large-capacity and low-speed storage device, it is possible to reduce the time for storing the acquired memory dump in the external storage device 40 while suppressing the realization cost. Therefore, it is possible to shorten the period during which the synchronization between the OS primary memory 221 and the OS sub memory 222 is stopped.

図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 primary memory 221 that is used by the OS 12 that is the target of acquiring the memory dump during the memory dump acquisition process or the memory dump difference acquisition process.

中央処理装置10は、OS12によって、メモリ管理部11に対して、メモリ領域への書き込みを指示する(S141)。S141の処理は、OS12のメモリ書き込み命令を、メモリ管理部11が横取りすることによって実現されてもよい。   The central processing unit 10 instructs the memory management unit 11 to write to the memory area through the OS 12 (S141). The process of S141 may be realized by the memory management unit 11 intercepting a memory write command of the OS 12.

中央処理装置10は、メモリ管理部11によって、書き込み対象のメモリのすべてに対し、以下のS252からS256又はS252からS221までの処理を繰り返し実行する(S251)。繰り返しの単位は、メモリごとでもよいし、所定のサイズに区切られた複数のメモリごとでもよい。   The central processing unit 10 repeatedly executes the following processes from S252 to S256 or S252 to S221 on all the write target memories by the memory management unit 11 (S251). The repetition unit may be for each memory, or for each of a plurality of memories partitioned into a predetermined size.

中央処理装置10は、メモリ管理部11によって、OS12によって使用されるOS用正メモリ221と対応するOS用副メモリ222との同期が実施されているか否かを判定する(S252)。なお、S252の処理は、メモリダンプ取得処理又はメモリダンプ差分取得の際に、正主記憶装置201のメモリダンプ取得対象メモリ(この場合、OS用正メモリ221)に書き込み保護を実施すれば、書き込み対象のメモリに書き込み保護が実施されているか否かを判定することによっても可能である。   The central processing unit 10 determines whether the synchronization between the OS primary memory 221 used by the OS 12 and the corresponding OS secondary memory 222 is performed by the memory management unit 11 (S252). The processing of S252 is performed if write protection is performed on the memory dump acquisition target memory (in this case, the OS main memory 221) of the primary main storage device 201 at the time of memory dump acquisition processing or memory dump difference acquisition. It is also possible to determine whether or not write protection is performed on the target memory.

中央処理装置10は、OS用正メモリ221と対応するOS用副メモリ222との同期が実施されていないと判定した場合には(S252の結果が「Yes」)、該当する正主記憶装置201のOS用正メモリ221に指示された情報を書き込む(S2551)。   When the central processing unit 10 determines that the synchronization between the OS primary memory 221 and the corresponding OS secondary memory 222 has not been performed (the result of S252 is “Yes”), the corresponding primary main storage device 201 The designated information is written in the OS primary memory 221 (S2551).

中央処理装置10は、続いて、S255の処理で情報が書き込まれたメモリに対応する正メモリ管理テーブル251のレコードの更新フラグ2116を「オン」に設定する(S256)。   Subsequently, the central processing unit 10 sets the record update flag 2116 of the primary memory management table 251 corresponding to the memory in which information is written in the process of S255 to “ON” (S256).

一方、中央処理装置10は、OS用正メモリ221と対応するOS用副メモリ222との同期が実施されていると判定した場合には(S252の結果が「Yes」)、正主記憶装置201のOS用正メモリ221に指示された情報を書き込む(S2552)。   On the other hand, when the central processing unit 10 determines that the synchronization between the OS primary memory 221 and the corresponding OS secondary memory 222 is performed (the result of S252 is “Yes”), the primary main storage device 201 The designated information is written in the OS primary memory 221 (S2552).

そして、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 primary memory 221 in S2552, the OS secondary memory 222 of the secondary main storage device 202 is updated by the synchronization of the OS primary memory 221 and the OS secondary memory 222. Information is written (S271). Further, the value of the update flag 2116 of the record in the sub memory management table 261 corresponding to the memory in which information is written in the processing of S271 is set to “ON” (S272).

本発明の第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 OS sub memory 222 corresponding to the OS 12 is performed without stopping the OS 12. It can be acquired in the starting state.

本発明の第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 main memory 221 of the OS 12 during the memory dump acquisition process or the memory dump difference acquisition process.

本発明の第2の実施の形態によれば、メモリダンプ取得処理中又はメモリダンプ差分取得処理中にOS用正メモリ221を退避させるためのダンプメモリ23を必要としないため、使用されるメモリの容量を少なくすることができる。   According to the second embodiment of the present invention, the dump memory 23 for evacuating the OS primary memory 221 is not required during the memory dump acquisition process or the memory dump difference acquisition process. Capacity can be reduced.

(第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 primary memory 221 is stored during the memory dump acquisition. Hereinafter, a third embodiment of the present invention will be described.

本発明の第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 memory management information 25 and the secondary memory management information 26 according to the third embodiment of the present invention are the same as the primary memory management table 251 and the secondary memory management table 261 shown in FIGS.

図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 central processing unit 10 has the domain ID 2111 and the virtual logical address corresponding to the memory read by the memory management unit 11 from the primary memory management table 251 in the processing of S216 of the secondary memory management table 261. Based on 2112 and the real physical address 2113, a record corresponding to the OS primary memory 221 of the primary main storage device 201 to be synchronized is acquired (S361).

中央処理装置10は、メモリ管理部11によって、S361の処理で取得されたレコードの更新フラグ2116の値が「オン」であるか「オフ」であるかを判定する(S362)。   The central processing unit 10 determines whether the value of the update flag 2116 of the record acquired in the process of S361 is “on” or “off” by the memory management unit 11 (S362).

中央処理装置10は、更新フラグ2116の値が「オン」であった場合には(S362の結果が「オン」)、メモリ管理部11によって、正主記憶装置201のOS用正メモリ221から情報を読み出す(S363)。   When the value of the update flag 2116 is “ON” (the result of S362 is “ON”), the central processing unit 10 uses the memory management unit 11 to store information from the OS main memory 221 of the primary main storage device 201. Is read (S363).

中央処理装置10は、メモリ管理部11によって、S363の処理で読み出された正メモリ管理テーブル251のレコードの更新フラグ2116の値を「オフ」に設定する(S364)。さらに、対応する副主記憶装置202のOS用副メモリ222にS363の処理でOS用正メモリ221から読み出された情報を書き込む(S365)。   The central processing unit 10 sets the value of the update flag 2116 of the record of the primary memory management table 251 read in the process of S363 to “off” by the memory management unit 11 (S364). Further, the information read from the OS primary memory 221 in the process of S363 is written into the OS secondary memory 222 of the corresponding secondary main storage device 202 (S365).

中央処理装置10は、メモリ管理部11によって、S365の処理で情報が書き込まれたOS用副メモリ222に対応する副メモリ管理テーブル261のレコードの更新フラグ2116を「オン」に設定する(S366)。   The central processing unit 10 sets the record update flag 2116 of the sub memory management table 261 corresponding to the OS sub memory 222 in which information is written in the process of S365 to “on” by the memory management unit 11 (S366). .

中央処理装置10は、S367の処理が終了した場合、又は、更新フラグ2116の値が「オフ」であった場合には(S362の結果が「オフ」)、S363の処理で情報が読み出されたOS用正メモリと、対応するOS用副メモリ222との同期を再開する(S367)。   When the process of S367 is completed or the value of the update flag 2116 is “off” (the result of S362 is “off”), the central processing unit 10 reads information in the process of S363. The synchronization between the OS primary memory and the corresponding OS secondary memory 222 is resumed (S367).

以上で、本発明の第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 primary memory 221 according to the third embodiment of the present invention is the same as the memory update process according to the second embodiment of the present invention shown in FIG.

本発明の第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 OS sub memory 222 of the OS 12 By reflecting the information in the OS primary memory 221 at the same time as reading the memory, the time for stopping the synchronization between the OS primary memory 221 and the OS sub memory 222 can be shortened.

本発明の第1の実施の形態のシステム解析装置の構成図である。It is a block diagram of the system analysis apparatus of the 1st Embodiment of this invention. 本発明の第1の実施の形態のメモリ管理情報の一例であるメモリ管理テーブルを示す図である。It is a figure which shows the memory management table which is an example of the memory management information of the 1st Embodiment of this invention. 本発明の第1の実施の形態のシステム解析装置において実行されるメモリダンプ取得処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the memory dump acquisition process performed in the system analysis apparatus of the 1st Embodiment of this invention. 本発明の第1の実施の形態のシステム解析装置において実行されるメモリダンプ差分取得処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the memory dump difference acquisition process performed in the system analysis apparatus of the 1st Embodiment of this invention. 本発明の第1の実施の形態のシステム解析装置において実行されるOSのメモリ更新処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the memory update process of OS performed in the system analysis apparatus of the 1st Embodiment of this invention. 本発明の第2の実施の形態のシステム解析装置の構成図である。It is a block diagram of the system analysis apparatus of the 2nd Embodiment of this invention. 本発明の第2の実施の形態の正メモリ管理情報の一例である正メモリ管理テーブルを示す図である。It is a figure which shows the primary memory management table which is an example of the primary memory management information of the 2nd Embodiment of this invention. 本発明の第2の実施の形態の副メモリ管理情報の一例である副メモリ管理テーブルを示す図である。It is a figure which shows the submemory management table which is an example of the submemory management information of the 2nd Embodiment of this invention. 本発明の第2の実施の形態のシステム解析装置において実行されるメモリダンプ取得処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the memory dump acquisition process performed in the system analysis apparatus of the 2nd Embodiment of this invention. 本発明の第2の実施の形態のシステム解析装置において実行されるメモリダンプ差分取得処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the memory dump difference acquisition process performed in the system analysis apparatus of the 2nd Embodiment of this invention. 本発明の第2の実施の形態のシステム解析装置において実行されるOSのメモリ更新処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the memory update process of OS performed in the system analysis apparatus of the 2nd Embodiment of this invention. 本発明の第3の実施の形態のシステム解析装置において実行されるメモリダンプ取得処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the memory dump acquisition process performed in the system analysis apparatus of the 3rd Embodiment of this invention. 本発明の第3の実施の形態のシステム解析装置において実行されるメモリダンプ差分取得処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the memory dump difference acquisition process performed in the system analysis apparatus of the 3rd Embodiment of this invention.

符号の説明Explanation of symbols

10 中央処理装置
11 メモリ管理部
12 オペレーティングシステム(OS)
20 主記憶装置
21 メモリ管理情報
22 OS用メモリ
23 ダンプメモリ
25 正メモリ管理情報
26 副メモリ管理情報
31 メモリダンプ取得部
40 外部記憶装置
201 正主記憶装置
202 副主記憶装置
211 メモリ管理テーブル
221 OS用正メモリ
222 OS用副メモリ
251 正メモリ管理テーブル
261 副メモリ管理テーブル
10 Central Processing Unit 11 Memory Management Unit 12 Operating System (OS)
DESCRIPTION OF SYMBOLS 20 Main storage device 21 Memory management information 22 OS memory 23 Dump memory 25 Primary memory management information 26 Secondary memory management information 31 Memory dump acquisition part 40 External storage device 201 Primary main storage device 202 Secondary main storage device 211 Memory management table 221 OS Primary memory 222 OS secondary memory 251 primary memory management table 261 secondary memory management table

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 system analysis apparatus according to claim 1, wherein the memory management information includes information indicating whether or not a storage area allocated to the main storage device is acquiring a memory dump. 前記中央処理装置は、
前記メモリダンプの取得要求を受け付けた場合に、メモリダンプの取得を開始する前に、メモリダンプが取得される記憶領域の書き込みを禁止し、
前記メモリダンプが取得される記憶領域の書き込みが禁止されているか否かに基づいて、前記メモリダンプが取得中であるか否かを判定することを特徴とする請求項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. .
前記中央処理装置は、前記メモリダンプが取得される記憶領域に対する書き込みが成功したか否かに基づいて、前記メモリダンプが取得中であるか否かを判定することを特徴とする請求項5に記載のシステム解析装置。   6. The central processing unit according to claim 5, wherein the central processing unit determines whether or not the memory dump is being acquired based on whether or not the writing to the storage area from which the memory dump is acquired has succeeded. The system analysis device described. 計算機システムで実行されている処理を解析するシステム解析装置であって、
前記システム解析装置は、中央処理装置、主記憶装置及び外部記憶装置を備え、
前記主記憶装置は、
情報が読み書きされる記憶領域を提供し、
正主記憶装置と、前記正主記憶装置に記憶された情報の複製を保持する副主記憶装置とを含み、
前記副主記憶装置は、前記正主記憶装置に記憶されている情報と一致するように同期され、
前記計算機システムは、前記記憶領域に記憶された情報であるメモリダンプを取得するメモリダンプ取得部を含み、
前記メモリダンプ取得部は、前記メモリダンプを前記外部記憶装置に格納し、
前記中央処理装置は、
前記メモリダンプの取得要求を受け付けた場合には、前記メモリダンプが取得される前記正主記憶装置に割り当てられた第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の記憶領域が更新された場合には、前記第1の記憶領域に記憶された情報と、前記第2の記憶領域に記憶された情報とを一致させてから、前記第1の記憶領域と前記第2の記憶領域との同期を再開させることを特徴とする請求項7に記載のシステム解析装置。   When the first storage area is updated during acquisition of the memory dump, the central processing unit stores the information stored in the first storage area and the second storage area. The system analysis apparatus according to claim 7, wherein the synchronization between the first storage area and the second storage area is resumed after matching the received information. 前記中央処理装置は、前記第1の記憶領域と前記第2の記憶領域との同期が再開された後で、前記第2の記憶領域から読み出された情報を前記外部記憶装置に格納することを特徴とする請求項7に記載のシステム解析装置。   The central processing unit stores information read from the second storage area in the external storage device after the synchronization between the first storage area and the second storage area is resumed. The system analysis apparatus according to claim 7. 前記正主記憶装置は、前記第1の記憶領域を管理するためのメモリ管理情報を格納し、
前記メモリ管理情報は、前記第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.
JP2007316779A 2007-12-07 2007-12-07 System analyzer, memory dump acquisition method and memory dump acquisition program Pending JP2009140293A (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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