JP2000099354A - Device and method for replacing process for multiprocessor system - Google Patents

Device and method for replacing process for multiprocessor system

Info

Publication number
JP2000099354A
JP2000099354A JP10264428A JP26442898A JP2000099354A JP 2000099354 A JP2000099354 A JP 2000099354A JP 10264428 A JP10264428 A JP 10264428A JP 26442898 A JP26442898 A JP 26442898A JP 2000099354 A JP2000099354 A JP 2000099354A
Authority
JP
Japan
Prior art keywords
processor
information
registered
newly executed
multiprocessor system
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
JP10264428A
Other languages
Japanese (ja)
Inventor
Shunichi Takase
俊一 高瀬
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.)
NEC Ibaraki Ltd
Original Assignee
NEC Ibaraki 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 NEC Ibaraki Ltd filed Critical NEC Ibaraki Ltd
Priority to JP10264428A priority Critical patent/JP2000099354A/en
Publication of JP2000099354A publication Critical patent/JP2000099354A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain a process replacing device capable of allocating a process that should be newly executed to an optimum processor which does not have so many cache errors without lowering the accuracy of replacement processing and the speed of processing time and its replacing method in a multiprocessor system. SOLUTION: As for this process replacement event, a new process number is registered with a new process number register 10, as for the information of a process number 21 in which past process information is stored, a coincidence condition is defined as the number 105 of registered coincidence detection by a registration detection circuit 11, and a dispatching control circuit 12 sends an instruction that a process is allocated to an optimum processor according to the information of the number 105 of registered coincidence detection and the number 103 of registered coincidence detection from another processor B2.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はマルチプロセッサシ
ステムのプロセスの入れ替え装置および入れ替え方法に
関する発明である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus and a method for exchanging processes in a multiprocessor system.

【0002】従来、マルチプロセッサシステムにおい
て、ある事象におけるプロセスの入れ替え処理は、プロ
セスの優先度を示す情報、もしくは、各プロセッサのプ
ロセスの処理容量の空き具合によって各プロセッサに割
り当てられていた。その結果、新たに実行すべきプロセ
スが各プロセッサに割り当てられる場合、過去に実行さ
れたプロセスのキャッシュ情報が残っているプロセッサ
に正確に割り当てられなかった。そのため、そのプロセ
スを実行する時のキャッシュのミスヒットが多く発生し
ていた。かかる従来のプロセスの入れ替え制御における
問題点を解消することを目的として、特開平8−305
62号には、マルチプロセッサシステムにおいて、キャ
ッシュのミスヒットの発生が少なくなるようにプロセス
の割当てを行う制御システムが開示されている。このプ
ロセスの入れ替え制御技術では、ある事象におけるプロ
セスが、各プロセッサのキャッシュ中に確保するブロッ
クの数を、各プロセッサが共有メモリに記憶する。そし
て、その事象におけるプロセスに対し、記憶されたブロ
ック数の情報が最大となるプロセッサに、ある事象にお
けるプロセスを割り当てることによって、キャッシュミ
スが低減される。
2. Description of the Related Art Conventionally, in a multiprocessor system, a process of replacing a process in a certain event has been assigned to each processor based on information indicating the priority of the process or the available processing capacity of the process of each processor. As a result, when a new process to be executed is assigned to each processor, the cache information of the process executed in the past was not correctly assigned to the remaining processor. As a result, many cache misses occurred when the process was executed. For the purpose of solving such a problem in the conventional process replacement control, Japanese Patent Application Laid-Open No. Hei 8-305 is disclosed.
No. 62 discloses a control system for allocating processes so as to reduce the occurrence of cache misses in a multiprocessor system. In this process replacement control technique, each processor stores the number of blocks that the process in a certain event secures in the cache of each processor in the shared memory. Then, the cache miss is reduced by allocating the process in a certain event to the processor in which the stored information of the number of blocks is the largest for the process in the event.

【0003】[0003]

【発明が解決しようとする課題】しかし、この特開平8
−30562号に開示されているマルチプロセッサシス
テムには以下の問題があった。プロセッサがプロセスを
実行処理する時、プロセッサ内のキャッシュメモリ上に
一時記憶されるが、すぐに I/O事象などへつながれ
てしまうと、キャッシュに残るデータ登録数が少なくな
る。そのため、ブロックの情報を過去のプロセス情報と
して登録した時、プロセスの内容の一部が欠損して、登
録されたブロック情報の中に残っていないことが考えら
れ、キャッシュのミスヒットが発生してしまうことがあ
る。また、新たなプロセスを実行する際、キャッシュに
確保するプロセスのブロック数の情報を親密度管理情報
として共有メモリに登録し、その情報を元にブロック数
が最大となるプロセッサに新たなプロセスが割り当てら
れる。このように、共有メモリ内にプロセスのブロック
情報を記憶して、プロセスの割り当て処理を行うには、
共有メモリにアクセスをしなくてはならず、アクセスを
することにより処理時間が増加してしまう。また、共有
メモリ内にプロセスのブロック情報を確保することで、
アプリケーションに必要なメモリ容量を削減しなくては
ならず、キャッシュミスを少なくすることによるメリッ
トがなくなってしまう。
However, Japanese Patent Application Laid-open No.
The multiprocessor system disclosed in Japanese Patent No. 30562 has the following problems. When a processor executes a process, the process is temporarily stored in a cache memory in the processor, but if the process is immediately connected to an I / O event or the like, the number of registered data remaining in the cache decreases. Therefore, when registering block information as past process information, it is conceivable that part of the process content is missing and does not remain in the registered block information, and a cache miss occurs. Sometimes. Also, when executing a new process, information on the number of blocks of the process to be secured in the cache is registered in the shared memory as intimacy management information, and based on that information, the new process is assigned to the processor with the largest number of blocks. Can be As described above, in order to store the process block information in the shared memory and perform the process allocation process,
It is necessary to access the shared memory, and the access increases the processing time. Also, by securing process block information in shared memory,
The memory capacity required for the application must be reduced, and the advantage of reducing cache misses is lost.

