JP2010191645A - Address mapping method - Google Patents

Address mapping method Download PDF

Info

Publication number
JP2010191645A
JP2010191645A JP2009034700A JP2009034700A JP2010191645A JP 2010191645 A JP2010191645 A JP 2010191645A JP 2009034700 A JP2009034700 A JP 2009034700A JP 2009034700 A JP2009034700 A JP 2009034700A JP 2010191645 A JP2010191645 A JP 2010191645A
Authority
JP
Japan
Prior art keywords
tlb
task
address
entry
mapping method
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
JP2009034700A
Other languages
Japanese (ja)
Inventor
Yuta Machida
祐太 町田
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric Corp
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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP2009034700A priority Critical patent/JP2010191645A/en
Publication of JP2010191645A publication Critical patent/JP2010191645A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an address mapping method which suppresses occurrence frequency of mishit of a TLB (Translation Look aside Buffer) during program execution. <P>SOLUTION: A part of an entry of a TLB mechanism 2 is secured as an exclusive entry 21 of a task text part. A page size is designated to the exclusive entry 21 so that a whole text part of the task (A) is fitted in, and a logical address and a physical address on a main storage 5 are associated and set. Further, an OS manages the TLB mechanism 2 so that the exclusive entry 21 may be locked and may not be changed in order to prevent the exclusive entry 21 from being changed when the TLB mishit occurs. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、論理アドレスを物理アドレスに変換するTLBにおけるアドレスマッピング方法に関する。   The present invention relates to an address mapping method in TLB for converting a logical address into a physical address.

各種プラントにおけるフィールド制御や安全計装に関するシステムにおいて、制御演算を実行するCPUとして、MMU(Memory Management Unit)内蔵型CPUを使用しており、OS(Operating System)はMMUのTLB(Translation Look aside Buffer)機構を用いてメモリアクセスを実行している。   In systems related to field control and safety instrumentation in various plants, an MMU (Memory Management Unit) built-in CPU is used as a CPU for executing control calculations, and an OS (Operating System) is an MMU TLB (Translation Look aside Buffer). ) Memory access is executed using the mechanism.

TLBには論理アドレスと主記憶上の物理アドレスとが対応付けられており、OSから提供される論理アドレスにアプリケーションタスクがアクセスすると、CPUはTLB機構を用いて論理アドレスを物理アドレスに変換し、主記憶上の物理アドレス空間にアクセスしてデータの読み書きを行う。このときアドレス変換は、TLB機構に設定されたページサイズの範囲に従って行われる。例えばTLB機構にページサイズ:4KB、論理アドレス:0x1000と設定されていた場合、論理アドレス:0x10000〜0x1FFFの4KBの範囲を対応する物理アドレスに変換することができる。TLB機構は、変換サイズ、論理アドレス、物路アドレスを1組とし、CPUの仕様によって設定できる組数が決められている。   A logical address and a physical address on the main memory are associated with the TLB. When an application task accesses a logical address provided from the OS, the CPU converts the logical address to a physical address using the TLB mechanism, Reads and writes data by accessing the physical address space on the main memory. At this time, the address translation is performed according to the page size range set in the TLB mechanism. For example, when the page size is set to 4 KB and the logical address is set to 0x1000 in the TLB mechanism, the 4 KB range of the logical address: 0x10000 to 0x1FFF can be converted into the corresponding physical address. In the TLB mechanism, the conversion size, logical address, and physical path address are set as one set, and the number of sets that can be set is determined according to the CPU specifications.

