JPH04111029A - Main storage allocation control system - Google Patents
Main storage allocation control systemInfo
- Publication number
- JPH04111029A JPH04111029A JP2228122A JP22812290A JPH04111029A JP H04111029 A JPH04111029 A JP H04111029A JP 2228122 A JP2228122 A JP 2228122A JP 22812290 A JP22812290 A JP 22812290A JP H04111029 A JPH04111029 A JP H04111029A
- Authority
- JP
- Japan
- Prior art keywords
- file
- main storage
- program
- main memory
- allocation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 239000000872 buffer Substances 0.000 claims abstract description 36
- 230000006870 function Effects 0.000 claims description 7
- 238000000034 method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 239000012141 concentrate Substances 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は版想記憶制御機能を備える計算機システムの主
記憶割り当て制御方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a main memory allocation control method for a computer system having a virtual memory control function.
第3図(a)は、外部記憶装!!42上のファイルを仮
想記憶41上のファイルバッファ32と関連づけること
によりプログラム31からファイル52に対して行う物
理ファイルアクセスを論理ファイルアクセスとして実現
した例である。Figure 3(a) shows an external storage device! ! This is an example in which a physical file access from a program 31 to a file 52 is realized as a logical file access by associating a file on 42 with a file buffer 32 on a virtual memory 41.
ファイルバッファ32は外部記憶装置42の一部または
全てに関連づけられ、論理ファイルアクセスはファイル
バッファ32の参照、更新で実現される。The file buffer 32 is associated with part or all of the external storage device 42, and logical file access is realized by referencing and updating the file buffer 32.
ファイルバッファ32の内容は外部記憶装置42との間
でシステムが入出力を行うことにより反映される。The contents of the file buffer 32 are reflected when the system performs input/output with the external storage device 42.
仮想記憶41のファイルバッファ32に割り当てる主記
憶は、第3図(b)に示すようにプログラムとバッファ
それぞれに対して固定的に配分する方法と第3図(C)
に示すようにプログラム/バッファの区別をせず必要に
応じて割り当てする方法とがあった。The main memory allocated to the file buffer 32 of the virtual memory 41 can be fixedly allocated to each program and buffer as shown in FIG. 3(b), or as shown in FIG. 3(C).
As shown in Figure 2, there is a method of allocating as needed without distinguishing between programs and buffers.
なおこの種の技術として関連するものには、例えば特開
昭62−37754号公報などがある。Note that related techniques of this type include, for example, Japanese Patent Application Laid-Open No. 62-37754.
上記従来技術では、プログラム用の主記憶とファイルバ
ッファ用の主記憶の割り当て配分は、システム開始時に
固定されているか、または、ファイルバッファも仮想記
憶の一部とみなし、プログラム/バッファの区別をせず
に主記憶を割り当てするかのいずれかであった。In the above-mentioned conventional technology, the allocation distribution of main memory for programs and main memory for file buffers is fixed at the time of system startup, or file buffers are also considered as part of virtual memory, and programs and buffers are not distinguished. It was either to allocate main memory without
仮想記憶制御機能においては、プログラムに対する主記
憶の割り当て量が少ないとページングが多く発生して性
能は低下し、割り当て量が多いほど性能は向上する。ま
たファイルバッファも同様に主記憶の割り当て量が少な
いほどバッファ中にデータが存在する確率が低くなるた
め性能は低下し、割り当て量が多いほど性能は向上する
。In the virtual memory control function, when the amount of main memory allocated to a program is small, paging occurs frequently and performance deteriorates, and the larger the allocated amount, the better the performance. Similarly, for file buffers, the smaller the allocated amount of main memory, the lower the probability that data exists in the buffer, resulting in lower performance, and the larger the allocated amount, the better the performance.
主記憶の配分をシステム開始時に固定で持つ方式では、
実行するプログラムの状況によって、プログラムに対す
るアクセス頻度あるいはファイルに対するアクセス頻度
に変動があった場合でも、プログラムとファイルバッフ
ァに対する主記憶割り当て配分は一定であるため主記憶
の使用効率が上がらず、またプログラムとファイルバッ
ファのいずれかの一方にアクセスが集中した場合、全体
的な性能上のネックになることがある。In a system where the main memory allocation is fixed at system startup,
Even if the program access frequency or file access frequency changes depending on the status of the program to be executed, the main memory allocation distribution for the program and file buffer remains constant, so the main memory usage efficiency does not improve, and the program If accesses concentrate on one of the file buffers, it may become a bottleneck in overall performance.
また、ファイルバッファを仮想記憶上に持ち、プログラ
ムや作業領域など本来の仮想記憶上のデータとファイル
上のデータを同等に扱う方式では、アクセスするファイ
ルのサイズが大きくなるに従い相対的にプログラムや作
業領域用に割り当てられる主記憶の容量が小さくなるた
めページングの発生頻度が増大し性能低下を招くことが
ある。In addition, in a method that stores file buffers in virtual memory and treats data on the original virtual memory, such as programs and work areas, and data on the file equally, as the size of the file being accessed increases, the relative program and work Since the capacity of the main memory allocated for the area becomes smaller, the frequency of occurrence of paging increases, which may lead to a decrease in performance.
本発明の目的は、上記欠点を解決し、効率の良い主記憶
の割り当てを行うことにより高性能な計算機システムを
実現することにある。An object of the present invention is to solve the above-mentioned drawbacks and realize a high-performance computer system by efficiently allocating main memory.
上記目的を達成するために、ページング回数などをはじ
めとする本来の仮想記憶に対する負荷と、ファイルアク
セスがファイルバッファでヒツトした確率などファイル
に対する負荷を求める機能を有し、本来の仮想記憶に割
り当てる主記憶容量とファイルバッファに割り当てる主
記憶容量の配分を、この機能により求めたシステムの負
荷に応じて動的に変更できるようにすることによって常
に最適の状態を保つことを可能にしたものである。In order to achieve the above purpose, it has a function to calculate the load on the original virtual memory, such as the number of paging times, and the load on the file, such as the probability that a file access hits the file buffer. By dynamically changing the allocation of storage capacity and main storage capacity allocated to file buffers according to the system load determined by this function, it is possible to always maintain an optimal state.
プログラムに対するアクセス頻度が増えたとき、プログ
ラムに配分する主記憶容量を増し、ファイルバッファに
対するアクセス頻度が増えたとき、ファイルバッファに
配布する主記憶容量を増すので、いずれかの負荷の変動
に応じて動的に主記憶容量の配分を行うことができ、も
って性能の向上を図ることができる。When the frequency of access to a program increases, the main memory capacity allocated to the program is increased, and when the frequency of access to the file buffer increases, the main memory capacity allocated to the file buffer is increased, so depending on changes in either load. It is possible to dynamically allocate main memory capacity, thereby improving performance.
以下本発明の実施例について図面を用いて説明する。 Embodiments of the present invention will be described below with reference to the drawings.
第1図は、本実施例の構成を示す図であり、1は仮想記
憶(プログラムおよびその作業領域のための仮想記憶エ
リア)およびファイルバッファに対する負荷を測定する
プログラム、2はプログラム1が出力する負荷情報に基
づいて仮想記憶およびファイルバッファに対する主記憶
の割当の配分を制御するプログラム、3はプログラム2
の決定により主記憶の割当と割当解除を行うプログラム
。FIG. 1 is a diagram showing the configuration of this embodiment, in which 1 is a program that measures the load on virtual memory (virtual memory area for programs and their work areas) and file buffers, and 2 is an output from program 1. 3 is a program that controls allocation of main memory to virtual memory and file buffers based on load information;
A program that allocates and deallocates main memory based on decisions made by
4はページに分割された主記憶装置である。4 is a main memory divided into pages.
第1図において、仮想記憶およびファイルバッファに対
する負荷を測定するプログラム1は、ページングやファ
イル入出力要求発生時に呼び出され、ページフォルト回
数やファイルバッファのヒツト率等の負荷情報を採取す
る。In FIG. 1, a program 1 for measuring loads on virtual memory and file buffers is called when paging or file input/output requests occur, and collects load information such as the number of page faults and file buffer hit rates.
主記憶の割当配分を制御するプログラム2は、一定時間
ごとやページング発生時等のタイミングで呼び出され、
プログラム1により求められた負荷情報を基に、仮想記
憶およびファイルバッファに対する主記憶の割当の配分
を調整する。第2図に示す調整のための最も単純なアル
ゴリズム例によれば、ページング回数が多いなど仮想記
憶に対する負荷がファイルバッファに対する負荷よりも
重いと思われる場合には、仮想記憶に対する主記憶の割
当量を増加させる。逆にファイルバッファのヒツト率が
低くページングはあまり発生しないような場合には、フ
ァイルバッファに対する主記憶の割当量を増加させ、適
当と思われる場合には割当配分はそのままにしておく。The program 2 that controls the allocation of main memory is called at regular intervals or when paging occurs.
Based on the load information obtained by the program 1, the allocation of main memory to virtual memory and file buffers is adjusted. According to the simplest algorithm example for adjustment shown in Figure 2, if the load on virtual memory is thought to be heavier than the load on file buffers, such as when the number of paging is large, the amount of main memory allocated to virtual memory increase. Conversely, if the hit rate of the file buffer is low and paging does not occur much, the amount of main memory allocated to the file buffer is increased, and if deemed appropriate, the allocation is left as is.
以下割当配分の他のアルゴリズム例を挙げる。Examples of other algorithms for allocation are listed below.
ファイルバッファに割り当てる主記憶容量をB(MAX
)と次式によって制御する。The main memory capacity allocated to the file buffer is B (MAX
) and the following equation.
B (MAX)=B (MAX)+F (p)ここにF
(P)は一定時間におけるページ170回数Pの関数
であり、単純な例は次のようなものである。B (MAX)=B (MAX)+F (p) F here
(P) is a function of the number P of 170 pages in a certain period of time, and a simple example is as follows.
F (P) =−Δ:ページ■/○回数多い+△:ペー
ジI/○回数少ない
主記憶割当制御を行うプログラム3は、他のプログラム
からのメモリ割当要求や、ファイルアクセス、ページン
グ等の延長で呼び出され、プログラム2で決定された主
記憶4の割当配分に合致するように、主記憶の割当変更
や、ページアウト、ファイルバッファの解放等を行う。F (P) = - Δ: Page ■ / ○ number of times + △: Page I / ○ number of times Program 3 that performs main memory allocation control is an extension of memory allocation requests from other programs, file access, paging, etc. It is called and performs main memory allocation changes, page outs, file buffer release, etc. so as to match the main memory 4 allocation determined by the program 2.
本発明によれば、主記憶の割当配分を、システムの負荷
状態に応じて、動的に変更できるため、主記憶の使用効
率を高めることができ、常に安定して良い性能を得るこ
とができる。According to the present invention, the allocation distribution of main memory can be dynamically changed according to the load status of the system, so it is possible to improve the usage efficiency of main memory and always obtain stable and good performance. .
第1図は本発明の実施例を示す図、第2図は実施例にお
ける処理のフローチャート、第3図は従来の主記憶管理
方式を示す図である。
1・・・仮想記憶およびファイルバッファに対する負荷
を測定するプログラム、
2・・・主記憶の割当配分を決定するプログラム、3・
・・主記憶の割当を制御するプログラム、4・・・主記
憶。
第 1 ロFIG. 1 is a diagram showing an embodiment of the present invention, FIG. 2 is a flowchart of processing in the embodiment, and FIG. 3 is a diagram showing a conventional main memory management system. 1... A program that measures the load on virtual memory and file buffers, 2... A program that determines main memory allocation, 3.
...Program that controls allocation of main memory, 4...Main memory. 1st B
Claims (1)
装置上にあるファイルに対するアクセス性能向上のため
のバッファ領域として使用する機能を持った計算機シス
テムにおいて、プログラムを格納する主記憶容量と前記
ファイルバッファに用いる主記憶容量との割り当て配分
を、計算機システムの負荷に応じて動的に制御すること
を特徴とする計算機システム。1. In a computer system equipped with a virtual memory control function and a function of using part of the main memory as a buffer area to improve access performance for files on an external storage device, the main memory capacity for storing programs and A computer system, characterized in that the allocation distribution of the main memory capacity used for the file buffer is dynamically controlled according to the load of the computer system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2228122A JPH04111029A (en) | 1990-08-31 | 1990-08-31 | Main storage allocation control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2228122A JPH04111029A (en) | 1990-08-31 | 1990-08-31 | Main storage allocation control system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04111029A true JPH04111029A (en) | 1992-04-13 |
Family
ID=16871559
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2228122A Pending JPH04111029A (en) | 1990-08-31 | 1990-08-31 | Main storage allocation control system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04111029A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7028158B1 (en) | 2001-11-02 | 2006-04-11 | Beatty And Company Computing, Inc. | Storage virtualization engine |
-
1990
- 1990-08-31 JP JP2228122A patent/JPH04111029A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7028158B1 (en) | 2001-11-02 | 2006-04-11 | Beatty And Company Computing, Inc. | Storage virtualization engine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11048442B2 (en) | Scalable in-memory object storage system using hybrid memory devices | |
US5537635A (en) | Method and system for assignment of reclaim vectors in a partitioned cache with a virtual minimum partition size | |
US6681305B1 (en) | Method for operating system support for memory compression | |
US5802341A (en) | Method for the dynamic allocation of page sizes in virtual memory | |
US5983293A (en) | File system for dividing buffer areas into different block sizes for system and user data | |
US8190795B2 (en) | Memory buffer allocation device and computer readable medium having stored thereon memory buffer allocation program | |
US6851030B2 (en) | System and method for dynamically allocating associative resources | |
US5675797A (en) | Goal-oriented resource allocation manager and performance index technique for servers | |
US4947319A (en) | Arbitral dynamic cache using processor storage | |
US20030105927A1 (en) | Method for use of stack | |
US9274852B2 (en) | Apparatus and method for managing virtual processing unit | |
Reuven et al. | Medium-term scheduler as a solution for the thrashing effect | |
US7904688B1 (en) | Memory management unit for field programmable gate array boards | |
CN109840247B (en) | File system and data layout method | |
JP7221585B2 (en) | Information processing device, information processing system, information processing device control method, and information processing device control program | |
KR20000035022A (en) | Schedulable dynamic memory pinning | |
JPH04111029A (en) | Main storage allocation control system | |
CN108920254B (en) | Memory allocation method based on fine granularity | |
CN111694635A (en) | Service quality control method and device | |
JP2004246552A (en) | Computer system, and memory allocation amount guaranteed value dynamic changing method and program | |
JPH0793198A (en) | Computer system | |
JPS61216016A (en) | Area control system for data base | |
KR101932523B1 (en) | Method for dynamically increasing and decreasing the slots of virtual gpu memory allocated to a virtual machine and computing device implementing the same | |
CN111444025B (en) | Resource allocation method, system and medium for improving energy efficiency of computing subsystem | |
JPH06266619A (en) | Page saving/restoring device |