【0004】本発明は、上記問題に鑑みてなされたもの
であって、最適なプロセッサに割り当てることによっ
て、キャッシュのミスヒット率を低減させることができ
るマルチプロセッサシステムのプロセスの入れ替え装置
および入れ替え方法を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has an object to provide an apparatus and a method for exchanging processes in a multiprocessor system, which can reduce a cache miss rate by allocating to an optimal processor. The purpose is to provide.

【0005】[0005]

【課題を解決するための手段】以上の課題を解決する、
本出願第1の発明のマルチプロセッサシステムのプロセ
スの入れ替え装置は、複数のプロセッサで構成されるマ
ルチプロセッサシステムにおいて、プロセッサが過去に
動作した時のプロセスの情報を格納する登録手段と、前
記登録手段から得られたプロセス情報と新たに実行すべ
きプロセスの情報を比較する登録数検出手段と、前記登
録数検出手段により得られた登録数を比較して、新たに
実行すべきプロセスを登録数が一番多いプロセッサに割
り当てるディスパッチ手段とを有することを特徴とす
る。プロセッサが過去に動作したプロセスのプロセス情
報を格納した登録手段と、新たに実行すべきプロセス情
報との一致条件の数を検出する登録数検出手段により、
複数のプロセッサの中から一番多くの一致条件を検出し
たプロセッサに、新たに実行すべきプロセスを割り当て
ることで、キャッシュのミスヒットの率を低減できる。
[Means for Solving the Problems] To solve the above problems,
According to a first aspect of the present invention, there is provided a process replacement device for a multiprocessor system, in a multiprocessor system including a plurality of processors, a registration unit for storing information on a process when the processor has operated in the past, and the registration unit. A registration number detecting means for comparing the process information obtained from the above with information of a process to be newly executed, and comparing the registration number obtained by the registration number detecting means with a registered number of processes to be newly executed. And dispatch means for allocating to the most processors. A registration unit that stores process information of a process that the processor has operated in the past, and a registration number detection unit that detects the number of matching conditions with process information to be newly executed,
By allocating a process to be newly executed to the processor that has detected the most matching conditions from among the plurality of processors, the cache miss rate can be reduced.

【0006】また、本出願第2の発明は、本出願第1の
発明の前記登録手段の論理アドレスから物理アドレスへ
の変換情報を複数エントリ格納した情報を、アドレス変
換バッファに登録することを特徴とする。プロセッサが
過去に動作したプロセスの論理アドレスと物理アドレス
からなる変換情報をアドレス変換バッファに登録するこ
とで、プロセスがすぐにI/O事象などへつながれてし
まう時におこる、プロセス情報の登録抜けがなくなり、
プロセスを実行した過去の情報を格納する事ができ、キ
ャッシュのミスヒット率を低減できる。また、過去の情
報を比較するため、共有メモリへのアクセスを行う必要
がないため、プロセスの処理速度を速くすることができ
る。
Further, the second invention of the present application is characterized in that information in which a plurality of entries of translation information from a logical address to a physical address of the registration means of the first invention of the present application are stored in an address translation buffer is registered. And By registering the translation information including the logical address and the physical address of the process that the processor has operated in the past in the address translation buffer, the omission of the process information that occurs when the process is immediately connected to an I / O event or the like is eliminated. ,
It is possible to store information on the past execution of the process and reduce the cache miss rate. In addition, since it is not necessary to access the shared memory to compare past information, the processing speed of the process can be increased.

【0007】また、本出願第3の発明は、本出願第1の
発明または本出願第2の発明の前記登録数検出手段の新
たに実行すべきプロセスの情報と、前記登録手段によっ
て格納されたアドレス変換バッファ内のプロセス情報と
を比較し、新たに実行すべきプロセスの情報と一致した
数を登録一致検出数として出力することを特徴とする。
新たに実行すべきプロセスと、格納されたプロセスの情
報が一致した数を登録一致検出数として出力すること
で、単純な構成による数量的な比較手段によって、新た
に実行すべきプロセスを最適なプロセッサに割り当てる
ことができる。
The third invention of the present application provides information on a process to be newly executed by the registration number detecting means of the first invention of the present application or the second invention of the present application, and the information stored by the registration means. The process information is compared with the process information in the address translation buffer, and the number of coincidences with the information of the process to be newly executed is output as the registration coincidence detection number.
By outputting the number of matches between the information of the newly executed process and the stored process information as the number of registered match detections, the process to be newly executed can be optimally processed by a quantitative comparison means having a simple configuration. Can be assigned to

