JPH09269902A - Resource management apparatus for information processing apparatus and resource management method in information processing system - Google Patents
Resource management apparatus for information processing apparatus and resource management method in information processing systemInfo
- Publication number
- JPH09269902A JPH09269902A JP8250559A JP25055996A JPH09269902A JP H09269902 A JPH09269902 A JP H09269902A JP 8250559 A JP8250559 A JP 8250559A JP 25055996 A JP25055996 A JP 25055996A JP H09269902 A JPH09269902 A JP H09269902A
- Authority
- JP
- Japan
- Prior art keywords
- resource management
- information processing
- file
- main memory
- program
- 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.)
- Granted
Links
Landscapes
- Memory System (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
(57)【要約】
【課題】本発明は、簡単な制御で適切かつ効率的な資源
管理を実現する情報処理装置の資源管理装置及び資源管
理方法を提供することを課題とする。
【解決手段】メインメモリ30を構成する各ページフレ
ームを定期的に予め設定された数ずつ巡回して走査して
いき、前回の走査時以降プロセッサによってアクセスさ
れていないページフレームを解放した後、スリープ状態
となるページアウトデーモンプロセス20とを備えた情
報処理システムに使用される資源管理装置であり、この
資源管理装置には、ページアウトデーモンプロセス20
を所定の間隔でディスパッチする手段11,16と、メ
インメモリ30内の空きページフレーム数を取得する手
段13と、取得された前記空きページフレーム数に基づ
いてページアウトデーモンプロセス20がディスパッチ
時毎に走査するページフレーム数を設定する手段10と
が備えられる。
(57) Abstract: An object of the present invention is to provide a resource management device and a resource management method for an information processing device that realizes appropriate and efficient resource management with simple control. SOLUTION: Each page frame constituting a main memory 30 is periodically cyclically scanned by a preset number, and a page frame that has not been accessed by a processor after the last scan is released and then sleeps. And a page-out daemon process 20 which is in a state. The page-out daemon process 20 is a resource management device used in an information processing system.
At a predetermined interval, means 13 for obtaining the number of empty page frames in the main memory 30, and the pageout daemon process 20 based on the obtained number of empty page frames at each dispatch time. Means 10 for setting the number of page frames to be scanned.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、マルチタスクをサ
ポートする情報処理システムに適用して好適な資源管理
方法及び装置に係り、特にたとえばあるプログラムが空
きメモリの容量を越えるメモリ割り当てを要求した際
に、システム管理者が指定した基準に従ってシステム中
のプログラムを選択し、そのプログラムに割り当てられ
たメモリを解放して前記プログラムの実行を継続させる
などによって、適切かつ効率的な資源管理を実現する情
報処理装置における資源管理装置、及び情報処理システ
ムにおける資源管理方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a resource management method and apparatus suitable for application to an information processing system that supports multitasking, and particularly when a program requests memory allocation exceeding the capacity of free memory. Information that realizes appropriate and efficient resource management by selecting a program in the system according to the criteria specified by the system administrator, releasing the memory allocated to the program, and continuing the execution of the program. The present invention relates to a resource management device in a processing device and a resource management method in an information processing system.
【0002】[0002]
【従来の技術】近年、情報処理装置の普及及は目覚まし
く、また、その処理すべき情報量は増加する一方であ
る。そして、この情報量の増加に伴なって、メインメモ
リや二次記憶装置の割り当てなどを管理する資源管理手
法が種々開発されてきている。2. Description of the Related Art In recent years, the spread of information processing devices has been remarkable, and the amount of information to be processed has been increasing. Along with the increase in the amount of information, various resource management methods for managing the allocation of the main memory and the secondary storage device have been developed.
【0003】従来において、たとえば比較的優先度の高
いプログラムが新たにメインメモリの割り当てを要求し
たときであっても、メインメモリの不足が発生したよう
な場合には、割り当て失敗を結果として返すか、または
割り当て可能になるまでそのプログラムを待機させるな
どによって対処していた。特に、プログラム起動時にメ
インメモリが不足する場合には、その要求を発行したプ
ログラムを終了させざるを得なかった。Conventionally, even if, for example, a program with a relatively high priority newly requests allocation of main memory, if a shortage of main memory occurs, allocation failure is returned as a result. , Or by waiting for the program until it can be allocated. In particular, when the main memory runs short when the program is started, the program that issued the request has to be terminated.
【0004】また、ファイルの新規作成や追加の際も同
様に、そのディスク上に新しくファイル領域の割り当て
を要求した結果、ファイル領域の不足が発生した場合に
は、割り当て失敗を結果として返すか、または割り当て
可能になるまで待機させるなどによって対処していた。Similarly, when a file is newly created or added, if a new file area allocation is requested on the disk and the file area becomes insufficient, allocation failure is returned as a result, or Alternatively, it was dealt with by waiting until it became available for allocation.
【0005】[0005]
【発明が解決しようとする課題】上述したように従来の
問題点は以下の通りであった。たとえばあるプログラム
が新たにメインメモリの割り当てを要求した際に、メイ
ンメモリの不足が発生したような場合には、割り当て失
敗を結果として返すか、または割り当て可能になるまで
そのプログラムを待機させるなどによって対処していた
ために、さほど重要でないプログラムがメインメモリを
使用中であるために、重要なプログラムの実行がある期
間待たされてしまう、または起動できないといった問題
があった。As described above, the conventional problems are as follows. For example, when a program newly requests allocation of main memory and there is a shortage of main memory, either the allocation failure is returned as a result, or the program waits until allocation becomes possible. Since it was being dealt with, there was a problem that the less important program was using the main memory, so that the important program was kept waiting for a certain period of time or could not be started.
【0006】また、ファイルの新規作成や追加の際も同
様に、そのディスク上に新しくファイル領域の割り当て
を要求した結果、ファイル領域の不足が発生した場合に
は、割り当て失敗を結果として返すか、または割り当て
可能になるまで待機させるなどによって対処していたた
めに、ファイル格納領域の不足によって重要なプログラ
ムを途中で終了させてしまうといった問題があった。そ
こで、本発明は上記事情を考慮して成されたもので、簡
単な制御で適切かつ効率的な資源管理を実現する情報処
理装置の資源管理装置、及び情報処理システムの資源管
理方法を提供することを目的とする。Similarly, when a file is newly created or added, if a new file area allocation request is made on the disk and a file area shortage occurs, allocation failure is returned as a result, or Alternatively, there is a problem that an important program is terminated on the way due to lack of a file storage area because it is dealt with by waiting until it becomes available for allocation. Therefore, the present invention has been made in consideration of the above circumstances, and provides a resource management device of an information processing device and a resource management method of an information processing system that realizes appropriate and efficient resource management with simple control. The purpose is to
【0007】[0007]
【課題を解決するための手段】本発明は、上記目的を達
成するため、メインメモリと、このメインメモリを構成
する各ページフレームを定期的に予め設定された数ずつ
巡回して走査していき、前回の走査時以降プロセッサに
よってアクセスされていないページフレームを解放した
後、スリープ状態となるページアウトデーモンプロセス
とを備えた情報処理システムに使用される資源管理装置
であって、前記ページアウトデーモンプロセスを所定の
間隔でディスパッチする手段と、前記メインメモリ内の
空きページフレーム数を取得する手段と、取得された前
記空きページフレーム数に基づいて、前記ページアウト
デーモンプロセスがディスパッチ時毎に走査するページ
フレーム数を設定する手段とを設けたことを特徴とする
情報処理装置の資源管理装置にある。In order to achieve the above object, the present invention periodically scans a main memory and each page frame constituting the main memory by a preset number. A page-out daemon process that is in a sleep state after releasing a page frame that has not been accessed by the processor since the last scan, wherein the page-out daemon process is used. Means for dispatching at a predetermined interval, means for acquiring the number of empty page frames in the main memory, and pages that the pageout daemon process scans at each dispatch time based on the acquired number of empty page frames. Means for setting the number of frames, and a resource for an information processing device. The management apparatus.
【0008】そして、上記構成によれば、たとえば稼働
中のプログラム数が増加したなどによってメインメモリ
の空き容量が少なくなってきた場合に、ページアウトデ
ーモンプロセスが起動時毎に走査するページフレーム数
を多めに設定し、一方、稼働中のプログラム数が減少し
たなどによってメインメモリの空き容量が多くなってき
た場合には、ページアウトデーモンプロセスが起動時に
走査するページフレーム数を少なく設定する。According to the above arrangement, when the free space in the main memory becomes small due to an increase in the number of running programs, the number of page frames scanned by the pageout daemon process at each startup is set. On the other hand, if the free space in the main memory becomes large due to a decrease in the number of running programs, the pageout daemon process scans a small number of page frames at startup.
【0009】このページアウトデーモンプロセスは、起
動された際に、メインメモリ内のページフレームを予め
設定された数ずつ巡回して走査していき、この走査時
に、たとえば各ページフレームに対応して設けられた参
照フラグをクリアする。この参照フラグは、プロセッサ
がそのページフレームにアクセスした際に立てられるよ
うになっている。したがって、次にページアウトデーモ
ンプロセスが走査したときに、この参照フラグがクリア
された状態であるようなページフレームは、その間にプ
ロセッサによるアクセスが行なわれていないことを示す
ので、その時点でページアウトデーモンプロセスは、こ
のページフレームを解放することにより、メインメモリ
の有効な活用を支援する。When activated, the page-out daemon process circulates and scans a predetermined number of page frames in the main memory, and at the time of this scanning, the page-out daemon process is provided corresponding to each page frame, for example. Clear the referenced flag that was set. This reference flag is set when the processor accesses the page frame. Therefore, the next time the page-out daemon process scans, a page frame whose reference flag is cleared will indicate that the processor has not been accessed during that time, so the page-out at that point The daemon process supports effective utilization of main memory by releasing this page frame.
【0010】すなわち、本発明の資源管理装置によれ
ば、ページアウトデーモンプロセスがメインメモリ内の
ページフレームを走査するレートをシステムの稼働状況
に応じて制御でき、メインメモリの空き容量が逼迫して
いる場合には、ページフレームをプロセッサからのアク
セスなしで保持しておくことのできる期間を短くするこ
とによってページフレームの回収を促進し、一方で、メ
インメモリの空き容量に余裕がある場合には、使用中の
ページフレームが過度に解放されるのを避けることによ
り、システム全体の処理性能を向上させるといった柔軟
な運用が実現される。That is, according to the resource management apparatus of the present invention, the rate at which the page-out daemon process scans the page frames in the main memory can be controlled according to the operating status of the system, and the free space in the main memory becomes tight. If there is a free space in the main memory, the collection of page frames can be promoted by shortening the period in which page frames can be held without being accessed by the processor. By avoiding excessive release of used page frames, flexible operation such as improving the processing performance of the entire system is realized.
【0011】また、本発明は上記目的を達成するため、
メインメモリと、このメインメモリに展開されているプ
ログラムの中から一つ以上のプログラムを選択し、この
選択したプログラムに割り当てられたメインメモリ内の
ページフレームを解放した後、スリープ状態となるメモ
リ解放プログラムとを備えた情報処理システムに使用さ
れる資源管理装置であって、前記メインメモリ内の空き
ページフレーム数を取得する手段と、取得された前記空
きページフレーム数が所定の値を下回っているときに、
前記メモリ解放プログラムを実行可能状態とする手段と
を設けたことを特徴とする情報処理装置の資源管理装置
にある。[0011] In order to achieve the above object, the present invention provides
Memory release that selects one or more programs from the main memory and programs expanded in this main memory, releases the page frame in the main memory allocated to this selected program, and then goes to sleep A resource management device used in an information processing system including a program, wherein the means for acquiring the number of empty page frames in the main memory and the acquired number of empty page frames are below a predetermined value. sometimes,
And a means for setting the memory release program in an executable state.
【0012】そして、上記構成によれば、メインメモリ
の空きページフレーム数が所定の値を下回ったときに、
メモリ解放プログラムが実行可能状態となり、たとえ
ば、いずれかのプロセスが新たにメインメモリ内のペー
ジフレーム割り当てを要求した際、ページフレームの不
足が発生したような場合に、メインメモリに展開されて
いるプログラムの中から一つ以上のプログラムを選択
し、この選択したプログラムに割り当てられたメインメ
モリ内のページフレームを解放することによって、その
ページフレームの割り当てを要求したプログラムの実行
を継続する。According to the above configuration, when the number of empty page frames in the main memory falls below a predetermined value,
The program released in the main memory when the memory release program becomes executable and, for example, a shortage of page frames occurs when any process newly requests page frame allocation in the main memory. By selecting one or more programs from among the above, and releasing the page frame in the main memory allocated to the selected program, the execution of the program requesting the allocation of the page frame is continued.
【0013】この選択は、たとえばプログラムそれぞれ
がもつ実行優先度や、更新されたページフレーム数に基
づいて行ない、また、場合によっては、メモリ解放プロ
グラム自身に割り当てられたページフレームを解放する
などといったことを行なうことが望ましい。This selection is performed based on, for example, the execution priority of each program and the number of updated page frames, and in some cases, the page frame allocated to the memory release program itself is released. Is desirable.
【0014】これにより、たとえばさほど重要でないプ
ログラムがシステム内に存在し、メインメモリを使用す
るために、重要なプログラムの実行が待たされるといっ
たことを回避でき、より適切かつ効率的な資源管理が行
なえる。This makes it possible to avoid waiting for execution of an important program because a less important program exists in the system and uses the main memory, and more appropriate and efficient resource management can be performed. It
【0015】また、必要に応じてメモリ解放プログラム
を起動する構成とすることによって、メインメモリの空
き容量に余裕がある場合には、その実行のための資源を
他に割り当てることができ、さらに、このメモリ解放プ
ログラムを基本プログラム(OS:オペレーティングシ
ステム)の配下で特権状態で動作するアプリケーション
プログラムとして構成することにより、たとえば資源の
割り当て規則を新たに組み入れるといったことが容易に
行なえ、拡張性が確保できる結果、より柔軟な資源管理
を実現することができる。Further, by activating the memory release program as needed, when the main memory has a free space, it is possible to allocate other resources for its execution. By configuring this memory release program as an application program that operates in a privileged state under a basic program (OS: operating system), it is possible to easily incorporate a resource allocation rule, for example, and ensure extensibility. As a result, more flexible resource management can be realized.
【0016】さらに、本発明は上記目的を達成するた
め、二次記憶装置と、この二次記憶装置に格納されたフ
ァイルの中から一つ以上のファイルを選択し、この選択
したファイルを圧縮するファイル圧縮プログラムとを備
えた情報処理システムに使用される資源管理装置であっ
て、前記二次記憶装置内の空き容量を取得する手段と、
取得された前記空き容量が第1の値を下回っているとき
に、前記ファイル圧縮プログラムを実行可能状態とする
手段とを設けたことを特徴とする情報処理装置の資源管
理装置にある。Further, to achieve the above object, the present invention selects one or more files from a secondary storage device and files stored in this secondary storage device, and compresses the selected files. A resource management device used in an information processing system including a file compression program, and means for acquiring a free space in the secondary storage device,
A resource management device of an information processing device, further comprising: a unit that puts the file compression program into an executable state when the acquired free space is less than a first value.
【0017】そして、上記構成によれば、二次記憶装置
の空き容量が第1の値を下回ったときに、ファイル圧縮
プログラムが実行可能状態となり、二次記憶装置に格納
されたファイルの中から一つ以上のファイルを選択し、
この選択したファイルを圧縮することによって空き領域
を捻出し、そのファイルの新規作成や追加を実施する。Further, according to the above configuration, when the free space of the secondary storage device falls below the first value, the file compression program becomes executable, and the file stored in the secondary storage device is selected. Select one or more files,
By compressing the selected file, an empty area is generated, and a new file is created or added.
【0018】この選択は、たとえばファイルのもつ最新
参照日付の古いものを優先する、バックアップファイル
を優先する、および、更新されていないファイルを優先
するなどによったり、または、捻出しなければならない
ファイル領域の容量から選択すべきファイルのサイズを
予測して選択したり、あるいはその圧縮アルゴリズムに
対し最も圧縮効率が良いと予測されるサイズをもつファ
イルを優先するなどが望ましい。このように、圧縮すべ
きファイルを選択する基準は種々あり、システムの特性
に応じてシステム管理者が選択基準を設定できるように
することが望ましい。また、この圧縮したファイルを他
の二次記憶装置に移動すれば、より効率的な資源管理が
行なえることになる。さらに、ファイル圧縮プログラム
に圧縮したファイルを伸長する手段を備え、二次記憶装
置の空き容量が第2の値を上回ったときに、このファイ
ル圧縮プログラムに圧縮したファイルを伸長させるよう
にしておけば、そのファイルへのアクセス時の応答時間
を大幅に短縮することができ、システム全体としての処
理効率をより向上させることが可能となる。This selection can be made by, for example, prioritizing the oldest file having the latest reference date, prioritizing the backup file, and prioritizing the file that has not been updated. It is desirable to predict the size of the file to be selected from the capacity of the area and select it, or to give priority to the file having the size that is predicted to have the best compression efficiency for the compression algorithm. As described above, there are various criteria for selecting files to be compressed, and it is desirable that the system administrator can set the selection criteria according to the characteristics of the system. Further, if this compressed file is moved to another secondary storage device, more efficient resource management can be performed. Further, the file compression program may be provided with a means for expanding the compressed file, and the compressed file may be expanded by the file compression program when the free space of the secondary storage device exceeds the second value. The response time when accessing the file can be greatly shortened, and the processing efficiency of the entire system can be further improved.
【0019】[0019]
【発明の実施の形態】以下、図面を参照して本発明の一
実施の形態を説明する。 (第1実施形態)図1は、本発明の第1実施形態に係る
資源管理装置の概略構成を示す機能ブロック図である。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. (First Embodiment) FIG. 1 is a functional block diagram showing a schematic configuration of a resource management device according to a first embodiment of the present invention.
【0020】本実施例の資源管理装置は、オペレーティ
ングシステム10によって全体的な制御がされており、
このオペレーティングシステム10では、インタバルタ
イマ11が、所定の間隔で割り込みを発生し、この割り
込みによりクロック処理ルーチン16が起動され、クロ
ック処理ルーチン16が、その都度ページアウトデーモ
ンプロセス20を起動する。The resource management system of this embodiment is totally controlled by the operating system 10.
In the operating system 10, the interval timer 11 generates an interrupt at a predetermined interval, the clock processing routine 16 is activated by this interrupt, and the clock processing routine 16 activates the pageout daemon process 20 each time.
【0021】このページアウトデーモンプロセス20
は、起動された際に、メインメモリ30内の各ページフ
レームの状態を示すページフレームテーブル29を、予
め設定された数だけ巡回しながら(最後のページフレー
ムに達したときには先頭のページフレームに戻って)順
次走査していくが、このとき、各ページフレームに対応
して設けられた参照ビット(reference bi
t)を検査して、参照ビットが立っている(1)ときに
は、この参照ビットをクリア(0)する。This page-out daemon process 20
When it is activated, the page frame table 29 showing the state of each page frame in the main memory 30 is circulated by a preset number (when the last page frame is reached, the page frame table 29 is returned to the first page frame. Scanning sequentially. At this time, reference bits (reference bi) provided corresponding to each page frame are provided.
t) is checked, and if the reference bit is set (1), this reference bit is cleared (0).
【0022】この参照ビットは、プロセッサ(図示せ
ず)が当該ページフレームにアクセスした際に立てられ
るようになっており、したがって、この参照ビットを検
査した際、参照ビットがクリアされている状態であった
場合には、前回の走査時以降(ページアウトデーモンプ
ロセス20の走査が一周する期間)プロセッサによるア
クセスが行なわれていないことになる。そこで、この場
合、ページアウトデーモンプロセス20は、このページ
フレームを解放する。この結果、メインメモリ30に所
定間隔以上アクセスのないページフレームが存在し続け
ることがなくなり、メインメモリ30の有効利用が実現
されるようになっている。The reference bit is set when the processor (not shown) accesses the page frame, and therefore, when the reference bit is checked, the reference bit is cleared. If there is, it means that the access by the processor has not been made since the last scan (the period during which the pageout daemon process 20 scans once). Therefore, in this case, the page-out daemon process 20 releases this page frame. As a result, page frames that have not been accessed for a predetermined interval or longer do not continue to exist in the main memory 30, and effective use of the main memory 30 is realized.
【0023】本実施形態のメインメモリ管理部12は、
メインメモリ30の使用ページフレーム数や空きページ
フレーム数などをメモリ管理情報13に書き込む。そし
て、ページアウトデーモンプロセス20は、このメモリ
管理情報13から取得したメインメモリ30についての
情報に基づいて、走査するページフレーム数を決定す
る。そして、ページアウトデーモンプロセス20は、所
定のページフレーム数だけ走査した後、次のインターバ
ルタイマ割り込みが発生するまでスリープする。また、
別の方法として、メインメモリ管理部12が走査するペ
ージフレーム数を決定し、ページアウトデーモンプロセ
ス20にその値を渡すこともできる。The main memory management unit 12 of this embodiment is
The number of used page frames and the number of empty page frames of the main memory 30 are written in the memory management information 13. Then, the page-out daemon process 20 determines the number of page frames to scan based on the information about the main memory 30 acquired from the memory management information 13. Then, the page-out daemon process 20 sleeps until a next interval timer interrupt occurs after scanning the predetermined number of page frames. Also,
Alternatively, the main memory management unit 12 may determine the number of page frames to scan and pass that value to the pageout daemon process 20.
【0024】メインメモリ30の空きメモリ量が少ない
場合には、ページアウトデーモンプロセス20が一起動
時に走査するページフレーム数を多く設定することによ
ってページアウトデーモンプロセス20の走査レートを
変え、メインメモリ30におけるページフレームの回収
を活発にし、一方で、メインメモリ30の空きメモリ量
に余裕がある場合には、ページアウトデーモンプロセス
20が一起動時に走査するページフレーム数を少なく
し、使用中のページフレームが過度に回収されるのを避
けることにより、システム全体の処理能力を向上させ
る。When the amount of free memory in the main memory 30 is small, the scan rate of the pageout daemon process 20 is changed by setting the number of page frames scanned by the pageout daemon process 20 at one start-up to change the main memory 30. In the meantime, when the page frame collection is actively performed, and when the free memory amount of the main memory 30 has a margin, the page out daemon process 20 scans the number of page frames at one start-up to reduce the number of used page frames. Improves overall system throughput by avoiding excessive recovery of
【0025】これによって、システムの稼働状況に応じ
た適切かつ効率的な資源管理がなされることとなる。な
お、ページアウトデーモンプロセス20の走査ページフ
レーム数を可変とすることに換えて、たとえばクロック
処理ルーチン16がページアウトデーモン20を起動す
る頻度を調整することによっても同様の効果が得られる
ため、有効である。As a result, appropriate and efficient resource management according to the operating status of the system can be performed. Note that the same effect can be obtained by adjusting the frequency with which the clock processing routine 16 activates the pageout daemon 20 instead of changing the number of scan page frames of the pageout daemon process 20, which is effective. Is.
【0026】(第2実施形態)次に、図2乃至図5を参
照して本発明の第2実施形態を説明する。図2は、第2
実施形態に係る資源管理装置の概略構成を示す機能ブロ
ック図である。(Second Embodiment) Next, a second embodiment of the present invention will be described with reference to FIGS. 2 is the second
It is a functional block diagram which shows the schematic structure of the resource management apparatus which concerns on embodiment.
【0027】本実施形態の資源管理装置は、オペレーテ
ィングシステム10によって全体的な制御がされてお
り、このオペレーティングシステム10は、メモリ管理
情報13とプロセス管理情報14とを管理する。そし
て、オペレーティングシステム10は、このメモリ管理
情報13によって管理する空きメモリ量が所定の値を下
回った際に、メインメモリ解放プロセス40を実行可能
状態(スケジュール待ち状態)とする。The resource management apparatus of this embodiment is wholly controlled by an operating system 10, and this operating system 10 manages memory management information 13 and process management information 14. Then, when the amount of free memory managed by the memory management information 13 falls below a predetermined value, the operating system 10 puts the main memory release process 40 into an executable state (schedule waiting state).
【0028】このメインメモリ解放プロセス40は、オ
ペレーティングシステム10が管理するメモリ管理情報
13とプロセス管理情報14とを参照しながら動作す
る。メインメモリ解放プロセス40は、図2に示すよう
に、まず空き領域不足待ちステップ41を実行する。本
ステップではオペレーティングシステム10内の空き領
域不足システムコール10aを呼び出し、メインメモリ
30内での空き領域不足が発生するまで本プロセスをス
リープするよう要求する。The main memory release process 40 operates by referring to the memory management information 13 and the process management information 14 managed by the operating system 10. As shown in FIG. 2, the main memory releasing process 40 first executes a free space shortage waiting step 41. In this step, the free space shortage system call 10a in the operating system 10 is called, and the sleep of this process is requested until the shortage of free space in the main memory 30 occurs.
【0029】そして、いずれかのプログラムからメイン
メモリ30の割り当てを新たに要求され、この要求に見
合うだけの空き領域が存在しない、すなわち、メモリ不
足が発生したと仮定する。このとき、オペレーティング
システム10は、スリープ中のメインメモリ解放プロセ
ス40を実行可能状態とする。やがて、実行可能状態と
なったメインメモリ解放プロセス40は、ターゲットプ
ロセス選択ステップ42において、プロセス管理情報1
4を参照して、たとえば優先度の低いプロセスを選択す
る。そして、メモリ解放ステップ43は、このプロセス
に割り当てられたメモリを解放する。この解放の手段と
しては、そのプロセスのアボートや、スワップアウトな
どが考えられる。そして、この解放によりメモリ不足は
解消され、要求元のプロセスへの割り当てが行なわれて
処理が継続される。It is assumed that any program newly requests the allocation of the main memory 30, and there is no free area corresponding to the request, that is, the memory shortage occurs. At this time, the operating system 10 sets the main memory release process 40 in the sleep state to the executable state. Eventually, the main memory release process 40, which has become the executable state, executes the process management information 1 in the target process selection step 42.
4, a process with a low priority is selected, for example. Then, the memory releasing step 43 releases the memory allocated to this process. As a means for releasing this, the process may be aborted or swapped out. Then, by this release, the memory shortage is resolved, and the requesting process is allocated and the processing is continued.
【0030】これにより、たとえば優先度の低いプロセ
スが存在するために、優先度の高いプロセスが長時間実
行されないなどといった不都合がなくなり、適切な資源
管理が行なわれることになる。Thus, for example, since there is a process with a low priority, there is no inconvenience that the process with a high priority is not executed for a long time, and proper resource management is performed.
【0031】また、たとえば定期的に起動されるプロセ
スなどが常駐しているような場合には、優先度ではな
く、次の実行時刻までの時間が大きいプロセスを選択す
るようにすることも有効であり、また、終了時刻の指定
がないバッチプロセスを選択することも有効であり、ま
た、メモリの解放時の処理を考慮して、更新されたメモ
リの少ないプロセスを選択するようにすることも有効で
ある。これらは、プロセス管理情報14における情報の
管理方法によって実現可能となる。さらに、たとえばメ
インメモリ解放プロセス40自身に割り振られたメモリ
を解放することも、場合によっては有効である。In addition, for example, when a process which is regularly activated is resident, it is effective to select a process having a long time until the next execution time instead of the priority. Yes, it is also effective to select a batch process that does not have an end time specified, and it is also effective to select a process with a small updated memory in consideration of the processing when releasing the memory. Is. These can be realized by the information management method in the process management information 14. Further, it may be effective in some cases to release the memory allocated to the main memory releasing process 40 itself.
【0032】このメインメモリ解放プロセス40は、メ
インメモリ30の空き容量が所定の値を下回った際にの
み起動されるため、メインメモリ30の空き容量に余裕
があるときなどには、必要以上のオーバヘッドを発生さ
せることがない。また、オペレーティングシステム10
の配下で特殊モードで動作する応用プログラムとして構
築しておくため、この応用プログラムを書き替えるのみ
でメインメモリ30の資源管理規則を追加し変更するこ
とができ、その拡張性を確保できる。The main memory release process 40 is activated only when the free space of the main memory 30 falls below a predetermined value. No overhead is generated. In addition, the operating system 10
Since it is constructed as an application program which operates in a special mode under the control of, the resource management rule of the main memory 30 can be added and changed only by rewriting this application program, and its expandability can be secured.
【0033】図3には本実施形態の資源管理装置の動作
手順が示されている。本実施形態の資源管理装置では、
まず、メインメモリ30の資源管理規則を設定するため
のメニュー画面を表示する(ステップA1)。この画面
では、たとえば図4Aに示すように、メインメモリ不足
時の処理方法を一覧表示して、システム管理者に選択を
促す。そして、システム管理者は、この呈示された処理
方法の中から所望する処理方法の番号を、プロンプトで
示されたフィールド51に入力する(ステップA2)。
図4Bには、システム管理者の選択結果が示されてお
り、この場合は、処理方法2、処理方法1、処理方法4
の順番でメモリを解放すべきプロセスが決定されること
になる。FIG. 3 shows an operation procedure of the resource management system of this embodiment. In the resource management device of this embodiment,
First, a menu screen for setting the resource management rule of the main memory 30 is displayed (step A1). On this screen, for example, as shown in FIG. 4A, a list of processing methods when the main memory is insufficient is displayed, and the system administrator is prompted to make a selection. Then, the system administrator inputs the number of the desired processing method from the presented processing methods in the field 51 indicated by the prompt (step A2).
FIG. 4B shows the selection result of the system administrator. In this case, processing method 2, processing method 1, processing method 4 are shown.
In this order, the process that should release the memory will be determined.
【0034】この入力がされると、資源管理装置は、指
定された処理方法の前処理を実施して、メインメモリ解
放プロセス40が指定された処理方法で動作するように
準備する(ステップA3)。When this input is made, the resource management device carries out preprocessing of the designated processing method, and prepares the main memory release process 40 to operate according to the designated processing method (step A3). .
【0035】以降、メインメモリ解放プロセス40は、
空き容量待ちの状態となる(ステップA4)。メインメ
モリ30の空き容量が所定の値を下回ると、オペレーテ
ィングシステム10によってメインメモリ解放プロセス
40が実行状態となり、このメインメモリ解放プロセス
40によってターゲットプロセスの選択(ステップA
5)、メインメモリの解放(ステップA6)が行われる
ことになる。これらステップA4〜A6は、オペレーテ
ィングシステム10からメインメモリ解放プロセス40
の終了の指示がなされるまで繰り返される。Thereafter, the main memory release process 40
A free space wait state is set (step A4). When the free space of the main memory 30 falls below a predetermined value, the operating system 10 puts the main memory release process 40 into the execution state, and the main memory release process 40 selects the target process (step A
5) The main memory is released (step A6). These steps A4 to A6 are executed by the operating system 10 by the main memory release process 40.
Is repeated until an instruction to end is given.
【0036】なお、上記ステップA5のターゲットプロ
セス選択ステップにおいては、図4Bのフィールド51
で指定された優先度にしたがって各処理方法が採られて
いくことになる。すなわち、図4Bに示すフィールド5
1においては、例えば2,1,4の順で番号が指定され
ている。このため、まず「2」に該当するプロセスがあ
ればそのプロセスが選択され、なければ「1」に該当す
るプロセスがあればそれが選択され、という順序で選択
がされる。そして、選択されたプロセスにより使用中の
メインメモリが解放される。In the target process selection step of step A5, the field 51 of FIG. 4B is used.
Each processing method will be adopted according to the priority specified in. That is, field 5 shown in FIG. 4B.
In 1, the numbers are designated in the order of 2, 1, and 4, for example. For this reason, first, if there is a process corresponding to “2”, the process is selected, and if not, if there is a process corresponding to “1”, the process is selected. Then, the main memory in use by the selected process is released.
【0037】次に、資源管理装置による動作原理を図5
を参照して説明する。いま、メインメモリ30が、図5
の左側に示すように割り当てられているとする。ここ
で、応用プログラムAが、空き容量を上回るメインメモ
リ30の割り当てを新たに要求したとすると、メインメ
モリ解放プロセス40は、優先度の最も低い応用プログ
ラムBが使用しているメモリを強制的に解放する。そし
て、解放されたメモリ領域は、応用プログラムAに割り
当てられることになり、図5の右側に示すように優先度
の高い応用プログラムAの実行は継続されることにな
る。Next, the operation principle of the resource management device is shown in FIG.
This will be described with reference to FIG. Now, the main memory 30 is shown in FIG.
Are assigned as shown on the left side of. Here, if the application program A newly requests allocation of the main memory 30 that exceeds the free space, the main memory release process 40 forcibly uses the memory used by the application program B having the lowest priority. release. Then, the released memory area is allocated to the application program A, and the execution of the application program A having a high priority is continued as shown on the right side of FIG.
【0038】これにより、適切な資源管理が実現される
ことになる。 (第3実施形態)次に、図6乃至図11を参照して本発
明の第3実施形態を説明する。As a result, appropriate resource management is realized. (Third Embodiment) Next, a third embodiment of the present invention will be described with reference to FIGS.
【0039】図6は、第3実施形態に係る資源管理装置
の概略構成を示す機能ブロック図である。本実施形態の
資源管理装置は、オペレーティングシステム10によっ
て全体的な制御がされており、このオペレーティングシ
ステム10は、ファイル管理情報15を管理する。そし
て、オペレーティングシステム10は、このファイル管
理情報15によって管理するディスク70の空き領域が
所定の値を下回った際に、ファイル圧縮プロセス60を
実行可能状態とする。FIG. 6 is a functional block diagram showing a schematic configuration of the resource management device according to the third embodiment. The resource management apparatus of this embodiment is entirely controlled by an operating system 10, and this operating system 10 manages file management information 15. Then, the operating system 10 enables the file compression process 60 when the free area of the disk 70 managed by the file management information 15 falls below a predetermined value.
【0040】このファイル圧縮プロセス60は、オペレ
ーティングシステム10が管理するファイル管理情報1
5を参照しながら動作する。ファイル圧縮プロセス60
は、図6に示すように、空き領域不足待ちステップ6
1、ファイル選択ステップ62、ファイル圧縮ステップ
63よりなる。まず、空き領域不足待ちステップ61
は、オペレーティングシステム10を呼び出し、ディス
ク70の空き領域が不足する状態が出現するまでスリー
プする。The file compression process 60 is performed by the file management information 1 managed by the operating system 10.
Refer to 5 to operate. File compression process 60
As shown in FIG.
1. File selection step 62 and file compression step 63. First, wait 61 for free space shortage
Calls the operating system 10 and sleeps until a state where the free space of the disk 70 is insufficient appears.
【0041】いま、いずれかのファイルの新規作成や追
加を新たに要求され、この要求に応じた結果、残りの空
き領域が限界値を下回って、見合うだけの空き領域が存
在しない、すなわち、ファイル領域不足が発生したと仮
定する。このとき、オペレーティングシステム10は、
ファイル圧縮プロセス60をディスパッチし、ファイル
選択ステップ62にてファイル管理情報15を参照し、
たとえば参照日付の最も古いファイルを選択する。そし
て、ファイル圧縮ステップ63で、そのファイルを圧縮
する。したがって、この圧縮によってファイル領域不足
が解消された際、要求されたファイルの新規作成や追加
が行なわれて処理が継続される。Now, it is newly requested to newly create or add one of the files, and as a result of responding to this request, the remaining free area falls below the limit value, and there is no free area corresponding to the file. Suppose you run out of space. At this time, the operating system 10
Dispatch the file compression process 60, refer to the file management information 15 in the file selection step 62,
For example, select the file with the oldest reference date. Then, in a file compression step 63, the file is compressed. Therefore, when the file area shortage is resolved by this compression, the requested file is newly created or added and the processing is continued.
【0042】これにより、より効率的な資源管理が行な
われることになる。また、たとえば、バックアップとし
て存在しているファイルを選択するようにすることも有
効である。これらは、ファイル管理情報15における情
報の管理方法によって実現可能となる。さらに、たとえ
ば捻出しなければならないファイル領域のサイズからそ
の圧縮すべきファイルのサイズを予測して、そのサイズ
に近似するファイルを選択したり、より圧縮効率が高い
と予測されるサイズや種別をもつファイルを選択すると
いったことも有効である。例えば、MPEG形式やJP
EG形式のファイルよりも、文書ファイルの方が圧縮効
率が高いと予測できる。As a result, more efficient resource management can be performed. It is also effective to select a file that exists as a backup, for example. These can be realized by the method of managing the information in the file management information 15. Further, for example, by predicting the size of the file to be compressed from the size of the file area that must be extracted, and selecting a file close to that size, or having a size or type that is predicted to have higher compression efficiency. Selecting a file is also effective. For example, MPEG format or JP
It can be predicted that the compression efficiency of the document file is higher than that of the EG format file.
【0043】このファイル圧縮プロセス60も、また、
ディスク70の空き容量が所定の値を下回った際に起動
されるため、ディスク70の空き容量に余裕があるとき
などには、必要以上のオーバヘッドを発生させることが
ない。また、オペレーティングシステム10の配下で動
作する応用プログラムとして構築しておくため、この応
用プログラムを書き替えるのみでディスク70の資源管
理規則を追加し変更することができ、その拡張性を確保
できる。This file compression process 60 also
Since the disk 70 is activated when the free space of the disk 70 falls below a predetermined value, unnecessary overhead does not occur when the free space of the disk 70 has a margin. Further, since it is constructed as an application program that operates under the control of the operating system 10, the resource management rule of the disk 70 can be added and changed only by rewriting this application program, and its expandability can be secured.
【0044】図7には本実施形態の資源管理装置の動作
手順が示されている。本実施形態の資源管理装置では、
まず、ディスク70の資源管理規則を設定するためのメ
ニュー画面を表示する(ステップB1)。この画面で
は、たとえば図4Aに示した一覧表示と同様に、ディス
ク70の空き領域が不足時の処理方法を一覧表示して、
システム管理者に選択を促す。そして、システム管理者
は、この呈示された処理方法の中から所望する処理方法
の番号を、プロンプトで示されたフィールドに入力する
(ステップB2)。FIG. 7 shows an operation procedure of the resource management system of this embodiment. In the resource management device of this embodiment,
First, a menu screen for setting the resource management rule of the disk 70 is displayed (step B1). On this screen, similar to the list display shown in FIG. 4A, for example, a list of processing methods when the free space of the disk 70 is insufficient is displayed,
Prompt system administrator for selection. Then, the system administrator inputs the number of the desired processing method from the presented processing methods in the field indicated by the prompt (step B2).
【0045】この入力がされると、資源管理装置は、指
定された処理方法の前処理を実施して、ファイル圧縮プ
ロセス60が指定された処理方法で動作するように準備
する(ステップB3)。When this input is made, the resource management device carries out preprocessing of the designated processing method, and prepares the file compression process 60 to operate with the designated processing method (step B3).
【0046】以降、ファイル圧縮プロセス60は、空き
容量待ちの状態となる(ステップB4)。ディスク70
の空き容量が所定の値を下回ると、オペレーティングシ
ステム10によってファイル圧縮プロセス60が実行状
態となり、このファイル圧縮プロセス60によってファ
イルの選択(ステップB5)、ファイルの圧縮(ステッ
プA6)が行われることになる。これらステップB4〜
B6は、オペレーティングシステム10からメインメモ
リ解放プロセス40の終了の指示がなされるまで繰り返
される。After that, the file compression process 60 enters a waiting state for free space (step B4). Disk 70
When the free space of the file is less than a predetermined value, the operating system 10 activates the file compression process 60, and the file compression process 60 selects the file (step B5) and compresses the file (step A6). Become. These steps B4 ~
B6 is repeated until the operating system 10 issues an instruction to terminate the main memory release process 40.
【0047】なお、上記ステップB5のファイル選択ス
テップにおいては、第2実施形態の場合と同様にメニュ
ー画面上のフィールドで指定された優先度にしたがって
各処理方法が採られていくことになる。本実施形態にお
ける複数の処理方法のうちの一方法の例としては、「更
新日付けの最も古いファイルを選択する」や「バックア
ップファイルを優先して選択する」などが挙げられる。
各処理方法の選択は、実施例2で説明したような手順で
行われる。そして、選択されたファイルが圧縮の対象と
なる。In the file selection step of step B5, each processing method is adopted according to the priority designated in the field on the menu screen, as in the case of the second embodiment. Examples of one of the plurality of processing methods in the present embodiment include “select the oldest file with an update date” and “select backup files with priority”.
Selection of each processing method is performed by the procedure as described in the second embodiment. Then, the selected file is the target of compression.
【0048】ここで、図8を参照して本実施形態の動作
原理を説明する。いま、ディスク70が、図8の左側に
示すように割り当てられているとする。ここで、ファイ
ルAが、空き領域を上回るディスクの割り当てを新たに
要求したとすると、ファイル圧縮プロセス60は、メニ
ュー画面上のフィールドにて入力された複数の処理方法
のうちの所定の処理方法(例えば更新日付けの最も古い
ファイルを選択する方法)により、ファイルBを選択し
て圧縮する。この結果解放されたファイル領域は、ファ
イルAの追加分として割り当てられることになり、図5
の右側に示すようにその実行が継続されることになる。Here, the operation principle of this embodiment will be described with reference to FIG. Now, it is assumed that the disk 70 is allocated as shown on the left side of FIG. Here, if the file A newly requests allocation of a disk that exceeds the free space, the file compression process 60 uses a predetermined processing method (of a plurality of processing methods input in the field on the menu screen). For example, the file B is selected and compressed by the method of selecting the oldest file with the update date. As a result, the file area released is allocated as an additional portion of the file A, as shown in FIG.
The execution will continue as shown on the right side of.
【0049】これにより、適切な資源管理がなされるこ
とになる。また、たとえば図9に示すように、バックア
ップとして存在しているファイル(拡張子として「.b
ak」が付加されたファイル)がある場合には、これら
のファイルを優先して選択するようにすれば、より適切
な資源管理が実現される。As a result, appropriate resource management is performed. Further, as shown in FIG. 9, for example, a file existing as a backup (extension “.b
If there are files to which "ak" is added), more appropriate resource management can be realized by preferentially selecting these files.
【0050】さらに、図10に示すように、たとえば圧
縮処理を施した結果、捻出される空き容量が、捻出しな
ければならないファイル容量に最も近似すると予測され
るファイルを選択することにより、圧縮に費やされるC
PU時間を節約することができる。Further, as shown in FIG. 10, for example, by selecting a file whose free space that is uncompressed as a result of compression processing is closest to the file capacity that must be uncompressed, compression is performed. C spent
PU time can be saved.
【0051】なお、前述の図7のフローチャートにおい
ては、ファイルの空き容量が所定の値(第1の値)を下
回った場合にファイルの選択・圧縮を行っているが、こ
れに加え、ファイルの空き容量が所定の値(第2の値)
にまで回復した場合にファイルの選択・伸張を行うよう
にしてもよい。この場合の動作手順を図11A及び図1
1Bを参照して説明する。図11Aはファイルの圧縮処
理に関し、図11Bはファイルの伸張に関するものであ
る。In the flow chart of FIG. 7, the file is selected and compressed when the free space of the file falls below a predetermined value (first value). Free space is a predetermined value (second value)
The file may be selected / decompressed when the file is recovered up to. The operation procedure in this case is shown in FIG. 11A and FIG.
1B will be described. 11A relates to file compression processing, and FIG. 11B relates to file decompression.
【0052】まず、ファイルの圧縮処理の手順を説明す
る。いま、オペレーティングシステム10において、フ
ァイル管理情報15を参照することにより、ディスク7
0内のファイル空き領域量が監視されている(ステップ
C1)。そして、このファイル管理情報15から得られ
る空き領域量が所定の値L1より小さいか否かが判別さ
れる(ステップC2)。L1より小さくなければファイ
ル圧縮処理は行わず、L1より小さい場合には、オペレ
ーティングシステム10は、ファイル圧縮プロセス60
をディスパッチする。これにより、ファイル圧縮プロセ
ス60にて、前述の手順で決定された処理方法に基づ
き、圧縮すべきファイルの選択が行われる(ステップC
3)。次いで、選択されたファイルの圧縮が行われる
(ステップC4)。First, the procedure of file compression processing will be described. Now, with reference to the file management information 15 in the operating system 10, the disk 7
The file free area amount within 0 is monitored (step C1). Then, it is determined whether or not the amount of free space obtained from the file management information 15 is smaller than a predetermined value L1 (step C2). If it is not smaller than L1, file compression processing is not performed. If it is smaller than L1, the operating system 10 determines that the file compression process 60
Dispatch. As a result, the file compression process 60 selects a file to be compressed based on the processing method determined in the above procedure (step C).
3). Next, the selected file is compressed (step C4).
【0053】次に、ファイルの伸張処理の手順を説明す
る。上記の場合と同様、オペレーティングシステム10
において、ファイル管理情報15を参照することによ
り、ディスク70内のファイル空き領域量が監視されて
いる(ステップD1)。そして、このファイル管理情報
15から得られる空き領域量が所定の値L2より大きい
か否かが判別される(ステップD2)。L2より大きく
なければファイル伸張処理は行わず、L2より大きい場
合には、オペレーティングシステム10は、ファイル伸
張プロセス(図示せず)をディスパッチする。これによ
り、ファイル伸張プロセスにて、所定の処理方法に基づ
き、伸張すべきファイルの選択が行われる(ステップD
3)。次いで、選択されたファイルの伸張が行われる
(ステップD4)。Next, the procedure of file decompression processing will be described. As in the case above, the operating system 10
The file free area amount in the disk 70 is monitored by referring to the file management information 15 (step D1). Then, it is determined whether or not the amount of free area obtained from the file management information 15 is larger than a predetermined value L2 (step D2). If it is larger than L2, the file expansion process is not performed, and if it is larger than L2, the operating system 10 dispatches a file expansion process (not shown). Thereby, in the file decompression process, the file to be decompressed is selected based on the predetermined processing method (step D).
3). Next, the selected file is expanded (step D4).
【0054】このように伸張処理を取り入れることによ
り、ファイル容量に余裕が発生した際のファイルへのア
クセスが効率よく行なえることとなる。尚、上記実施の
形態ではファイル圧縮プログラムは、まず空き領域不足
ステップにて、ファイル領域が不足するまで待機すると
説明したが、別の方法としてオペレーティングシステム
でのファイル伸張プロセスについても同様である。ま
た、ファイル領域不足を検出した時点で、ファイル圧縮
プログラムを起動するようにしても良い。By incorporating the decompression processing in this way, it is possible to efficiently access the file when the file capacity has a margin. In the above-described embodiment, the file compression program waits until the file area runs short in the free area shortage step, but the same applies to the file decompression process in the operating system as another method. Further, the file compression program may be started when the lack of the file area is detected.
【0055】(第4実施形態)次に、図12を参照して
本発明の第4実施形態を説明する。図12は、第4実施
形態に係る資源管理装置の概略構成を示す機能ブロック
図である。(Fourth Embodiment) Next, a fourth embodiment of the present invention will be described with reference to FIG. FIG. 12 is a functional block diagram showing a schematic configuration of the resource management device according to the fourth embodiment.
【0056】本実施形態の資源管理装置は、第3実施形
態の資源管理装置の構成に加え、ファイル圧縮プロセス
60が、リンク作成部64とファイル移動部65とをさ
らに具備した構成となっている。The resource management system of this embodiment has a configuration in which the file compression process 60 further includes a link creation section 64 and a file migration section 65 in addition to the configuration of the resource management system of the third embodiment. .
【0057】本実施形態のファイル圧縮プロセス60で
は、たとえばファイル選択部62が選択したディスク7
0aのファイルをファイル圧縮部63が圧縮した際、フ
ァイル移動部65が、この圧縮ファイルをディスク70
aからサブディスクであるディスク70bに移動し、リ
ンク作成部64が、このリンク情報を作成してディスク
70aの移動元に格納する。これにより、メインディス
クであるディスク70aは、より適切に資源管理が行な
われることになる。In the file compression process 60 of this embodiment, for example, the disk 7 selected by the file selection unit 62 is selected.
When the file compressing unit 63 compresses the file 0a, the file moving unit 65 copies the compressed file to the disk 70.
The disk is moved from a to the disk 70b which is a sub disk, and the link creating unit 64 creates this link information and stores it in the source of the disk 70a. As a result, the disk 70a, which is the main disk, is more appropriately resource-managed.
【0058】[0058]
【発明の効果】以上詳述したように本発明によれば、ペ
ージアウトデーモンプロセスがメインメモリ内を走査す
るサイクルをシステムの稼働状況に応じて制御するた
め、適切かつ効率的な資源管理が実現される。As described in detail above, according to the present invention, the cycle in which the pageout daemon process scans the main memory is controlled according to the operating status of the system, so that appropriate and efficient resource management is realized. To be done.
【0059】また、メインメモリ内に領域不足が発生し
た際に、適切なプログラムを選択し、このプログラムに
割り当てられたメインメモリ内のページフレームを解放
することによって、たとえばさほど重要でないプログラ
ムがシステム内に存在するために、重要なプログラムの
実行が行なえないといったことを回避する。When an area shortage occurs in the main memory, an appropriate program is selected and the page frame in the main memory allocated to this program is released, so that, for example, a program that is not so important can be stored in the system. It avoids that an important program cannot be executed because it exists in.
【0060】さらに、ディスク装置内に領域不足が発生
した際にも、適切なファイルを選択し、このファイルを
圧縮することによって空き領域を捻出する。これによ
り、より効率的な資源管理を実現する。Further, even when an area shortage occurs in the disk device, an appropriate file is selected and this file is compressed to generate an empty area. This realizes more efficient resource management.
【図1】本発明の第1実施形態に係わる資源管理装置の
概略構成を示す機能ブロック図。FIG. 1 is a functional block diagram showing a schematic configuration of a resource management device according to a first embodiment of the present invention.
【図2】同実施の形態に係わる資源管理装置の概略構成
を示す機能ブロック図。FIG. 2 is a functional block diagram showing a schematic configuration of a resource management device according to the same embodiment.
【図3】本発明の第2実施形態に係わる資源管理装置の
動作手順を説明するフローチャート。FIG. 3 is a flowchart illustrating an operation procedure of the resource management device according to the second embodiment of the present invention.
【図4】同実施の形態に係わる資源管理装置のメインメ
モリ不足時の処理方法をシステム管理者に選択させるた
めの画面表示を例示する図。FIG. 4 is an exemplary view showing a screen display for allowing a system administrator to select a processing method when the main memory of the resource management device according to the embodiment is insufficient.
【図5】同実施の形態に係わる資源管理装置の動作原理
を説明する概念図。FIG. 5 is a conceptual diagram illustrating an operation principle of the resource management device according to the embodiment.
【図6】本発明の第3実施形態に係わる資源管理装置の
概略構成を示す機能ブロック図。FIG. 6 is a functional block diagram showing a schematic configuration of a resource management device according to a third embodiment of the present invention.
【図7】同実施の形態に係わる資源管理装置の動作手順
を説明するフローチャート。FIG. 7 is a flowchart illustrating an operation procedure of the resource management device according to the embodiment.
【図8】同実施の形態に係わる資源管理装置の動作原理
を説明する概念図。FIG. 8 is a conceptual diagram illustrating an operation principle of the resource management device according to the embodiment.
【図9】同実施の形態に係わる資源管理装置の動作原理
を説明する概念図。FIG. 9 is a conceptual diagram illustrating an operation principle of the resource management device according to the same embodiment.
【図10】同実施の形態に係わる資源管理装置の動作原
理を説明する概念図。FIG. 10 is a conceptual diagram illustrating an operation principle of the resource management device according to the embodiment.
【図11】同実施の形態に係わる資源管理装置の動作手
順を説明するフローチャート。FIG. 11 is a flowchart illustrating an operation procedure of the resource management device according to the embodiment.
【図12】本発明の第4実施形態に係わる資源管理装置
の概略構成を示す機能ブロック図。FIG. 12 is a functional block diagram showing a schematic configuration of a resource management device according to a fourth embodiment of the present invention.
10…オペレーティングシステム、12…メインメモリ
管理部、13…メモリ管理情報、20…ページアウトデ
ーモンプロセス、29…ページフレームテーブル、30
…メインメモリ、40…メインメモリ解放プロセス、6
0…ファイル圧縮プロセス、70…ディスク。10 ... Operating system, 12 ... Main memory management unit, 13 ... Memory management information, 20 ... Page out daemon process, 29 ... Page frame table, 30
… Main memory, 40… Main memory release process, 6
0 ... File compression process, 70 ... Disk.
─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───
【手続補正書】[Procedure amendment]
【提出日】平成8年10月22日[Submission date] October 22, 1996
【手続補正1】[Procedure amendment 1]
【補正対象書類名】明細書[Document name to be amended] Statement
【補正対象項目名】請求項2[Correction target item name] Claim 2
【補正方法】変更[Correction method] Change
【補正内容】[Correction contents]
Claims (21)
に予め設定された数ずつ巡回して走査していき、前回の
走査時以降プロセッサによってアクセスされていないペ
ージフレームを解放した後、スリープ状態となるページ
アウトデーモンプロセスとを備えた情報処理システムに
使用される資源管理装置であって、 前記ページアウトデーモンプロセスを所定の間隔でディ
スパッチする手段と、 前記メインメモリ内の空きページフレーム数を取得する
手段と、 取得された前記空きページフレーム数に基づいて、前記
ページアウトデーモンプロセスがディスパッチ時毎に走
査するページフレーム数を設定する手段とを具備したこ
とを特徴とする情報処理装置の資源管理装置。1. A main memory and page frames constituting this main memory are periodically scanned by scanning a preset number of times, and page frames which have not been accessed by a processor since the last scanning are scanned. A resource management device used in an information processing system including a page-out daemon process that is in a sleep state after being released, and means for dispatching the page-out daemon process at a predetermined interval; And a means for setting the number of page frames to be scanned by the page-out daemon process at each dispatch time based on the acquired number of empty page frames. Resource management device for information processing device.
なくなるにつれて前ージアウトデーモンプロセスが走査
するページフレーム数を多く設定する手段を有すること
を特徴とする請求項1記載の情報処理装置の資源管理装
置。2. The information processing apparatus according to claim 1, wherein the setting means has means for setting a larger number of page frames scanned by the previous pageout daemon process as the number of empty page frames decreases. Resource management device.
なくなるにつれてページアウトデーモンプロセスをディ
スパッチする間隔を短くする手段を有することを特徴と
する請求項1記載の情報処理装置の資源管理装置。3. The resource management apparatus for an information processing apparatus according to claim 1, wherein the setting means has means for shortening the interval for dispatching the pageout daemon process as the number of empty page frames decreases.
一つ以上のプログラムを選択し、 この選択したプログラムに割り当てられたメインメモリ
内のページフレームを解放した後、スリープ状態となる
メモリ解放プログラムとを備えた情報処理システムに使
用される資源管理装置であって、 前記メインメモリ内の空きページフレーム数を取得する
手段と、 取得された前記空きページフレーム数が所定の値を下回
っているときに、前記メモリ解放プログラムを実行可能
状態とする手段とを具備したことを特徴とする情報処理
装置の資源管理装置。4. A main memory and one or more programs selected from programs expanded in the main memory are selected, a page frame in the main memory allocated to the selected program is released, and then a sleep is performed. A resource management device for use in an information processing system comprising a memory release program in a state, wherein the means for acquiring the number of empty page frames in the main memory, and the acquired number of empty page frames are predetermined. A resource management device for an information processing device, comprising means for setting the memory release program to an executable state when the value is below the value.
に展開されているプログラムの中から次の実行時刻まで
の時間が大きいプログラムを優先して選択する手段を有
することを特徴とする請求項4記載の情報処理装置の資
源管理装置。5. The memory release program has means for preferentially selecting a program having a long time until the next execution time from programs expanded in the main memory. Resource management device for information processing device.
に展開されているプログラムの中から実行優先度の低い
プログラムを優先して選択する手段を有することを特徴
とする請求項4記載の情報処理装置の資源管理装置。6. The information processing apparatus according to claim 4, wherein the memory release program has means for preferentially selecting a program having a low execution priority from among the programs loaded in the main memory. Resource management device.
に展開されているプログラムの中から更新されたページ
フレームの保有数が少ないプログラムを優先して選択す
る手段を有することを特徴とする請求項4記載の情報処
理装置の資源管理装置。7. The memory release program has means for preferentially selecting a program having a small number of updated page frames among programs expanded in the main memory. Resource management device for information processing device.
ラムに割り当てられたページフレームを解放する手段を
有することを特徴とする請求項4記載の情報処理装置の
資源管理装置。8. The resource management device for an information processing apparatus according to claim 4, wherein the memory release program has a unit for releasing a page frame assigned to the own program.
に展開されているプログラムの中から該メモリを解放す
る対象となるものを選択する基準を2つ以上有してお
り、ユーザがその基準を選択する手段を有することを特
徴とする請求項4記載の情報処理装置の資源管理装置。9. The memory release program has two or more criteria for selecting a program to be released from the memory expanded from the main memory, and the user selects the criteria. The resource management device of the information processing device according to claim 4, further comprising means.
ファイルを選択し、この選択したファイルを圧縮するフ
ァイル圧縮プログラムとを備えた情報処理システムに使
用される資源管理装置であって、 二次記憶装置内の空き容量を取得する手段と、 取得された前記空き容量が第1の値を下回っているとき
に、前記ファイル圧縮プログラムを実行可能状態とする
手段とを有することを特徴とする請求項4記載の情報処
理装置の資源管理装置。10. An information processing system comprising: a secondary storage device; and a file compression program for selecting one or more files from files stored in the secondary storage device and compressing the selected files. A resource management device used, a means for acquiring the free space in the secondary storage device, and a state in which the file compression program can be executed when the acquired free space is less than a first value. 5. The resource management device for an information processing device according to claim 4, further comprising:
置と、 選択し圧縮したファイルを前記他の二次記憶装置内に移
動させる手段と、 前記ファイルの移動元の格納位置と移動先の格納位置と
のリンク情報を作成して前記移動元の格納位置に格納す
る手段とを具備したことを特徴とする請求項10記載の
情報処理装置の資源管理装置。11. A secondary storage device different from the secondary storage device, a means for moving a selected and compressed file into the other secondary storage device, a storage location of a migration source and a migration destination of the file. 11. The resource management device of the information processing device according to claim 10, further comprising: means for creating link information with the storage position of and storing the link information in the storage position of the movement source.
装置に格納されたファイルの中から参照日付の古いファ
イルを優先して選択する手段を有することを特徴とする
請求項10記載の情報処理装置の資源管理装置。12. The information processing apparatus according to claim 10, wherein the file compression program has means for preferentially selecting a file having an old reference date from files stored in the secondary storage device. Resource management device.
装置に格納されたファイルの中からバックアップファイ
ルを優先して選択する手段を有することを特徴とする請
求項10記載の情報処理装置の資源管理装置。13. The resource management device for an information processing apparatus according to claim 10, wherein the file compression program has means for preferentially selecting a backup file from files stored in the secondary storage device. .
装置に格納されたファイルの中から更新されていないフ
ァイルを優先して選択する手段を有することを特徴とす
る請求項10記載の情報処理装置の資源管理装置。14. The information processing apparatus according to claim 10, wherein the file compression program has means for preferentially selecting a file that has not been updated from files stored in the secondary storage device. Resource management device.
装置に格納されたファイルそれぞれのサイズに基づいて
選択を行なう手段を有することを特徴とする請求項10
記載の情報処理装置の資源管理装置。15. The file compression program has means for making selection based on the size of each file stored in the secondary storage device.
A resource management device of the information processing device described.
装置に展開されているファイルの中から圧縮の対象とな
るものを選択する基準を2つ以上有しており、ユーザが
その基準を選択する手段を有することを特徴とする請求
項10記載の情報処理装置の資源管理装置。16. A file compression program has two or more criteria for selecting a file to be compressed from files expanded in a secondary storage device, and means for a user to select the criteria. The resource management device for an information processing device according to claim 10, further comprising:
ファイルを伸長する手段を有することを特徴とする請求
項10記載の情報処理装置の資源管理装置。17. The resource management device for an information processing apparatus according to claim 10, wherein the file compression program has means for decompressing the compressed file.
を上回ったときに、伸張手段に圧縮したファイルの伸長
を行わせる手段を有することを特徴とする請求項17記
載の情報処理装置の資源管理装置。18. The information processing system according to claim 17, further comprising means for causing the decompression means to decompress the compressed file when the free space in the secondary storage device exceeds the second value. Device resource management device.
の各ページフレームを予め設定された数ずつ巡回して走
査していき、 前回の走査時以降プロセッサによってアクセスされてい
ないページフレームを解放した後、スリープ状態となる
ページアウトデーモンプロセスとを備えた情報処理シス
テムにおける資源管理方法であって、 前記メインメモリ内の空きページフレーム数を取得し、 取得された前記空きページフレーム数に基づいて、前記
ページアウトデーモンプロセスがディスパッチ時毎に走
査するページフレーム数を設定するようにしたことを特
徴とする情報処理システムにおける資源管理方法。19. The main memory and each page frame in the main memory are circulated and scanned by a preset number, and after releasing page frames that have not been accessed by the processor since the last scan, A resource management method in an information processing system including a page-out daemon process that is in a sleep state, wherein the number of empty page frames in the main memory is acquired, and the page is acquired based on the acquired number of empty page frames. A resource management method in an information processing system, wherein the number of page frames to be scanned by the out-daemon process is set at each dispatch.
展開されているプログラムの中から一つ以上のプログラ
ムを選択し、 この選択したプログラムに割り当てられたメインメモリ
内のページフレームを解放した後、スリープ状態となる
メモリ解放プログラムとを備えた情報処理システムにお
ける資源管理方法であって、 前記メインメモリ内の空きページフレーム数を取得し、 取得された前記空きページフレーム数が所定のページフ
レーム数を下回っているときに、前記メモリ解放プログ
ラムを実行可能状態とするようにしたことを特徴とする
情報処理システムにおける資源管理方法。20. A main memory and one or more programs selected from programs expanded in the main memory are selected, a page frame in the main memory allocated to the selected program is released, and then sleep is performed. A method for managing resources in an information processing system, comprising: a memory release program in a state, wherein the number of empty page frames in the main memory is acquired, and the acquired number of empty page frames is less than a predetermined number of page frames. A resource management method in an information processing system, wherein the memory release program is set to an executable state during
格納されたファイルの中から一つ以上のファイルを選択
し、 この選択したファイルを圧縮するファイル圧縮プログラ
ムとを備えた情報処理システムにおける資源管理方法で
あって、 前記二次記憶装置内の空き容量を取得し、 取得された前記空き容量が所定の値を下回っているとき
に、前記ファイル圧縮プログラムを実行可能状態とする
ようにしたことを特徴とする情報処理システムにおける
資源管理方法。21. An information processing system comprising: a secondary storage device; and a file compression program for selecting one or more files from files stored in the secondary storage device and compressing the selected files. In the resource management method according to the first aspect, the free space in the secondary storage device is acquired, and when the acquired free space is below a predetermined value, the file compression program is set to an executable state. A resource management method in an information processing system characterized by the above.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8250559A JP3023316B2 (en) | 1996-01-31 | 1996-09-20 | Resource management apparatus for information processing apparatus and resource management method in information processing system |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8-15661 | 1996-01-31 | ||
| JP1566196 | 1996-01-31 | ||
| JP8250559A JP3023316B2 (en) | 1996-01-31 | 1996-09-20 | Resource management apparatus for information processing apparatus and resource management method in information processing system |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP11334836A Division JP2000215099A (en) | 1996-01-31 | 1999-11-25 | Resource management apparatus for information processing apparatus and resource management method in information processing system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH09269902A true JPH09269902A (en) | 1997-10-14 |
| JP3023316B2 JP3023316B2 (en) | 2000-03-21 |
Family
ID=26351851
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8250559A Expired - Lifetime JP3023316B2 (en) | 1996-01-31 | 1996-09-20 | Resource management apparatus for information processing apparatus and resource management method in information processing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3023316B2 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2002086736A1 (en) * | 2001-04-19 | 2002-10-31 | International Business Machines Corporation | Server, computer system, object management method, server control method, computer program |
| JP2014513342A (en) * | 2011-03-29 | 2014-05-29 | マイクロソフト コーポレーション | Conservative garbage collection with simultaneous marks and sweeps for memory management |
| US9325722B2 (en) | 2013-07-30 | 2016-04-26 | Fujitsu Limited | Apparatus, method, and computer-readable medium |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6105905B2 (en) * | 2012-11-13 | 2017-03-29 | 株式会社米澤物産 | Light-shielding tubular tape for pull-up curtains |
-
1996
- 1996-09-20 JP JP8250559A patent/JP3023316B2/en not_active Expired - Lifetime
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2002086736A1 (en) * | 2001-04-19 | 2002-10-31 | International Business Machines Corporation | Server, computer system, object management method, server control method, computer program |
| JP2014513342A (en) * | 2011-03-29 | 2014-05-29 | マイクロソフト コーポレーション | Conservative garbage collection with simultaneous marks and sweeps for memory management |
| US9325722B2 (en) | 2013-07-30 | 2016-04-26 | Fujitsu Limited | Apparatus, method, and computer-readable medium |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3023316B2 (en) | 2000-03-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2000215099A (en) | Resource management apparatus for information processing apparatus and resource management method in information processing system | |
| JP6138774B2 (en) | Computer-implemented method and computer system | |
| JP6370218B2 (en) | MEMORY MANAGEMENT METHOD, COMPUTER SYSTEM, COMPUTER PROGRAM, AND STORAGE MEDIUM | |
| JP5980916B2 (en) | Computer-implemented method and computer system | |
| EP0969383A2 (en) | Method for efficient non-virtual main memory management | |
| CN111427675B (en) | Data processing method and device and computer readable storage medium | |
| US20020049719A1 (en) | Application execution apparatus and method | |
| JPH10124334A (en) | Method and computer system for executing a thread of execution with reduced run-time memory space requirements | |
| JPH08129457A (en) | Method and apparatus for expansion,reduction and redistribution of external storage structure | |
| US20040107291A1 (en) | Data processing system, data processing method, informaton processing device and information processing method, and storage medium | |
| JP2010044784A (en) | Scheduling request in system | |
| JP3777162B2 (en) | Method and apparatus for maintaining a queue | |
| JP2002259146A (en) | Application execution apparatus and method | |
| JPH09269902A (en) | Resource management apparatus for information processing apparatus and resource management method in information processing system | |
| JPH10312297A (en) | Resource management method, resource management device, and recording medium in information processing system having multitask function | |
| JPH03141442A (en) | Task control method | |
| CN118093107A (en) | A delayed message processing method and device, storage medium and electronic device | |
| JP5150214B2 (en) | Image forming apparatus | |
| JPH07271603A (en) | Overlay program loading method | |
| JP2003186686A (en) | Resource control device, method and storage medium | |
| JP3085202B2 (en) | Memory priority control method | |
| JP2001142723A (en) | Resource allocation method, computer system and recording medium | |
| JPH0452942A (en) | File transfer system | |
| JP2002259201A (en) | How to start the computer system | |
| JP2008226082A (en) | Data compression/decompression device, program for making computer execute, and data compression/decompression method |