TLB機構にすでに変換表が設定されている場合のアドレス変換の手順を以下に示す。
(ステップ#1)タスクが論理アドレス空間にアクセス
(ステップ#2)TLB機構上に対応する論理アドレスがあるかサーチ
(ステップ#3)TLB機構に対応する論理アドレスが設定されていることを検出(TLBヒット)
(ステップ#4)検出した論理アドレスを変換表でアドレス変換し、物理アドレス空間にアクセス
An address conversion procedure when a conversion table is already set in the TLB mechanism is shown below.
(Step # 1) Task accesses the logical address space (Step # 2) Search whether there is a corresponding logical address on the TLB mechanism (Step # 3) Detect that the logical address corresponding to the TLB mechanism is set ( TLB hit)
(Step # 4) The detected logical address is converted by the conversion table, and the physical address space is accessed.

次に、TLB機構に変換表が設定されていない場合のアドレス変換の手順を以下に示す。
(ステップ#1)タスクが論理アドレス空間にアクセス
(ステップ#2)TLB機構上に対応する論理アドレスがあるかサーチ
(ステップ#3)TLB機構に対応する論理アドレスが設定されていないことを検出(TLBミスヒット)
Next, an address conversion procedure when no conversion table is set in the TLB mechanism is shown below.
(Step # 1) Task accesses the logical address space (Step # 2) Search whether there is a logical address corresponding to the TLB mechanism (Step # 3) Detect that the logical address corresponding to the TLB mechanism is not set ( TLB miss hit)

このとき例外が発生し、TLB例外ハンドラルーチンが呼ばれ、以下の処理が実行される。
(ステップ#5)主記憶上のページテーブル領域を探索し、論理アドレスに対応した物理アドレスを検出
(ステップ#6)ページテーブル領域から検出した物理アドレスをTLB機構に設定
(ステップ#7)新たに設定した変換表でアドレス変換し、物理アドレス空間にアクセス
At this time, an exception occurs, the TLB exception handler routine is called, and the following processing is executed.
(Step # 5) The page table area on the main memory is searched and the physical address corresponding to the logical address is detected (Step # 6). The physical address detected from the page table area is set in the TLB mechanism (Step # 7). Address conversion using the set conversion table and access to the physical address space

このように、TLBミスヒットが発生すると、TLB機構の設定を変更するための処理が実行される。この処理はCPUにとって本来は不要な処理であり、TLBミスヒットが頻発すると制御演算などのCPUが本来行うべき処理の実行速度に悪影響を及ぼす。   Thus, when a TLB miss occurs, processing for changing the setting of the TLB mechanism is executed. This process is originally unnecessary for the CPU, and if TLB misses occur frequently, it adversely affects the execution speed of the process that the CPU should perform, such as control computation.

TLB機構は、変換サイズを大きくするとTLBミスヒットの発生頻度を減少させることができ、パフォーマンスを向上させることができる利点があるが、主記憶上の無駄な領域が増加する欠点がある。逆に変換サイズを小さくすると、主記憶を有効利用することができるとともに、個々の領域のアクセス権限を細かく設定できるためセキュリティ性を向上できる利点があるが、TLBミスヒットが増加する欠点がある。   The TLB mechanism has an advantage that the frequency of occurrence of TLB misses can be reduced and the performance can be improved by increasing the conversion size, but there is a disadvantage that a wasteful area in the main memory is increased. On the contrary, if the conversion size is reduced, the main memory can be used effectively and the access authority of each area can be set finely. Thus, there is an advantage that the security can be improved, but there is a disadvantage that TLB misses increase.

特開2004−94906号公報JP 2004-94906 A

フィールド制御や安全計装に関するアプリケーションのテキスト部は、約4MBの大きさがある。しかし、通常、TLB機構の変換サイズは最小の4KBとしているため、テキスト部を4KB単位で分割した状態でTLBに設定している。また、テキスト部を固定的にTLBに設定していないため、ミスヒットの発生に伴ってTLBに設定されているテキスト部の領域は動的に変化し、TLBから消去されたテキスト部へのアクセス時にもTLBミスヒットが発生する。このため、TLB例外ハンドラルーチンの呼出し回数が増加し、パフォーマンスに悪影響を及ぼしている。   The text part of the application relating to field control and safety instrumentation has a size of about 4 MB. However, since the conversion size of the TLB mechanism is normally set to 4 KB, the TLB mechanism is set to TLB in a state where the text part is divided in units of 4 KB. In addition, since the text part is not fixedly set to TLB, the area of the text part set in TLB dynamically changes with the occurrence of a miss hit, and access to the text part erased from TLB is performed. Sometimes TLB misses occur. For this reason, the number of times the TLB exception handler routine is called increases, which adversely affects performance.

本発明の目的は、プログラム実行時におけるTLBミスヒットの発生頻度を抑制できるアドレスマッピング方法を提供することにある。   An object of the present invention is to provide an address mapping method capable of suppressing the frequency of occurrence of TLB misses during program execution.

本発明のアドレスマッピング方法は、論理アドレスを物理アドレスに変換するTLBにおけるアドレスマッピング方法において、TLBの論理アドレスとして、アプリケーションタスクのテキスト部全体が収容可能な領域を設けるステップと、前記アプリケーションタスクの実行時に、前記領域に当該テキスト部全体の物理アドレスを固定的に割り当てるステップと、を備えることを特徴とする。
このアドレスマッピング方法によれば、アプリケーションタスクの実行時には、TLBに当該アプリケーションタスクのテキスト部全体の物理アドレスが固定的に割り当てられるので、テキスト部への論理アクセス時にTLBミスヒットが生じることなく、TLBミスヒットの発生頻度を抑制できる。
The address mapping method according to the present invention is a TLB address mapping method for converting a logical address into a physical address, and providing a TLB logical address with an area that can accommodate the entire text portion of the application task; and execution of the application task And a step of fixedly assigning a physical address of the entire text portion to the area.
According to this address mapping method, when an application task is executed, the physical address of the entire text part of the application task is fixedly assigned to the TLB, so that no TLB miss occurs during logical access to the text part. The frequency of miss hits can be suppressed.

前記アプリケーションタスクの切り替えに応じて、前記領域に対する割り当てを、実行対象となる当該プリケーションタスクの当該テキスト部全体の物理アドレスに切り替えるステップを備えてもよい。   According to the switching of the application task, there may be provided a step of switching the allocation to the area to the physical address of the entire text portion of the application task to be executed.

前記アプリケーションタスクの切り替えに応じて、前記TLBの所定の領域に対する割り当てを、実行対象となる当該プリケーションタスクのデータ部の物理アドレスに切り替えるステップを備えてもよい。   According to the switching of the application task, there may be provided a step of switching the allocation of the TLB to a predetermined area to the physical address of the data part of the application task to be executed.

TLBミスヒットの履歴を蓄積するステップと、前記履歴を蓄積するステップによりTLBミスヒットの頻発が認められた物理アドレスを前記TLBの論理アドレスに割り当てるステップと、を備えてもよい。   There may be provided a step of accumulating a history of TLB misses and a step of assigning a physical address in which frequent occurrence of TLB misses is recognized by the step of accumulating the history to a logical address of the TLB.

本発明のアドレスマッピング方法によれば、アプリケーションタスクの実行時には、TLBに当該アプリケーションタスクのテキスト部全体の物理アドレスが固定的に割り当てられるので、テキスト部への論理アクセス時にTLBミスヒットが生じることなく、TLBミスヒットの発生頻度を抑制できる。   According to the address mapping method of the present invention, when an application task is executed, the physical address of the entire text part of the application task is fixedly assigned to the TLB, so that no TLB miss occurs during logical access to the text part. , The occurrence frequency of TLB misses can be suppressed.

MMU内蔵型CPUのハードウェア構成を示す図。The figure which shows the hardware constitutions of MMU built-in type CPU. TLB機構のエントリ方法の一例を示す図。The figure which shows an example of the entry method of a TLB mechanism. TLBエントリの切り替え方法を示す図。The figure which shows the switching method of a TLB entry. TLBエントリの切り替え動作を示すタイミングチャート。The timing chart which shows the switching operation | movement of a TLB entry.

以下、本発明によるアドレスマッピング方法の実施形態について説明する。   Hereinafter, an embodiment of an address mapping method according to the present invention will be described.

図1は、MMU内蔵型CPUのハードウェア構成を示す図である。   FIG. 1 is a diagram illustrating a hardware configuration of an MMU built-in CPU.

図1に示すように、CPU10にはMMU1が内蔵され、MMU1にはTLB機構2が設けられている。また、CPU10には、フィールド制御や安全計装に関するアプリケーションを実行する制御演算機構3と、キャッシュメモリ4と、が設けられている。   As shown in FIG. 1, the CPU 10 has a built-in MMU 1, and the MMU 1 is provided with a TLB mechanism 2. Further, the CPU 10 is provided with a control arithmetic mechanism 3 that executes an application relating to field control and safety instrumentation, and a cache memory 4.

さらに、CPU10はメモリバス6を介して主記憶5に接続される。   Further, the CPU 10 is connected to the main memory 5 via the memory bus 6.

図2はTLB機構のエントリ方法の一例を示す図である。   FIG. 2 is a diagram illustrating an example of an entry method of the TLB mechanism.

図2に示すように、フィールド制御または安全計装に関するアプリケーションタスクである「タスクA」は、テキスト部とデータ部とに分かれて、主記憶5上に保持されている。テキスト部はタスクAのプログラム本体であり、データ部はタスクAのプログラム本体以外の変数、配列等のデータからなる。   As shown in FIG. 2, “task A” which is an application task related to field control or safety instrumentation is divided into a text part and a data part and held in the main memory 5. The text part is the program body of task A, and the data part is composed of data such as variables and arrays other than the program body of task A.

図2に示すように、本実施形態では、TLB機構2のエントリの一部をタスクテキスト部専用エントリ21として確保する。また、専用エントリ21に対して、タスクAのテキスト部全体が収まるようにページサイズを指定し(図2の例では、16MB)、論理アドレスおよび主記憶5上の物理アドレスを対応付けて設定する。   As shown in FIG. 2, in this embodiment, a part of the entry of the TLB mechanism 2 is secured as the task text part dedicated entry 21. Also, the page size is designated for the dedicated entry 21 so that the entire text part of task A can be accommodated (16 MB in the example of FIG. 2), and the logical address and the physical address on the main memory 5 are set in association with each other .

さらに、専用エントリ21がTLBミスヒット発生時に変更されることを防ぐために、OSは専用エントリ21をロックして変更されないようにTLB機構2を管理する。したがって、長時間アクセスがなかった領域も含め、テキスト部のアドレスがTLB機構2から消去されることがない。   Furthermore, in order to prevent the dedicated entry 21 from being changed when a TLB miss hit occurs, the OS locks the dedicated entry 21 and manages the TLB mechanism 2 so that it is not changed. Therefore, the address of the text part is not erased from the TLB mechanism 2 including the area that has not been accessed for a long time.

一方、タスクAのデータ部については、ミスヒットの発生時にTLB機構2への設定の変更が行われるため、TLB機構2のエントリに割り当てられるデータ部のアドレスは動的に変化する。   On the other hand, for the data part of task A, since the setting change to the TLB mechanism 2 is performed when a miss hit occurs, the address of the data part assigned to the entry of the TLB mechanism 2 dynamically changes.

このように、本実施形態ではタスクAのテキスト部の全領域がTLB機構2に固定されるため、テキスト部のどの領域に論理アクセスをしてもTLBミスヒットは発生しない。これにより、TLBミスヒットを大幅に減らすことができ、従来、TLBミスヒット時例外ハンドラ処理に割かれていたCPU資源を、制御演算等のフィールド制御または安全計装に関わる本来の処理に利用できるようになり、システムのパフォーマンスを向上させることができる。   In this way, in this embodiment, since the entire area of the text part of task A is fixed to the TLB mechanism 2, no TLB miss occurs even if any area of the text part is logically accessed. As a result, TLB misses can be greatly reduced, and the CPU resources previously allocated to exception handler processing at the time of TLB misses can be used for original processing related to field control such as control computation or safety instrumentation. As a result, the performance of the system can be improved.

なお、上記実施形態では、単一のエントリにテキスト部全体を収容しているが、複数のエントリに分割してもよい。この場合には、当該複数のエントリをすべてロックすることで、テキスト部全体のアドレスをTLB機構に保持できる。   In the above embodiment, the entire text portion is accommodated in a single entry, but it may be divided into a plurality of entries. In this case, the address of the entire text portion can be held in the TLB mechanism by locking all the plurality of entries.

図3は、アプリケーションタスクをマルチタスクとして実行する場合のTLBエントリの切り替え方法を示す図である。通常、フィールド制御や安全計装に関するシステムでは、システム中に複数のアプリケーションタスクが存在し、リアルタイムOSがタスクの切り替えを行い、マルチタスクで処理を実行している。   FIG. 3 is a diagram showing a TLB entry switching method when an application task is executed as a multitask. Normally, in a system related to field control and safety instrumentation, there are a plurality of application tasks in the system, and the real-time OS switches tasks and executes processing in multitasking.

図3では、アプリケーションタスクとして、タスクAおよびタスクBを切り替えて実行する例を示している。この場合、タスクAを実行中にはタスクAのテキスト部全体をTLB機構2に、タスクBを実行中にはタスクBのテキスト部全体をTLB機構2に、それぞれ設定する必要がある。このため、タスクAの実行時には専用エントリ21にタスクAのテキスト部全体を収容し、タスクAの実行中は専用エントリ21をロックしてその変更を防ぐ。同様に、タスクBの実行時には専用エントリ21にタスクBのテキスト部全体を収容し、タスクBの実行中は専用エントリ21をロックする。   FIG. 3 shows an example in which task A and task B are switched and executed as application tasks. In this case, the entire text part of task A must be set in the TLB mechanism 2 while task A is being executed, and the entire text part of task B must be set in the TLB mechanism 2 while task B is being executed. Therefore, when the task A is executed, the entire text portion of the task A is accommodated in the dedicated entry 21, and during the execution of the task A, the dedicated entry 21 is locked to prevent the change. Similarly, the entire text portion of task B is accommodated in dedicated entry 21 when task B is executed, and dedicated entry 21 is locked while task B is being executed.

図4はこの場合の動作を示すタイミングチャートである。   FIG. 4 is a timing chart showing the operation in this case.

図4に示すように、本実施形態では、OSがタスクコンテキストを切り替えるタイミングで、TLB機構2の専用エントリ21の内容を変更する。   As shown in FIG. 4, in this embodiment, the contents of the dedicated entry 21 of the TLB mechanism 2 are changed at the timing when the OS switches the task context.

例えば、タスクAからタスクBに切り替わる場合、以下の処理をOSが実行する。
(ステップ#1)タスクAの実行中に割り込みが入り、OSに処理が移る。
(ステップ#2)OSはタスクAからタスクBへの切り替え処理を行う。このとき、OSは、それまでタスクAのテキスト部全領域が設定されていたTLB機構2の専用エントリ21に対して、タスクBのテキスト部全領域を設定する(図3)。
(ステップ#3)OSはタスクBをディスパッチ(実行開始)する。
(ステップ#4)タスクBの実行が開始される。このとき既に、TLB機構2にはタスクBnのテキスト部全領域が設定されているので、タスクBのテキスト部への論理アクセスではTLBミスヒットは発生しない。
For example, when switching from task A to task B, the OS executes the following processing.
(Step # 1) An interrupt occurs during the execution of task A, and the process moves to the OS.
(Step # 2) The OS performs a switching process from task A to task B. At this time, the OS sets the entire text area of task B for the dedicated entry 21 of the TLB mechanism 2 where the entire text area of task A has been set (FIG. 3).
(Step # 3) The OS dispatches task B (starts execution).
(Step # 4) The execution of task B is started. At this time, since the entire text portion area of task Bn is already set in the TLB mechanism 2, no TLB miss occurs in the logical access to the text portion of task B.

タスクBからタスクAに切り替わる場合には、同様に、TLB機構2の専用エントリ21に対して、タスクBのテキスト部全領域に代わり、タスクAのテキスト部全領域が設定される。   Similarly, when switching from task B to task A, the entire text part area of task A is set for the dedicated entry 21 of the TLB mechanism 2 instead of the entire text part area of task B.

このように、タスクの切り替えに際してTLB機構2に対応するタスクのテキスト部を設定することで、テキスト部への論理アクセスにおけるTLBミスヒットを回避し、システムのパフォーマンスを向上させることができる。   In this way, by setting the text portion of the task corresponding to the TLB mechanism 2 at the time of task switching, it is possible to avoid a TLB miss in the logical access to the text portion and improve the system performance.

本実施形態では、TLB機構2に設定されるテキスト部のみを切り替える例を示したが、複数のアプリケーションタスク間でデータ部を構成するデータが大きく異なる場合には、タスクの切り替えに際して、TLB機構2に設定されるデータ部をテキスト部と同時に切り替えるようにしてもよい。例えば、TLB機構2にデータ部を設定するための特定のエントリ群の範囲を設け、タスクAの実行時にはタスクAのデータ部を、タスクBの実行時にはタスクBのデータ部を、それぞれ上記エントリ群に設定すればよい。この場合には、TLB機構2に設定されるデータ部のアドレスが、常に実行中のタスクに対して最適化されるため、TLBミスヒットを更に抑制することができる。   In the present embodiment, an example in which only the text portion set in the TLB mechanism 2 is switched has been shown. However, when the data constituting the data portion is greatly different among a plurality of application tasks, the TLB mechanism 2 is switched when switching tasks. The data part set in (1) may be switched simultaneously with the text part. For example, the TLB mechanism 2 is provided with a specific entry group range for setting a data part, the task A data part is executed when the task A is executed, the task B data part is executed when the task B is executed, Should be set. In this case, since the address of the data part set in the TLB mechanism 2 is always optimized for the task being executed, TLB misses can be further suppressed.

上記各実施形態に対し、OSにTLBミスヒット解析機構を付加することもできる。   In contrast to the above embodiments, a TLB miss analysis mechanism can be added to the OS.

TLBミスヒット解析機構の動作を以下に示す。
(1)TLBミスヒットが発生した場合、そのアドレスをログに残す。
(2)ある程度ログを蓄積した段階で、過去一定期間でTLBミスヒットが頻発したアドレスの領域を抽出する。
(3)抽出されたアドレスの領域をTLB機構に保持し、この保持領域をロックすることで変更を防ぐ。
(4)(1)〜(3)を繰り返し、前回抽出された領域以上にTLBミスヒットが頻発する領域が抽出される場合には、今までの領域に代えて、新たなに抽出された領域をTLB機構の保持領域に設定し、この保持領域をロックする。
The operation of the TLB miss analysis mechanism is shown below.
(1) If a TLB miss occurs, leave the address in the log.
(2) When a log is accumulated to some extent, an area of an address where TLB misses frequently occur in a certain past period is extracted.
(3) The extracted address area is held in the TLB mechanism, and the change is prevented by locking this holding area.
(4) When (1) to (3) are repeated and a region where TLB misses occur more frequently than the previously extracted region is extracted, a newly extracted region is used instead of the previous region. Is set in the holding area of the TLB mechanism, and this holding area is locked.

このようなTLBミスヒット解析機構により、メモリの使われ方が動的に変化するシステムなど、TLBミスヒットの発生箇所が変化する場合でも、効果的にTLBミスヒット回数を抑制できる。   Such a TLB miss analysis mechanism can effectively suppress the number of TLB misses even when the occurrence location of a TLB miss changes, such as in a system in which the memory usage changes dynamically.

マルチタスク動作の場合には、それぞれのタスクごとにTLBミスヒット解析を独立して実行することで、各タスクについてTLB機構に設定されるアドレスを最適化することができる。   In the case of multitask operation, the TLB miss hit analysis is independently executed for each task, so that the address set in the TLB mechanism can be optimized for each task.

本発明の適用範囲は上記実施形態に限定されることはない。本発明は、論理アドレスを物理アドレスに変換するTLBにおけるアドレスマッピング方法に対し、広く適用することができる。   The scope of application of the present invention is not limited to the above embodiment. The present invention can be widely applied to an address mapping method in TLB for converting a logical address into a physical address.

2 TLB機構(TLB)
10 CPU
2 TLB mechanism (TLB)
10 CPU

Claims (4)

論理アドレスを物理アドレスに変換するTLBにおけるアドレスマッピング方法において、
TLBの論理アドレスとして、アプリケーションタスクのテキスト部全体が収容可能な領域を設けるステップと、
前記アプリケーションタスクの実行時に、前記領域に当該テキスト部全体の物理アドレスを固定的に割り当てるステップと、
を備えることを特徴とするアドレスマッピング方法。
In an address mapping method in TLB for converting a logical address into a physical address,
Providing an area that can accommodate the entire text portion of the application task as a logical address of the TLB;
A fixed assignment of the physical address of the entire text portion to the area when executing the application task;
An address mapping method comprising:
前記アプリケーションタスクの切り替えに応じて、前記領域に対する割り当てを、実行対象となる当該プリケーションタスクの当該テキスト部全体の物理アドレスに切り替えるステップを備えることを特徴とする請求項1に記載のアドレスマッピング方法。 The address mapping method according to claim 1, further comprising a step of switching allocation to the area to a physical address of the entire text portion of the application task to be executed in response to switching of the application task. . 前記アプリケーションタスクの切り替えに応じて、前記TLBの所定の領域に対する割り当てを、実行対象となる当該プリケーションタスクのデータ部の物理アドレスに切り替えるステップを備えることを特徴とする請求項2に記載のアドレスマッピング方法。 3. The address according to claim 2, further comprising a step of switching allocation of the TLB to a predetermined area to a physical address of a data part of the application task to be executed in response to switching of the application task. Mapping method. TLBミスヒットの履歴を蓄積するステップと、
前記履歴を蓄積するステップによりTLBミスヒットの頻発が認められた物理アドレスを前記TLBの論理アドレスに割り当てるステップと、
を備えることを特徴とする請求項1〜3のいずれか1項に記載のアドレスマッピング方法。
Accumulating a history of TLB misses;
Assigning a physical address in which frequent occurrence of TLB misses is recognized by the step of accumulating the history to a logical address of the TLB;
The address mapping method according to claim 1, further comprising:
JP2009034700A 2009-02-18 2009-02-18 Address mapping method Pending JP2010191645A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009034700A JP2010191645A (en) 2009-02-18 2009-02-18 Address mapping method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009034700A JP2010191645A (en) 2009-02-18 2009-02-18 Address mapping method

Publications (1)

Publication Number Publication Date
JP2010191645A true JP2010191645A (en) 2010-09-02

Family

ID=42817634

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009034700A Pending JP2010191645A (en) 2009-02-18 2009-02-18 Address mapping method

Country Status (1)

Country Link
JP (1) JP2010191645A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9501423B2 (en) 2011-01-12 2016-11-22 Socionext Inc. Program execution device and compiler system
CN112015668A (en) * 2019-05-31 2020-12-01 西安诺瓦星云科技股份有限公司 Physical address acquisition method and device and multimedia playing box

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9501423B2 (en) 2011-01-12 2016-11-22 Socionext Inc. Program execution device and compiler system
CN112015668A (en) * 2019-05-31 2020-12-01 西安诺瓦星云科技股份有限公司 Physical address acquisition method and device and multimedia playing box
CN112015668B (en) * 2019-05-31 2023-03-31 西安诺瓦星云科技股份有限公司 Physical address acquisition method and device and multimedia playing box

Similar Documents

Publication Publication Date Title
US9965399B2 (en) Large-page optimization in virtual memory paging systems
JP5378450B2 (en) Preserving processor resources during architectural events
US5809563A (en) Method and apparatus utilizing a region based page table walk bit
US8806177B2 (en) Prefetch engine based translation prefetching
KR20170100003A (en) Cache accessed using virtual addresses
US20090158004A1 (en) TLB Virtualization Method of Machine Virtualization Device, and Machine Virtualization Program
US20100251260A1 (en) Pre-emptible context switching in a computing device
KR20080097573A (en) Method for accessing virtual memory
US8688952B2 (en) Arithmetic processing unit and control method for evicting an entry from a TLB to another TLB
JP2010191645A (en) Address mapping method
WO2007090175A1 (en) Cache locking without interference from normal allocation
JP2007272691A (en) Processor device and thrashing avoidance method
US6766435B1 (en) Processor with a general register set that includes address translation registers
EP3330848B1 (en) Detection of stack overflow in a multithreaded processor
US10719453B1 (en) Apparatus and method for handling maintenance operations for an address translation cache
Krzyzanowski MemoryáManagement: áPaging
JP2007286705A (en) Address conversion device
US20160259310A1 (en) Initialising control data for a device
EP1262876B1 (en) Multiprocessing system with shared translation lookaside buffer
Bhattacharjee et al. Modern VM Hardware Stack
Hale et al. Synchronization,"