【0008】また、本出願第4の発明は、本出願第1の
発明または本出願第2の発明または本出願第3の発明の
前記ディスパッチ手段は、前記登録数検出手段からの登
録一致検出数の一番多いプロセッサに割り当てることを
特徴とする。各プロセッサから登録数検出手段によって
出力された登録一致検出数は、ディスパッチ制御回路に
各プロセッサから出力され、登録一致検出数が一番多い
プロセッサに指示を送り、最適なプロセッサに割り当て
られ、キャッシュのヒット率の一番高いプロセスを実行
できる。
In the fourth invention of the present application, the dispatching means of the first invention of the present application, the second invention of the present application, or the third invention of the present application is characterized in that: Is assigned to the processor with the highest number. The registration coincidence detection number output from each processor by the registration number detection means is output from each processor to the dispatch control circuit, sends an instruction to the processor with the highest registration coincidence detection number, is assigned to the optimal processor, and is assigned to the cache. The process with the highest hit rate can be executed.

【0009】また、本出願第5の発明は、出願第1の発
明または本出願第2の発明または本出願第3の発明また
は本出願第4の発明の前記ディスパッチ手段の登録一致
検出数が等しい場合、プロセスの優先度の比較とプロセ
ッサの処理容量の空き具合に応じてプロセッサに対して
割り当てることを特徴とする。プロセスの情報が一致し
た登録一致検出数が、マルチプロセッサシステム内のプ
ロセッサのいずれかのプロセッサと等しいとき、従来と
同様な方法で、プロセスの優先およびプロセスの処理容
量の空き具合によって、プロセッサへの割り当てを行
い、新たな回路を追加することなく処理することができ
る。
In the fifth invention of the present application, the registered means of the dispatch means of the first invention of the application, the second invention of the present application, the third invention of the present application, or the fourth invention of the present application have the same number of registered coincidences. In this case, the process is assigned to a processor according to the comparison of the priority of the process and the availability of the processing capacity of the processor. When the number of registered matches that match the process information is equal to any of the processors in the multiprocessor system, the priority of the process and the availability of the processing capacity of the process are given to the processor in the same manner as before. Allocation can be performed and processing can be performed without adding a new circuit.

【0010】また、本出願第6の発明の複数のプロセッ
サで構成されるマルチプロセッサシステムのプロセスの
入れ替え方法は、各プロセッサが過去に動作した時のプ
ロセスの情報と、新たに実行すべきプロセスの情報とを
比較し、その情報が一致した登録一致検出数の一番多い
プロセッサに、新たに実行すべきプロセスを割り当てる
ことを特徴とする。また、本出願第7の発明の前記登録
一致検出数の一致した数が他プロセッサと等しい時、プ
ロセスの優先度の比較とプロセッサの処理容量の空き具
合により、新たに実行すべきプロセスをプロセッサに割
り当てることを特徴とする。このように本出願第6の発
明および本出願第7の発明は、前記本出願第1の発明〜
本出願第5の発明と同様な装置と同じ方法によって、キ
ャッシュミスの低減ができる。
The method of replacing a process in a multiprocessor system constituted by a plurality of processors according to the sixth invention of the present application provides information on a process when each processor has operated in the past and information on a process to be newly executed. The process is compared with the information, and a process to be newly executed is allocated to a processor having the largest number of registered matches detected by the information. Further, when the number of registered matches detected in the seventh invention of the present application is equal to that of another processor, a process to be newly executed is given to the processor by comparing the priorities of the processes and the available processing capacity of the processor. It is characterized by assigning. As described above, the sixth invention and the seventh invention of the present application correspond to the first invention to the first invention of the present application.
A cache miss can be reduced by the same method as the device similar to the fifth invention of the present application.

【0011】また、本発明の第8の発明の複数のプロセ
ッサで構成されるマルチプロセッサシステムの、プロセ
スの入れ替えを制御するプログラムを記録したコンピュ
ータ読み取り可能な記録媒体において、新しく実行され
るプロセスと、過去に動作した時のプロセス情報とを比
較し、新たに実行すべきプロセスを登録一致検出数の一
番多いプロセッサに割り当てることを特徴とするマルチ
プロセッサシステムのプロセスの入れ替え手順のプログ
ラムを記録したコンピュータ読み取り可能な記憶媒体で
あることを特徴とする。このように、本出願第8の発明
は、マルチプロセッサシステムのプロセスの入れ替え手
順のプログラムは、前記本出願第6の発明と同様にプロ
セスの入れ替えプログラムによってプロセスを最適なプ
ロセッサに割り当てることができる。
[0011] In a multiprocessor system comprising a plurality of processors according to an eighth aspect of the present invention, a newly executed process is provided on a computer-readable recording medium recording a program for controlling process replacement. A computer which records a program of a process replacement procedure of a multiprocessor system, wherein a program to be newly executed is compared with process information at the time of operation in the past, and a process to be newly executed is assigned to a processor having the largest number of detected registration matches. It is a readable storage medium. As described above, according to the eighth invention of the present application, the program of the procedure for replacing the process of the multiprocessor system can allocate the process to the optimum processor by the process replacement program in the same manner as in the sixth invention of the present application.

【0012】[0012]

【発明の実施の形態】以下に、本発明に係わるマルチプ
ロセッサシステムのプロセスの入れ替え装置および入れ
替え方法の実施の形態を図1〜図3に基づいて説明す
る。図1は本発明のマルチプロセッサシステムのブロッ
ク図である。本実施の形態では、プロセッサA1とプロ
セッサB2と主記憶装置3が共有のシステムバス100
に繋がれているブロック図を示す。これは、ごく一般的
なマルチプロセッサシステムの構成である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of an apparatus and method for exchanging processes of a multiprocessor system according to the present invention will be described below with reference to FIGS. FIG. 1 is a block diagram of a multiprocessor system according to the present invention. In this embodiment, the processor A1, the processor B2, and the main storage device 3 share the system bus 100.
Shows a block diagram connected to. This is a configuration of a general multiprocessor system.

【0013】図2は、本発明の一実施の形態であるプロ
セスの入れ替え制御回路である。図2に示すように、プ
ロセスの入れ替え制御回路は、新たに実行すべくプロセ
スを過去のプロセスと一致条件を比較するアドレス変換
バッファ(TLB)20と、その情報を元にプロセッサ
に割り当てるディスパッチング制御回路12から構成さ
れる。各プロセッサに対しプロセス切り替えの事象が発
生した場合、新たに実行すべきプロセスの新プロセス番
号が、各々のプロセッサの新プロセス番号レジスタ10
に格納される。アドレス変換バッファ(TLB)20
は、過去のプロセス情報がどの情報かを示すプロセス番
号21と論理アドレス22に対応した物理アドレス23
から成り、新プロセス番号10とプロセス番号21は、
登録数検出回路11にプロセス情報を出力する。そし
て、登録数検出回路11によって得られた登録一致検出
数をディスパッチング制御回路12に出力する。また、
他プロセッサB2からも同様に登録一致検出数がディス
パッチング制御回路12に出力され、プロセッサA1お
よびプロセッサB2からの登録一致検出数の多い方に指
示を送る構成となる。
FIG. 2 shows a process switching control circuit according to an embodiment of the present invention. As shown in FIG. 2, the process replacement control circuit includes an address translation buffer (TLB) 20 for comparing a process with a past process and a matching condition to newly execute the process, and dispatching control for allocating the information to the processor based on the information. It is composed of a circuit 12. When a process switching event occurs for each processor, the new process number of the process to be newly executed is stored in the new process number register 10 of each processor.
Is stored in Address translation buffer (TLB) 20
Is a physical address 23 corresponding to the process number 21 and the logical address 22 indicating the past process information.
And the new process number 10 and the process number 21 are
The process information is output to the registration number detection circuit 11. Then, the registration coincidence detection number obtained by the registration number detection circuit 11 is output to the dispatching control circuit 12. Also,
Similarly, the number of registered coincidence detections is output from the other processor B2 to the dispatching control circuit 12, and an instruction is sent to the processor A1 and the processor B2 which have the greater number of registered coincidence detections.

【0014】次に、図2のプロセッサ内部構成図および
図3のフローチャートから、本発明のプロセスの入れ替
えの動作について説明する。プロセッサA1およびプロ
セッサB2に新たに実行されるプロセスのプロセス番号
(論理アドレスがどのプロセス情報かを示す番号)がレ
ジスタ10に格納される。(図3、50による) TLB20は、過去に実行されたプロセスの論理アドレ
スを物理アドレスに変換するバッファであり、論理アド
レスのプロセス情報を示すプロセス番号と論理アドレス
情報22に対応した物理アドレス情報23の情報を複数
エントリ格納している。新たに実行されるプロセス番号
と、TLB20に登録されているプロセス番号21を登
録数検出回路11によって比較し、プロセス番号の一致
したTLB20のエントリ数をカウントし登録一致検出
数105を出力する。この時、プロセッサB2も同様
に、新たに実行すべきプロセスのプロセス番号と、TL
Bに登録されているプロセス番号とを登録数検出回路に
よって比較されたプロセスの一致した数のエントリ数を
カウントし、登録一致検出数103を出力する。(図
3、51による)
Next, referring to the internal configuration diagram of the processor shown in FIG. 2 and the flowchart shown in FIG. 3, the operation of replacing the process of the present invention will be described. The process number of a process newly executed by the processor A1 and the processor B2 (a number indicating which process information is a logical address) is stored in the register 10. The TLB 20 is a buffer for converting a logical address of a process executed in the past into a physical address, and a process number indicating process information of the logical address and physical address information 23 corresponding to the logical address information 22. Is stored in multiple entries. The newly executed process number is compared with the process number 21 registered in the TLB 20 by the registration number detection circuit 11, the number of entries in the TLB 20 having the same process number is counted, and the registration coincidence detection number 105 is output. At this time, the processor B2 similarly sets the process number of the process to be newly executed and TL
The number of entries matching the number of processes compared with the process number registered in B by the registered number detection circuit is counted, and the number 103 of registered coincidence detected is output. (See Figures 3 and 51)

【0015】この結果、プロセッサA1とプロセッサB
2から新たに実行されるプロセスに対して、プロセッサ
A1の登録一致検出数105とプロセッサB2の登録一
致検出数103をディスパッチング制御回路12によっ
て比較する。(図3、52による) この時の登録一致検出数が等しい場合は、図3、53の
ように、従来のプロセス優先もしくはプロセス処理の空
き容量を比較して、新たに実行すべきプロセスの割り当
てをプロセッサA1またはプロセッサB2に割り当て
る。また、自プロセッサ(プロセッサA1)の方が登録
一致検出数が多い場合は、図3の54のごとくプロセッ
サA1に新たに実行すべきプロセスを割り当てるため、
自プロセッサへディスパッチ指示102送る。また、逆
に他プロセッサ(プロセッサB2)の方が登録一致検出
数が多い場合は、プロセッサB2に新たに実行すべきプ
ロセスを割り当てるため、他プロセッサへディスパッチ
指示104を送る。
As a result, the processor A1 and the processor B
2, the dispatching control circuit 12 compares the registered match detection number 105 of the processor A1 with the registered match detection number 103 of the processor B2 for the process newly executed. If the number of registered coincidence detections at this time is equal, as shown in FIGS. 3 and 53, the prior process priority or the free space of the process processing is compared, and the allocation of the process to be newly executed is performed. Is assigned to the processor A1 or the processor B2. When the own processor (processor A1) has a larger number of detected registration matches, a process to be newly executed is assigned to the processor A1 as indicated by 54 in FIG.
Sends a dispatch instruction 102 to its own processor. On the other hand, if the other processor (processor B2) has a larger number of detected registration matches, the dispatch instruction 104 is sent to the other processor to allocate a new process to be executed to the processor B2.

【0016】このように、本発明の実施例では、共有メ
モリに依存することなく新プロセス番号レジスタ10
と、アドレス変換バッファ(TLB20)と、登録数検
出回路11と、ディスパッチング制御回路12との回路
で、新たに実行すべきプロセスを、キャッシュのヒット
率の高いプロセッサに割り当てる制御装置および方法と
して構成することができる。
As described above, in the embodiment of the present invention, the new process number register 10 does not depend on the shared memory.
, An address translation buffer (TLB20), a registration number detection circuit 11, and a dispatching control circuit 12, configured as a control device and method for allocating a process to be newly executed to a processor having a high cache hit rate. can do.

【0017】[0017]

【発明の効果】以上のように、本発明のマルチプロセッ
サシステムのプロセス入れ替え装置および入れ替え方法
では、プロセスの入れ替え処理において、複数のプロセ
ッサの中から、キャッシュのヒット率の高い最適なプロ
セッサに割り当てることができる。それにより、プロセ
スの実行処理速度が速くなり、現状のプロセッサへのプ
ロセス処理の増加と、実行処理速度を必要とするシステ
ムにキャッシュミスの少ないプロセスの入れ替えを行う
ことができる。
As described above, in the process switching apparatus and the switching method of the multiprocessor system according to the present invention, in the process of switching the processes, the process is allocated to the optimum processor having a high cache hit rate from a plurality of processors. Can be. As a result, the execution processing speed of the process is increased, so that it is possible to increase the number of process processes to the current processor and to replace a process with a small cache miss in a system requiring the execution processing speed.

【0018】[0018]

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

【図1】本発明の一実施の形態であるマルチプロセッサ
システムである。
FIG. 1 shows a multiprocessor system according to an embodiment of the present invention.

【図2】本発明の一実施の形態であるプロセッサの内部
構成図である。
FIG. 2 is an internal configuration diagram of a processor according to an embodiment of the present invention.

【図3】本発明の一実施の形態であるプロセッサの動作
を示すフローチャートである。
FIG. 3 is a flowchart illustrating an operation of the processor according to the embodiment of the present invention;

【符号の説明】[Explanation of symbols]

1・・・・・・・・プロセッサA 2・・・・・・・・プロセッサB 3・・・・・・・・主記憶装置 10・・・・・・・・新プロセス番号レジスタ 11・・・・・・・・登録数検出回路 12・・・・・・・・ディスパッチング制御回路 20・・・・・・・・TLB(アドレス変換バッファ) 21・・・・・・・・プロセス番号 22・・・・・・・・論理アドレス 23・・・・・・・・物理アドレス 100・・・・・・・・システムバス 101・・・・・・・・新プロセス番号 102・・・・・・・・自プロセッサディスパッチ指示 103・・・・・・・・自プロセッサ登録一致検出数 104・・・・・・・・他プロセッサディスパッチ指示 105・・・・・・・・他プロセッサ登録一致検出数 1... Processor A 2... Processor B 3... Main storage device 10... New process number register 11. ...... Registered number detection circuit 12 ...... Dispatching control circuit 20 ...... TLB (address conversion buffer) 21 ...... Process number 22 ······· Logical address 23 ····· Physical address 100 ····· System bus 101 ······ New process number 102 ··· ... Own processor dispatch instruction 103... Own processor registration match detection number 104... Other processor dispatch instruction 105... Other processor registration match detection number

─────────────────────────────────────────────────────
────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成11年8月20日(1999.8.2
0)
[Submission date] August 20, 1999 (1999.8.2
0)

【手続補正1】[Procedure amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】特許請求の範囲[Correction target item name] Claims

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【特許請求の範囲】[Claims]

【手続補正2】[Procedure amendment 2]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0005[Correction target item name] 0005

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【0005】[0005]

【課題を解決するための手段】以上の課題を解決する、
本出願第1の発明のマルチプロセッサシステムのプロセ
スの入れ替え装置は、複数のプロセッサで構成されるマ
ルチプロセッサシステムにおいて、各々のプロセッサが
プロセスを実行したときの、論理アドレスから物理アド
レスへ変換されるアドレス変換情報をプロセス情報とし
て格納する登録手段と、前記登録手段から得られた前記
プロセス情報と新たに実行すべきプロセスの情報とを比
較する登録数検出手段と、前記登録数検出手段により得
られた登録数を比較して、新たに実行すべきプロセスを
登録数が一番多いプロセッサに割り当てるディスパッチ
手段とを有することを特徴とする。プロセッサが過去に
動作したプロセスのプロセス情報を格納した登録手段
と、新たに実行すべきプロセス情報との一致条件の数を
検出する登録数検出手段により、複数のプロセッサの中
から一番多くの一致条件を検出したプロセッサに、新た
に実行すべきプロセスを割り当てることで、キャッシュ
のミスヒットの率を低減できる。
[Means for Solving the Problems] To solve the above problems,
Replacement apparatus processes in a multiprocessor system according to the first aspect of the invention, in a multiprocessor system including a plurality of processors, each processor
When a process is executed, the logical address
Address conversion information converted to address
A registration unit that compares the process information obtained from the registration unit with information of a process to be newly executed, and compares the registration number obtained by the registration number detection unit. And dispatching means for allocating a process to be newly executed to a processor having the largest number of registrations. The registration unit that stores the process information of the processes that the processor has run in the past and the registration number detection unit that detects the number of matching conditions with the process information to be newly executed. By allocating a new process to be executed to the processor that has detected the condition, the cache miss rate can be reduced.

【手続補正3】[Procedure amendment 3]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0006[Correction target item name] 0006

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【0006】また、プロセッサが過去に動作したプロセ
スの論理アドレスと物理アドレスからなる変換情報をア
ドレス変換バッファに登録することで、プロセスがすぐ
にI/O事象などへつながれてしまう時におこる、プロ
セス情報の登録抜けがなくなり、プロセスを実行した過
去の情報を格納することができ、キャッシュのミスヒッ
ト率を低減できる。また、過去の情報を比較するため、
共有メモリへのアクセスを行う必要がないため、プロセ
スの処理速度を速くすることができる。
[0006] In addition, by registering translation information consisting of a logical address and a physical address of a process that the processor has operated in the past in the address translation buffer, the process information is generated when the process is immediately connected to an I / O event or the like. Can be stored, the past information of the process executed can be stored, and the cache miss rate can be reduced. Also, to compare past information,
Since there is no need to access the shared memory, the processing speed of the process can be increased.

【手続補正4】[Procedure amendment 4]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0007[Correction target item name] 0007

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【0007】また、本出願第2の発明は、本出願第1の
発明の前記登録数検出手段の新たに実行すべきプロセス
の情報示すプロセス番号と、前記登録手段によって格納
されたアドレス変換バッファ内のプロセスの情報示すプ
ロセス番号とを比較し、新たに実行すべきプロセスの情
報と一致した数を登録一致検出数として出力することを
特徴とする。新たに実行すべきプロセスと、格納された
プロセスの情報が一致した数を登録一致検出数として出
力することで、単純な構成による数量的な比較手段によ
って、新たに実行すべきプロセスを最適なプロセッサに
割り当てることができる。
Further, the second invention of the present application provides a process number indicating information of a process to be newly executed by the registration number detecting means according to the first invention of the present invention, and a process number stored in the address conversion buffer stored by the registration means. The process number is compared with the process number indicated by the process information, and the number matching the process information to be newly executed is output as the registration match detection number. By outputting the number of matches between the information of the newly executed process and the stored process information as the number of registered match detections, the process to be newly executed can be optimally processed by a quantitative comparison means having a simple configuration. Can be assigned to

【手続補正5】[Procedure amendment 5]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0008[Correction target item name] 0008

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【0008】また、本出願第3の発明は、本出願第1の
発明または本出願第2の発明の前記ディスパッチ手段
は、前記登録数検出手段からの登録一致検出数の一番多
いプロセッサに割り当てることを特徴とする。各プロセ
ッサから登録数検出手段によって出力された登録一致検
出数は、ディスパッチ制御回路に各プロセッサから出力
され、登録一致検出数が一番多いプロセッサに指示を送
り、最適なプロセッサに割り当てられ、キャッシュのヒ
ット率の一番高いプロセスを実行できる。
In the third invention of the present application, the dispatch means of the first invention of the present application or the second invention of the present application allocates to the processor having the largest number of detected registration matches from the registered number detecting means. It is characterized by the following. The registration coincidence detection number output from each processor by the registration number detection means is output from each processor to the dispatch control circuit, sends an instruction to the processor with the highest registration coincidence detection number, is assigned to the optimal processor, and is assigned to the cache. The process with the highest hit rate can be executed.

【手続補正6】[Procedure amendment 6]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0009[Correction target item name] 0009

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【0009】また、本出願第4の発明は、出願第1の発
明、本出願第2の発明または本出願第3の発明の前記デ
ィスパッチ手段の登録一致検出数が等しい場合、プロセ
スの優先度の比較とプロセッサの処理容量の空き具合に
応じてプロセッサに対して割り当てることを特徴とす
る。プロセスの情報が一致した登録一致検出数が、マル
チプロセッサシステム内のプロセッサのいずれかのプロ
セッサと等しいとき、従来と同様な方法で、プロセスの
優先およびプロセスの処理容量の空き具合によって、プ
ロセッサへの割り当てを行い、新たな回路を追加するこ
となく処理することができる。
[0009] The fourth invention of the present application is the first invention of the present application, the second invention of the present application, or the third invention of the present application, when the number of registered coincidences detected by the dispatch means is equal, the priority of the process is reduced. It is characterized in that it is assigned to a processor in accordance with the comparison and the degree of free processing capacity of the processor. When the number of registered matches that match the process information is equal to any of the processors in the multiprocessor system, the priority of the process and the availability of the processing capacity of the process are given to the processor in the same manner as before. Allocation can be performed and processing can be performed without adding a new circuit.

【手続補正7】[Procedure amendment 7]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0010[Correction target item name] 0010

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【0010】また、本出願第5の発明の複数のプロセッ
サで構成されるマルチプロセッサシステムのプロセスの
入れ替え方法において、プロセッサが新しく実行するプ
ロセス情報と、プロセッサが過去に実行したときの、論
理アドレスから物理アドレスへ変換されるアドレス変換
情報を格納したアドレス変換バッファ内のプロセス情報
とを比較し、新たに実行すべきプロセスを登録一致検出
数の一番多いプロセッサに割り当てることを特徴とす
る。また、本出願第6の発明の前記登録一致検出数の一
致した数が他プロセッサと等しい時、プロセスの優先度
の比較とプロセッサの処理容量の空き具合により、新た
に実行すべきプロセスをプロセッサに割り当てることを
特徴とする。このように本出願第5の発明および本出願
第6の発明は、前記本出願第1の発明から本出願第4の
発明と同様に、キャッシュミスを低減することができ
る。
[0010] In the method for exchanging processes of a multiprocessor system comprising a plurality of processors according to a fifth invention of the present application, a processor newly executed by a processor.
Process information and a discussion of what the processor has done in the past
Address translation that translates physical addresses to physical addresses
Process information in the address translation buffer that stores the information
And assigning a process to be newly executed to the processor having the largest number of detected registration matches. Further, when the number of coincidences of the registered coincidence detection number of the sixth invention of the present application is equal to that of another processor, a process to be newly executed is given to the processor by comparing the priorities of the processes and the available processing capacity of the processor. It is characterized by assigning. As described above, the fifth invention and the sixth invention of the present application can reduce a cache miss similarly to the first invention of the present application to the fourth invention of the present application.

【手続補正8】[Procedure amendment 8]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0011[Correction target item name] 0011

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【0011】また、本発明の第7の発明の複数のプロセ
ッサで構成されるマルチプロセッサシステムの、プロセ
スの入れ替えを制御するプログラムを記録したコンピュ
ータ読み取り可能な記録媒体において、プロセッサが新
しく実行するプロセス情報と、プロセッサが過去に実行
したときの、論理アドレスから物理アドレスへ変換され
るアドレス変換情報を格納したアドレス変換バッファ内
のプロセス情報とを、比較し、新たに実行すべきプロセ
スを登録一致検出数の一番多いプロセッサに割り当てる
ことを特徴とするマルチプロセッサシステムのプロセス
の入れ替え手順のプログラムを記録したコンピュータ読
み取り可能な記憶媒体であることを特徴とする。このよ
うに、本出願第8の発明は、マルチプロセッサシステム
のプロセスの入れ替え手順のプログラムは、前記本出願
第6の発明と同様にプロセスの入れ替えプログラムによ
ってプロセスを最適なプロセッサに割り当てることがで
きる。
According to a seventh aspect of the present invention, there is provided a multiprocessor system comprising a plurality of processors, wherein a computer-readable recording medium recording a program for controlling a process replacement is provided.
Process information to be executed correctly and processor executed in the past
Is converted from a logical address to a physical address.
Address translation buffer that stores address translation information
And process information, compared, newly registered to be executed process matching the number of detected and assigns the most common processor storing a program replacement step in the process of the multiprocessor system computer readable storage It is a medium. As described above, according to the eighth invention of the present application, the program of the procedure for replacing the process of the multiprocessor system can allocate the process to the optimum processor by the process replacement program in the same manner as in the sixth invention of the present application.

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】複数のプロセッサで構成されるマルチプロ
セッサシステムにおいて、プロセッサが過去に動作した
時のプロセスの情報を格納する登録手段と、前記登録手
段から得られたプロセス情報と新たに実行すべきプロセ
スの情報を比較する登録数検出手段と、前記登録数検出
手段により得られた登録数を比較して、新たに実行すべ
きプロセスを登録数が一番多いプロセッサに割り当てる
ディスパッチ手段とを有することを特徴とするマルチプ
ロセッサシステムのプロセスの入れ替え装置。
1. A multiprocessor system comprising a plurality of processors, a registration unit for storing information of a process when the processor has operated in the past, and process information obtained from the registration unit to be newly executed. Registered number detecting means for comparing process information, and dispatching means for comparing the registered numbers obtained by the registered number detecting means and assigning a process to be newly executed to a processor having the largest registered number. A process replacement device for a multiprocessor system, comprising:
【請求項2】前記登録手段は、論理アドレスから物理ア
ドレスへの変換情報を複数エントリ格納した情報を、ア
ドレス変換バッファに登録することを特徴とする請求項
1記載のマルチプロセッサシステムのプロセスの入れ替
え装置。
2. The multiprocessor system according to claim 1, wherein said registering means registers information storing a plurality of entries of translation information from a logical address to a physical address in an address translation buffer. apparatus.
【請求項3】前記登録数検出手段は、新たに実行すべき
プロセスの情報と、前記登録手段によって格納されたア
ドレス変換バッファ内のプロセス情報とを比較し、新た
に実行すべきプロセスの情報と一致した数を登録一致検
出数として出力することを特徴とする請求項1または請
求項2記載のマルチプロセッサシステムのプロセスの入
れ替え装置。
3. The registration number detecting means compares the information of the process to be newly executed with the process information in the address translation buffer stored by the registration means, and compares the information of the process to be newly executed with the information of the process to be newly executed. 3. The apparatus according to claim 1, wherein the number of coincidences is output as a registered coincidence detection number.
【請求項4】前記ディスパッチ手段は、新たに実行すべ
きプロセスを前記登録数検出手段からの登録一致検出数
の一番多いプロセッサに割り当てることを特徴とする請
求項1〜請求項3何れか一に記載のマルチプロセッサシ
ステムのプロセスの入れ替え装置。
4. The apparatus according to claim 1, wherein said dispatching means allocates a process to be newly executed to a processor having the largest number of detected registration matches from said registered number detecting means. A process replacement device for a multiprocessor system according to claim 1.
【請求項5】前記ディスパッチ手段は、登録一致検出数
が等しい場合、プロセスの優先度の比較とプロセッサの
処理容量の空き具合に応じてプロセッサに対して割り当
てることを特徴とする請求項1〜請求項4何れか一に記
載のマルチプロセッサシステムのプロセスの入れ替え装
置。
5. The method according to claim 1, wherein said dispatching means assigns to the processors in accordance with the comparison of the priority of the processes and the availability of the processing capacity of the processors when the registered coincidence detection numbers are equal. Item 5. An apparatus for exchanging processes of a multiprocessor system according to any one of Items 4.
【請求項6】複数のプロセッサで構成されるマルチプロ
セッサシステムのプロセスの入れ替え方法において、各
プロセッサが過去に動作した時のプロセスの情報と、新
たに実行すべきプロセスの情報とを比較し、その情報が
一致した登録一致検出数の一番多いプロセッサに、新た
に実行すべきプロセスを割り当てることを特徴とするマ
ルチプロセッサシステムのプロセスの入れ替え方法。
6. A method for replacing a process in a multiprocessor system comprising a plurality of processors, wherein information on a process when each processor has been operated in the past and information on a process to be newly executed are compared. A process replacement method for a multiprocessor system, wherein a process to be newly executed is assigned to a processor having the largest number of registered matches detected with matching information.
【請求項7】前記登録一致検出数の一致した数が他プロ
セッサと等しい時、プロセスの優先度の比較とプロセッ
サの処理容量の空き具合により、新たに実行すべきプロ
セスをプロセッサに割り当てることを特徴とする請求項
6記載のマルチプロセッサシステムのプロセスの入れ替
え方法。
7. A process to be newly executed is assigned to a processor based on a comparison of process priorities and an available processing capacity of the processor when the number of matches of the registered coincidence detection number is equal to that of another processor. 7. The method according to claim 6, wherein the processes are replaced.
【請求項8】複数のプロセッサで構成されるマルチプロ
セッサシステムの、プロセスの入れ替えを制御するプロ
グラムを記録したコンピュータ読み取り可能な記録媒体
において、新しく実行されるプロセスと、過去に動作し
た時のプロセス情報とを比較し、新たに実行すべきプロ
セスを登録一致検出数の一番多いプロセッサに割り当て
ることを特徴とするマルチプロセッサシステムのプロセ
スの入れ替え手順のプログラムを記録したコンピュータ
読み取り可能な記憶媒体。
8. A newly executed process and process information obtained in the past on a computer-readable recording medium storing a program for controlling a process replacement in a multiprocessor system including a plurality of processors. And allocating a process to be newly executed to a processor having the largest number of detected registration matches. A computer-readable storage medium storing a program for a process replacement procedure of a multiprocessor system.
JP10264428A 1998-09-18 1998-09-18 Device and method for replacing process for multiprocessor system Pending JP2000099354A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10264428A JP2000099354A (en) 1998-09-18 1998-09-18 Device and method for replacing process for multiprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10264428A JP2000099354A (en) 1998-09-18 1998-09-18 Device and method for replacing process for multiprocessor system

Publications (1)

Publication Number Publication Date
JP2000099354A true JP2000099354A (en) 2000-04-07

Family

ID=17403056

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10264428A Pending JP2000099354A (en) 1998-09-18 1998-09-18 Device and method for replacing process for multiprocessor system

Country Status (1)

Country Link
JP (1) JP2000099354A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1310138C (en) * 2004-03-24 2007-04-11 华为技术有限公司 Method for holding data consistency when register document inbedding operation under multi process

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1310138C (en) * 2004-03-24 2007-04-11 华为技术有限公司 Method for holding data consistency when register document inbedding operation under multi process

Similar Documents

Publication Publication Date Title
US5754818A (en) Architecture and method for sharing TLB entries through process IDS
JP2613001B2 (en) Virtual memory management system, translation index buffer management method, and translation index buffer purge overhead minimization method
US6742104B2 (en) Master/slave processing system with shared translation lookaside buffer
US5778434A (en) System and method for processing multiple requests and out of order returns
EP1247168B1 (en) Memory shared between processing threads
US4769770A (en) Address conversion for a multiprocessor system having scalar and vector processors
JPS6341100B2 (en)
US8868883B1 (en) Virtual memory management for real-time embedded devices
US7093100B2 (en) Translation look aside buffer (TLB) with increased translational capacity for multi-threaded computer processes
US6742103B2 (en) Processing system with shared translation lookaside buffer
US7260674B2 (en) Programmable parallel lookup memory
JP2004054949A (en) Multiple hardware partitions under one input/output hub
JP2017068334A (en) Data processing device
WO2020180565A1 (en) Device, processor, and method for splitting instructions and register renaming
US6766434B2 (en) Method for sharing a translation lookaside buffer between CPUs
JPH0512126A (en) Device and method for address conversion for virtual computer
US20100100702A1 (en) Arithmetic processing apparatus, TLB control method, and information processing apparatus
EP2159707A1 (en) Arithmetic processing unit, entry control program, and entry control method
JPH07248967A (en) Memory control system
JP2000099354A (en) Device and method for replacing process for multiprocessor system
US4984150A (en) Virtual memory control management system
EP3330848B1 (en) Detection of stack overflow in a multithreaded processor
US20050228965A1 (en) Method and device for calculating addresses of a segmented program memory
US7181587B1 (en) Mapping an arbitrary number of contiguous memory pages at an arbitrary alignment
JP3645671B2 (en) Processor device having instruction buffer