Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5199165B2 - Communication terminal and communication control method - Google Patents
[go: Go Back, main page]

JP5199165B2 - Communication terminal and communication control method - Google Patents

Communication terminal and communication control method Download PDF

Info

Publication number
JP5199165B2
JP5199165B2 JP2009087435A JP2009087435A JP5199165B2 JP 5199165 B2 JP5199165 B2 JP 5199165B2 JP 2009087435 A JP2009087435 A JP 2009087435A JP 2009087435 A JP2009087435 A JP 2009087435A JP 5199165 B2 JP5199165 B2 JP 5199165B2
Authority
JP
Japan
Prior art keywords
web application
cache memory
capacity
threshold
cache
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.)
Expired - Fee Related
Application number
JP2009087435A
Other languages
Japanese (ja)
Other versions
JP2010238112A (en
Inventor
和徳 山本
智勇 王
淳樹 富岡
武史 長沼
靖 近藤
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.)
NTT Docomo Inc
Original Assignee
NTT Docomo Inc
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 NTT Docomo Inc filed Critical NTT Docomo Inc
Priority to JP2009087435A priority Critical patent/JP5199165B2/en
Publication of JP2010238112A publication Critical patent/JP2010238112A/en
Application granted granted Critical
Publication of JP5199165B2 publication Critical patent/JP5199165B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Description

本発明は、ウェブアプリケーションの起動時に当該ウェブアプリケーションの実行用に所定容量のキャッシュメモリを割り当てて当該ウェブアプリケーションを実行する通信端末、および、当該通信端末にて実行される通信制御方法に関する。   The present invention relates to a communication terminal that executes a web application by allocating a predetermined amount of cache memory for executing the web application when the web application is started, and a communication control method that is executed by the communication terminal.

通信端末にてアプリケーションを実行中に、当該アプリケーションが、URL(Uniform Resource Locator)で一意に識別されるファイルをネットワーク経由でサーバに要求し、当該ファイルをサーバからダウンロードする処理が一般的に広く行われている。なお、上記のように、実行中に必要になったファイルをネットワーク経由でサーバに要求するアプリケーションは、「ウェブアプリケーション」と一般に呼ばれている。ところが、ファイルをネットワーク経由でサーバから通信端末へダウンロードするには、かなりの処理時間がかかるため、処理の高速化・効率化を図るべく、ウェブアプリケーション実行中に使用することが見込まれるファイルを予めサーバから通信端末へダウンロードしてキャッシュメモリに記憶しておく処理(いわゆる先読みキャッシュ処理)が広く知られている。   While an application is being executed on a communication terminal, a process in which the application requests a file uniquely identified by a URL (Uniform Resource Locator) from the server via the network and downloads the file from the server is generally widely performed. It has been broken. Note that, as described above, an application that requests a server for a file required during execution is generally called a “web application”. However, since it takes a considerable amount of processing time to download a file from a server to a communication terminal via a network, in order to increase the processing speed and efficiency, a file that is expected to be used during execution of a web application is stored in advance. A process (so-called prefetch cache process) that is downloaded from a server to a communication terminal and stored in a cache memory is widely known.

特開2000−250803号公報JP 2000-250803 A

ところが、通信端末に大容量のキャッシュメモリを搭載することは、実用面を考慮すると、実際には困難である。   However, it is actually difficult to install a large-capacity cache memory in a communication terminal in consideration of practical use.

そのため、有限なキャッシュメモリを有効に活用することは、通信端末にてウェブアプリケーションを実行する際の重要な課題である。例えば、ウェブアプリケーション実行中に一定レベル以上のキャッシュヒット率を確保し、ウェブアプリケーションの応答性を一定レベル以上に保持することが望まれる。また、個々のウェブアプリケーションによって、起動される頻度は異なるので、起動頻度に応じて適正なメモリ容量のキャッシュメモリを各ウェブアプリケーション実行時に割り当てることが望まれる。   Therefore, effective use of a finite cache memory is an important issue when executing a web application on a communication terminal. For example, it is desired to secure a cache hit rate of a certain level or more during execution of the web application and to maintain the responsiveness of the web application to a certain level or more. In addition, since the activation frequency varies depending on individual web applications, it is desirable to allocate a cache memory having an appropriate memory capacity when executing each web application in accordance with the activation frequency.

以上を踏まえ、本発明は、通信端末にてウェブアプリケーションを実行する際に、通信端末に搭載された有限なキャッシュメモリを有効に活用することを目的とする。   Based on the above, an object of the present invention is to effectively utilize a finite cache memory mounted on a communication terminal when executing a web application on the communication terminal.

上記の目的を達成するために、本発明に係る通信端末は、キャッシュメモリと、あるウェブアプリケーションの起動時に、当該ウェブアプリケーションのための所定のキャッシュメモリ割当て容量のキャッシュメモリを割り当てる割当て部と、前記ウェブアプリケーションの実行中のキャッシュヒット状況を記録し、前記ウェブアプリケーションの実行終了時に、前記キャッシュヒット状況に基づいて前記ウェブアプリケーションの実行中におけるキャッシュヒット率を算出するヒット率算出部と、算出されたキャッシュヒット率が、予め設定された下限閾値を下回る場合、前記ウェブアプリケーションのためのキャッシュメモリ割当て容量を増加させ、前記算出されたキャッシュヒット率が、前記下限閾値以上に予め設定された上限閾値を上回る場合、前記ウェブアプリケーションのためのキャッシュメモリ割当て容量を減少させることで、前記ウェブアプリケーションのためのキャッシュメモリ割当て容量を調整する割当て容量調整部と、自通信端末における過去の所定期間内のウェブアプリケーション起動状況を記録し、該ウェブアプリケーション起動状況に基づいて前記所定期間内に起動されたウェブアプリケーション各々の起動頻度を算出する起動頻度算出部と、算出された起動頻度が高いウェブアプリケーションほど、前記下限閾値および前記上限閾値が高くなるように、前記ウェブアプリケーション各々の起動頻度に応じて、前記下限閾値および前記上限閾値を再設定する閾値再設定部と、を備え、前記割当て部は、前記ウェブアプリケーションの次回の起動時に、前記調整後のキャッシュメモリ割当て容量のキャッシュメモリを割り当て、前記割当て容量調整部は、あるウェブアプリケーションに対し再設定された前記下限閾値および前記上限閾値を用いて、当該ウェブアプリケーションのためのキャッシュメモリ割当て容量を調整することを特徴とする。 In order to achieve the above object, a communication terminal according to the present invention includes a cache memory, an allocation unit that allocates a cache memory having a predetermined cache memory allocation capacity for the web application when a certain web application is activated, A hit rate calculation unit that records a cache hit status during execution of the web application and calculates a cache hit rate during execution of the web application based on the cache hit status at the end of execution of the web application; When the cache hit rate falls below a preset lower threshold, the cache memory allocation capacity for the web application is increased, and the calculated cache hit rate exceeds a preset upper threshold equal to or higher than the lower threshold. Around case, the by decreasing the cache memory quota for web applications, the allocation amount adjustment section for adjusting the cache memory quota for the web application, the web application in a past predetermined period in the self communication terminal An activation frequency calculation unit that records an activation status, calculates an activation frequency of each web application activated within the predetermined period based on the web application activation status, and a web application with a higher calculated activation frequency, the lower limit A threshold value resetting unit that resets the lower limit threshold value and the upper limit threshold value according to the activation frequency of each of the web applications so that the threshold value and the upper limit threshold value become higher, and the allocation unit includes the web application At the next startup of Serial allocates a cache memory of the cache memory quota after the adjustment, the quota adjustment unit uses the lower threshold and the upper threshold value is re-set for a certain web applications, cache memory allocation for the web application It characterized that you adjust the volume.

上記の通信端末では、ヒット率算出部は、ウェブアプリケーションの実行中のキャッシュヒット状況を記録し、当該ウェブアプリケーションの実行終了時に上記キャッシュヒット状況に基づいてキャッシュヒット率を算出し、割当て容量調整部は、キャッシュヒット率が下限閾値を下回る場合、上記ウェブアプリケーションのためのキャッシュメモリ割当て容量を増加させ、キャッシュヒット率が上限閾値を上回る場合、上記ウェブアプリケーションのためのキャッシュメモリ割当て容量を減少させることで、上記ウェブアプリケーションのためのキャッシュメモリ割当て容量を調整する。そして、割当て部が、上記ウェブアプリケーションの次回の起動時に、調整後のキャッシュメモリ割当て容量のキャッシュメモリを割り当てる。以上のように、キャッシュヒット率が下限閾値と上限閾値の間の一定範囲内に維持されるように、キャッシュメモリ割当て容量を調整するため、ウェブアプリケーションの応答性を一定レベル以上に保持することが可能となる。   In the communication terminal, the hit rate calculation unit records the cache hit status during execution of the web application, calculates the cache hit rate based on the cache hit status at the end of execution of the web application, and the allocated capacity adjustment unit Increases the cache memory allocation capacity for the web application if the cache hit ratio is below the lower threshold, and decreases the cache memory allocation capacity for the web application if the cache hit ratio exceeds the upper threshold. The cache memory allocation capacity for the web application is adjusted. Then, the allocation unit allocates the cache memory having the adjusted cache memory allocation capacity at the next activation of the web application. As described above, in order to adjust the cache memory allocation capacity so that the cache hit rate is maintained within a certain range between the lower threshold and the upper threshold, the responsiveness of the web application can be maintained at a certain level or more. It becomes possible.

また、起動頻度が高いウェブアプリケーションほど下限閾値および上限閾値が高くなるように、ウェブアプリケーション各々の起動頻度に応じて下限閾値および上限閾値が再設定され、あるウェブアプリケーションに対し再設定された下限閾値および上限閾値を用いて、当該ウェブアプリケーションのためのキャッシュメモリ割当て容量が調整される。そのため、個々のウェブアプリケーションの起動頻度に応じて適正なメモリ容量のキャッシュメモリを各ウェブアプリケーション実行時に割り当てることが可能となる。 In addition , the lower threshold and the upper threshold are reset according to the activation frequency of each web application so that the lower the threshold and the upper threshold are higher for the web application with a higher activation frequency, and the lower threshold is reset for a certain web application. And the upper threshold is used to adjust the cache memory allocation for the web application. For this reason, it is possible to allocate a cache memory having an appropriate memory capacity at the time of executing each web application in accordance with the activation frequency of each web application.

また、下限閾値と上限閾値とは同じ値であってもよい。その場合、キャッシュヒット率が当該同じ値で維持されるように、キャッシュメモリ割当て容量が調整される。即ち、一定のキャッシュヒット率を実現することができる。   Further, the lower limit threshold and the upper limit threshold may be the same value. In that case, the cache memory allocation capacity is adjusted so that the cache hit rate is maintained at the same value. That is, a certain cache hit rate can be realized.

また、本発明に係る通信端末は、あるウェブアプリケーションの起動時に、当該ウェブアプリケーションのための所定のキャッシュメモリ割当て容量のキャッシュメモリを割り当てて、当該ウェブアプリケーションを実行する通信端末であって、前記通信端末における過去の所定期間内のウェブアプリケーション起動状況を記録し、該ウェブアプリケーション起動状況に基づいて前記所定期間内に起動されたウェブアプリケーション各々の起動頻度を算出する起動頻度算出部と、算出された起動頻度が高いウェブアプリケーションほど、割り当てられるキャッシュメモリ割当て容量が大きくなるように、前記ウェブアプリケーション各々の起動頻度に応じて、前記ウェブアプリケーション各々のためのキャッシュメモリ割当て容量を再設定する割当て容量再設定部と、を備えることを特徴とする。   The communication terminal according to the present invention is a communication terminal that executes a web application by allocating a cache memory having a predetermined cache memory allocation capacity for the web application when a certain web application is activated. An activation frequency calculating unit that records a web application activation status within a predetermined period in the terminal and calculates an activation frequency of each web application activated within the predetermined period based on the web application activation status; The cache memory allocation capacity for each of the web applications is reset according to the activation frequency of each of the web applications, so that the web application having a higher activation frequency has a larger allocated cache memory capacity. Characterized in that it comprises a quota resetting unit.

この場合、起動頻度が高いウェブアプリケーションほど、割り当てられるキャッシュメモリ割当て容量が大きくなるように、ウェブアプリケーション各々の起動頻度に応じて、ウェブアプリケーション各々のためのキャッシュメモリ割当て容量が再設定される。そのため、個々のウェブアプリケーションの起動頻度に応じて適正なメモリ容量のキャッシュメモリを各ウェブアプリケーション実行時に割り当てることが可能となる。   In this case, the cache memory allocation capacity for each web application is reset according to the activation frequency of each web application so that the cache memory allocation capacity to be allocated becomes larger as the web application has a higher activation frequency. For this reason, it is possible to allocate a cache memory having an appropriate memory capacity at the time of executing each web application in accordance with the activation frequency of each web application.

以上のような通信端末に係る発明は、通信制御方法に係る発明として捉えることもでき、以下のように記載することができる。通信制御方法に係る発明も、通信端末に係る発明と同様の作用・効果を奏する。   The invention relating to the communication terminal as described above can also be regarded as an invention relating to the communication control method, and can be described as follows. The invention related to the communication control method also has the same operations and effects as the invention related to the communication terminal.

本発明に係る通信制御方法は、キャッシュメモリを備える通信端末にて実行される通信制御方法であって、あるウェブアプリケーションの起動時に、当該ウェブアプリケーションのための所定のキャッシュメモリ割当て容量のキャッシュメモリを割り当てる割当てステップと、前記ウェブアプリケーションの実行中のキャッシュヒット状況を記録し、前記ウェブアプリケーションの実行終了時に、前記キャッシュヒット状況に基づいて前記ウェブアプリケーションの実行中におけるキャッシュヒット率を算出するヒット率算出ステップと、算出されたキャッシュヒット率が、予め設定された下限閾値を下回る場合、前記ウェブアプリケーションのためのキャッシュメモリ割当て容量を増加させ、前記算出されたキャッシュヒット率が、前記下限閾値以上に予め設定された上限閾値を上回る場合、前記ウェブアプリケーションのためのキャッシュメモリ割当て容量を減少させることで、前記ウェブアプリケーションのためのキャッシュメモリ割当て容量を調整する割当て容量調整ステップと、前記通信端末における過去の所定期間内のウェブアプリケーション起動状況を記録し、該ウェブアプリケーション起動状況に基づいて前記所定期間内に起動されたウェブアプリケーション各々の起動頻度を算出する起動頻度算出ステップと、算出された起動頻度が高いウェブアプリケーションほど、前記下限閾値および前記上限閾値が高くなるように、前記ウェブアプリケーション各々の起動頻度に応じて、前記下限閾値および前記上限閾値を再設定する閾値再設定ステップと、を備え、前記割当てステップでは、前記ウェブアプリケーションの次回の起動時に、前記調整後のキャッシュメモリ割当て容量のキャッシュメモリを割り当て、前記割当て容量調整ステップでは、あるウェブアプリケーションに対し再設定された前記下限閾値および前記上限閾値を用いて、当該ウェブアプリケーションのためのキャッシュメモリ割当て容量を調整する、ことを特徴とする。 A communication control method according to the present invention is a communication control method executed by a communication terminal including a cache memory. When a certain web application is started, a cache memory having a predetermined cache memory allocation capacity for the web application is stored. An allocation step for assigning, and a cache hit status during execution of the web application is recorded, and a hit rate calculation for calculating a cache hit rate during execution of the web application based on the cache hit status at the end of execution of the web application And if the calculated cache hit rate falls below a preset lower threshold, the cache memory allocation capacity for the web application is increased, and the calculated cache hit rate When exceeding a preset upper threshold value above the threshold, by decreasing the cache memory quota for the web application, the allocated capacity adjustment step of adjusting the cache memory quota for the web application, the communication An activation frequency calculating step of recording a web application activation status within a predetermined period in the terminal and calculating an activation frequency of each web application activated within the predetermined period based on the web application activation status; A threshold reset step for resetting the lower threshold and the upper threshold according to the activation frequency of each of the web applications so that the lower the threshold and the upper threshold are higher, the higher the activation frequency of the web application is. Comprising The abutting step, the next startup of the web application, allocates a cache memory of the cache memory allocation capacity after the adjustment, and in the allocation capacity adjustment step, the lower limit threshold and the upper threshold value is re-set to a Web application using, you adjust the cache memory quota for the web application, and wherein the.

た、下限閾値と上限閾値とは同じ値であってもよい。 Also, it may be the same value and the lower threshold and the upper threshold.

また、本発明に係る通信制御方法は、あるウェブアプリケーションの起動時に当該ウェブアプリケーションのための所定のキャッシュメモリ割当て容量のキャッシュメモリを割り当てて、当該ウェブアプリケーションを実行する通信端末、にて実行される通信制御方法であって、前記通信端末における過去の所定期間内のウェブアプリケーション起動状況を記録し、該ウェブアプリケーション起動状況に基づいて前記所定期間内に起動されたウェブアプリケーション各々の起動頻度を算出する起動頻度算出ステップと、算出された起動頻度が高いウェブアプリケーションほど、割り当てられるキャッシュメモリ割当て容量が大きくなるように、前記ウェブアプリケーション各々の起動頻度に応じて、前記ウェブアプリケーション各々のためのキャッシュメモリ割当て容量を再設定する割当て容量再設定ステップと、を備えることを特徴とする。   The communication control method according to the present invention is executed by a communication terminal that allocates a cache memory having a predetermined cache memory allocation capacity for a web application when the web application is started and executes the web application. A communication control method for recording a web application activation status within a predetermined period in the past at the communication terminal, and calculating an activation frequency of each web application activated within the predetermined period based on the web application activation status In accordance with the activation frequency of each of the web applications, the activation frequency calculation step and the cache memory allocation capacity allocated to the web application having a higher activation frequency are increased. Characterized in that it comprises a quota resetting step for resetting the Yasshumemori quota, the.

本発明によれば、通信端末にてウェブアプリケーションを実行する環境において、通信端末に搭載された有限なキャッシュメモリを有効に活用することができる。   ADVANTAGE OF THE INVENTION According to this invention, the finite cache memory mounted in the communication terminal can be utilized effectively in the environment which performs a web application with a communication terminal.

第1実施形態のシステム構成図である。It is a system configuration figure of a 1st embodiment. 通信端末のハードウェア構成図である。It is a hardware block diagram of a communication terminal. 割当て容量調整処理を示す流れ図である。It is a flowchart which shows an allocation capacity adjustment process. 第2実施形態のシステム構成図である。It is a system configuration figure of a 2nd embodiment. 閾値再設定処理を示す流れ図である。It is a flowchart which shows a threshold reset process. 閾値再設定処理を説明するための図である。It is a figure for demonstrating a threshold reset process. 第3実施形態のシステム構成図である。It is a system configuration figure of a 3rd embodiment. 割当て容量再設定処理を示す流れ図である。It is a flowchart which shows an allocation capacity reset process.

以下、図面を参照して、本発明に係る実施形態1〜3を順に説明する。
[実施形態1]
実施形態1では、キャッシュヒット率が一定範囲内に維持されるようにキャッシュメモリ割当て容量を調整する形態を説明する。
Hereinafter, Embodiments 1 to 3 according to the present invention will be described in order with reference to the drawings.
[Embodiment 1]
In the first embodiment, a mode in which the cache memory allocation capacity is adjusted so that the cache hit rate is maintained within a certain range will be described.

図1に示すように、実施形態1に係る通信システム1は、莫大な量のファイルを記憶・管理するサーバ10と、通信端末30と、を含んで構成され、これらはネットワーク20を介して相互に接続可能とされている。   As shown in FIG. 1, the communication system 1 according to the first embodiment includes a server 10 that stores and manages an enormous amount of files and a communication terminal 30, and these are mutually connected via a network 20. It is possible to connect to.

通信端末30は、キャッシュメモリ31、キャッシュ制御部32、割当て容量記憶部34、割当て部35、ヒット率算出部36、閾値記憶部37、および割当て容量調整部33を備える。   The communication terminal 30 includes a cache memory 31, a cache control unit 32, an allocated capacity storage unit 34, an allocation unit 35, a hit rate calculation unit 36, a threshold storage unit 37, and an allocated capacity adjustment unit 33.

このうち、キャッシュ制御部32は、キャッシュメモリ31へのファイル入出力を制御し、必要に応じてサーバ10に対しファイルの送信を要求し、サーバ10からファイルを受信して当該ファイルをキャッシュメモリ31に記憶する。   Among these, the cache control unit 32 controls file input / output to / from the cache memory 31, requests transmission of the file to the server 10 as necessary, receives a file from the server 10, and stores the file in the cache memory 31. To remember.

割当て容量記憶部34は、ウェブアプリケーション起動時に、当該ウェブアプリケーションに対し割り当てるべきキャッシュメモリ割当て容量(以下「割当て容量」と略記する)の情報をウェブアプリケーション毎に記憶している。   The allocated capacity storage unit 34 stores, for each web application, information on a cache memory allocated capacity (hereinafter abbreviated as “allocated capacity”) to be allocated to the web application when the web application is activated.

割当て部35は、ウェブアプリケーションの起動時に、割当て容量記憶部34を参照して当該ウェブアプリケーションに関する割当て容量の情報を取得し、当該割当て容量のキャッシュメモリ31を割り当てる。   When the web application is activated, the allocating unit 35 refers to the allocated capacity storage unit 34 to acquire information on the allocated capacity related to the web application, and allocates the cache memory 31 having the allocated capacity.

ヒット率算出部36は、ウェブアプリケーション実行中のキャッシュヒット状況を記録し、実行終了時に、記録されたキャッシュヒット状況に基づいてキャッシュヒット率を算出する。   The hit rate calculation unit 36 records the cache hit status during execution of the web application, and calculates the cache hit rate based on the recorded cache hit status at the end of execution.

閾値記憶部37は、キャッシュヒット率を維持すべき範囲に関する下限閾値および上限閾値をウェブアプリケーション毎に記憶している。   The threshold storage unit 37 stores, for each web application, a lower limit threshold and an upper limit threshold related to a range in which the cache hit rate should be maintained.

割当て容量調整部33は、閾値記憶部37を参照して、対象となるウェブアプリケーションに関する下限閾値および上限閾値を取得し、当該ウェブアプリケーション実行中のキャッシュヒット率が下限閾値と上限閾値の間の一定範囲内に維持されるように、当該ウェブアプリケーションに対する割当て容量を調整する(増減させる)。   The allocated capacity adjustment unit 33 refers to the threshold storage unit 37 to obtain the lower limit threshold and the upper limit threshold for the target web application, and the cache hit rate during execution of the web application is constant between the lower limit threshold and the upper limit threshold. The allocated capacity for the web application is adjusted (increased or decreased) so as to be maintained within the range.

なお、図2には、通信端末30のハードウェア構成の一例を示す。通信端末30は、ハードウェア構成として、CPU30Aと、RAM30Bと、ROM30Cと、入力デバイスであるキーボードやマウス等の入力装置30Dと、外部装置との通信を行う通信装置30Eと、キャッシュメモリ30Fと、出力デバイスであるディスプレイやプリンタ等の出力装置30Gとを備え、特別なハードウェア構成を必要とするものではない。前述した通信端末30の各機能ブロックの機能は、RAM30B等に所定のプログラムを読み込ませ、CPU30Aの制御の下で入力装置30D、通信装置30E、出力装置30Gを動作させ、キャッシュメモリ30F等に対しデータの読み書きを行うことで実行される。このようなハードウェア構成は、後述する実施形態2、3でも同様である。   FIG. 2 shows an example of the hardware configuration of the communication terminal 30. The communication terminal 30 includes, as a hardware configuration, a CPU 30A, a RAM 30B, a ROM 30C, an input device 30D such as a keyboard and a mouse that are input devices, a communication device 30E that communicates with an external device, a cache memory 30F, An output device 30G such as a display or a printer as an output device is provided, and no special hardware configuration is required. The function of each functional block of the communication terminal 30 described above is to read a predetermined program into the RAM 30B, etc., operate the input device 30D, the communication device 30E, and the output device 30G under the control of the CPU 30A, and to the cache memory 30F etc. It is executed by reading and writing data. Such a hardware configuration is the same in Embodiments 2 and 3 described later.

一方、図1に示すように、サーバ10は、莫大な量のファイルを記憶したファイルデータベース13と、ファイルデータベース13へのファイル入出力を管理するファイル管理部14と、通信端末30からのファイル要求等を受信する受信部11と、要求されたファイルを通信端末30へ送信する送信部12と、を備える。   On the other hand, as shown in FIG. 1, the server 10 includes a file database 13 that stores an enormous amount of files, a file management unit 14 that manages file input / output to the file database 13, and a file request from the communication terminal 30. Etc., and a transmission unit 12 that transmits the requested file to the communication terminal 30.

続いて、図3を用いて、通信端末30にて実行される割当て容量調整処理について説明する。なお、図3では、ウェブアプリケーションを「アプリ」と略記している。   Next, the allocated capacity adjustment process executed by the communication terminal 30 will be described with reference to FIG. In FIG. 3, the web application is abbreviated as “application”.

図3に示すように、ウェブアプリケーションに対する割当て容量を調整すべき所定タイミングになったか否かを監視する(ステップS1)。ここで、割当て容量を調整すべき所定タイミングとしては、例えば、ウェブアプリケーションが起動されたとき、および、ウェブアプリケーション実行中の所定周期の調整タイミングが到来したときが挙げられる。   As shown in FIG. 3, it is monitored whether or not a predetermined timing at which the allocated capacity for the web application should be adjusted (step S1). Here, examples of the predetermined timing at which the allocated capacity should be adjusted include a time when the web application is activated and a time when an adjustment timing of a predetermined period during execution of the web application arrives.

何らかのウェブアプリケーションの起動が検知されると、ステップS1で肯定判断され、以下のステップS2〜S10の処理が実行される。   When the activation of any web application is detected, an affirmative determination is made in step S1, and the following steps S2 to S10 are executed.

ステップS2では、割当て部35は、起動されたウェブアプリケーション(対象ウェブアプリケーション)に関する割当て容量の情報を割当て容量記憶部34から読み出し、次のステップS3で対象ウェブアプリケーションに対し、上記読み出した割当て容量(以下「割当て容量C」という)のキャッシュメモリ31を割り当てる。   In step S2, the allocating unit 35 reads information on the allocated capacity related to the activated web application (target web application) from the allocated capacity storage unit 34, and in the next step S3, the allocated capacity ( A cache memory 31 (hereinafter referred to as “allocation capacity C”) is allocated.

次のステップS4では、キャッシュ制御部32が、対象ウェブアプリケーションについて割当て容量C分の先読みすべきファイルをサーバ10に要求することで、サーバ10から当該ファイルを受信しキャッシュメモリ31に記憶する。このとき、必要があれば、キャッシュメモリ31に記憶されていた他のウェブアプリケーションのファイルを消去する。   In the next step S <b> 4, the cache control unit 32 requests the server 10 for a file to be prefetched for the allocated capacity C for the target web application, and receives the file from the server 10 and stores it in the cache memory 31. At this time, if necessary, files of other web applications stored in the cache memory 31 are deleted.

その後、対象ウェブアプリケーションが実行され、ヒット率算出部36は、対象ウェブアプリケーション実行中のキャッシュヒット状況を逐次記録する(ステップS5)。そして、実行終了時に、ヒット率算出部36は、記録されたキャッシュヒット状況より、キャッシュメモリ31からの読出しに成功した回数をキャッシュメモリ31からの読出し試行回数によって割り算することで得た値を、キャッシュヒット率Hとして算出する(ステップS6)。   Thereafter, the target web application is executed, and the hit rate calculation unit 36 sequentially records the cache hit status during execution of the target web application (step S5). At the end of execution, the hit rate calculation unit 36 divides the number of successful reads from the cache memory 31 by the number of read attempts from the cache memory 31 from the recorded cache hit status, The cache hit rate H is calculated (step S6).

そして、割当て容量調整部33は、閾値記憶部37から対象ウェブアプリケーションに関する下限閾値および上限閾値を取得し、ステップS6で算出されたキャッシュヒット率Hと、下限閾値および上限閾値とを比較することで、以下のように対象ウェブアプリケーションに対する割当て容量を調整する。   Then, the allocated capacity adjustment unit 33 acquires the lower limit threshold and the upper limit threshold related to the target web application from the threshold storage unit 37, and compares the cache hit rate H calculated in step S6 with the lower limit threshold and the upper limit threshold. The allocated capacity for the target web application is adjusted as follows.

即ち、割当て容量調整部33は、キャッシュヒット率Hが下限閾値を下回ったか否かを判定し(ステップS7)、キャッシュヒット率Hが下限閾値を下回っていれば、割当て容量Cを増加させ、増加後の割当て容量Cを割当て容量記憶部34に記憶する(ステップS8)。ここでは、一例として、所定の定数α(α>0)を割当て容量Cに加算することで、割当て容量Cを増加させてもよい。増加後の割当て容量Cが割当て容量記憶部34に記憶されるため、次回、割当て容量を調整すべき所定タイミングが到来したときは、増加後の割当て容量C分のキャッシュメモリ31が割り当てられる。そのため、次回のキャッシュヒット率Hは、今回よりも高くなり、下限閾値を下回る事態を回避できると考えられる。   That is, the allocated capacity adjustment unit 33 determines whether or not the cache hit rate H is below the lower threshold (step S7). If the cache hit rate H is below the lower threshold, the allocated capacity C is increased and increased. The subsequent allocated capacity C is stored in the allocated capacity storage unit 34 (step S8). Here, as an example, the allocated capacity C may be increased by adding a predetermined constant α (α> 0) to the allocated capacity C. Since the allocated capacity C after the increase is stored in the allocated capacity storage unit 34, the next time the predetermined timing for adjusting the allocated capacity arrives, the cache memory 31 corresponding to the increased allocated capacity C is allocated. Therefore, it is considered that the next cache hit rate H is higher than this time, and a situation where the cache hit rate H falls below the lower limit threshold can be avoided.

一方、キャッシュヒット率Hが下限閾値を下回っていなければ、キャッシュヒット率Hが上限閾値を上回ったか否かを判定し(ステップS9)、キャッシュヒット率Hが上限閾値を上回っていれば、割当て容量Cを減少させ、減少後の割当て容量Cを割当て容量記憶部34に記憶する(ステップS10)。ここでは、一例として、所定の定数β(β>0)を割当て容量Cから減算することで、割当て容量Cを減少させてもよい。なお、定数βは上記の定数αと同じ値に設定してもよい。減少後の割当て容量Cが割当て容量記憶部34に記憶されるため、次回、割当て容量を調整すべき所定タイミングが到来したときは、減少後の割当て容量C分のキャッシュメモリ31が割り当てられる。そのため、次回のキャッシュヒット率Hは、今回よりも低くなり、上限閾値を上回る事態を回避できると考えられる。   On the other hand, if the cache hit rate H is not lower than the lower limit threshold value, it is determined whether or not the cache hit rate H is higher than the upper limit threshold value (step S9). C is decreased, and the decreased allocated capacity C is stored in the allocated capacity storage unit 34 (step S10). Here, as an example, the allocated capacity C may be decreased by subtracting a predetermined constant β (β> 0) from the allocated capacity C. The constant β may be set to the same value as the above constant α. Since the allocated capacity C after the decrease is stored in the allocated capacity storage unit 34, the next time the predetermined timing for adjusting the allocated capacity arrives, the cache memory 31 corresponding to the decreased allocated capacity C is allocated. Therefore, it is considered that the next cache hit rate H is lower than this time and a situation where the upper limit threshold is exceeded can be avoided.

なお、キャッシュヒット率Hが下限閾値以上で且つ上限閾値以下であれば、調整の必要が無いため、キャッシュヒット率Hの増減は行われない。   If the cache hit rate H is greater than or equal to the lower threshold and less than or equal to the upper threshold, no adjustment is necessary, and therefore the cache hit rate H is not increased or decreased.

その後、図3のステップS1に戻り、ウェブアプリケーションに対する割当て容量を調整すべき所定タイミングとなったか否かの監視が行われる。そして、対象ウェブアプリケーション実行中の所定周期の調整タイミングが到来したとき、又は、新たなウェブアプリケーションが起動されたときに、ステップS1で肯定判断され、上述したステップS2〜S10の処理が繰り返し実行される。   Thereafter, the process returns to step S1 in FIG. 3 to monitor whether or not a predetermined timing for adjusting the allocated capacity for the web application has come. Then, when an adjustment timing of a predetermined period during execution of the target web application has arrived, or when a new web application is activated, an affirmative determination is made in step S1, and the processes in steps S2 to S10 described above are repeatedly executed. The

以上説明した実施形態1によれば、キャッシュヒット率Hが下限閾値と上限閾値の間の一定範囲内に維持されるように、割当て容量Cが調整されることとなるため、ウェブアプリケーションの応答性を一定レベル以上に保持することが可能となる。   According to the first embodiment described above, since the allocated capacity C is adjusted so that the cache hit rate H is maintained within a certain range between the lower limit threshold and the upper limit threshold, the responsiveness of the web application Can be maintained above a certain level.

[実施形態2]
実施形態2では、起動頻度が高いウェブアプリケーションほどキャッシュヒット率を維持するレベルが高くなるように、各ウェブアプリケーションの起動頻度に応じてキャッシュヒット率の維持レベルを再設定する形態を説明する。
[Embodiment 2]
In the second embodiment, a mode is described in which the cache hit rate maintenance level is reset according to the activation frequency of each web application so that the web application having a higher activation frequency has a higher level of maintaining the cache hit rate.

図4に示すように、実施形態2に係る通信システム1では、前述した図1の実施形態1に係る通信システムに対し、通信端末30が、さらに、起動頻度算出部39と閾値再設定部38とを備えることを特徴とする。   As shown in FIG. 4, in the communication system 1 according to the second embodiment, the communication terminal 30 further includes an activation frequency calculation unit 39 and a threshold resetting unit 38 as compared with the communication system according to the first embodiment in FIG. It is characterized by providing.

なお、実施形態2では、キャッシュヒット率を維持するレベルとして、所定の基準値を想定している。即ち、実施形態1で述べた下限閾値と上限閾値とが同じ値(所定の基準値)に設定された場合を想定している。そのため、閾値記憶部37は、キャッシュヒット率を維持すべきレベルに相当する所定の基準値をウェブアプリケーション毎に記憶している。   In the second embodiment, a predetermined reference value is assumed as a level for maintaining the cache hit rate. That is, it is assumed that the lower limit threshold and the upper limit threshold described in the first embodiment are set to the same value (predetermined reference value). Therefore, the threshold storage unit 37 stores a predetermined reference value corresponding to a level at which the cache hit rate should be maintained for each web application.

新たに通信端末30に設けられた起動頻度算出部39は、通信端末30において過去の所定期間内に起動されたさまざまなウェブアプリケーションについての起動状況を記録し、該起動状況に基づいて各ウェブアプリケーションの起動頻度を算出する。   The activation frequency calculation unit 39 newly provided in the communication terminal 30 records the activation status of various web applications activated in the past predetermined period in the communication terminal 30, and each web application is based on the activation status. Calculate the activation frequency of.

また、閾値再設定部38は、算出された起動頻度が高いウェブアプリケーションほど、キャッシュヒット率を維持すべき基準値が高くなるように、各ウェブアプリケーションの起動頻度に応じて、基準値をウェブアプリケーション毎に再設定する。   Further, the threshold resetting unit 38 sets the reference value according to the start frequency of each web application so that the reference value that should maintain the cache hit rate becomes higher as the calculated start frequency is higher. Reset every time.

他の構成部の機能は、実施形態1で述べた機能と同様なので、説明を省略する。   The functions of the other components are the same as the functions described in the first embodiment, and a description thereof will be omitted.

続いて、図5を用いて、通信端末30にて実行される閾値再設定処理について説明する。なお、図5では、ウェブアプリケーションを「アプリケーション」と略記している。   Subsequently, the threshold resetting process executed by the communication terminal 30 will be described with reference to FIG. In FIG. 5, the web application is abbreviated as “application”.

図5に示すように、起動頻度算出部39は、通信端末30において起動されたさまざまなウェブアプリケーションについての起動状況を記録する(ステップS21)。そして、ウェブアプリケーションの起動頻度を算出すべき所定タイミングが到来したか否かを監視する(ステップS22)。ここで、ウェブアプリケーションの起動頻度を算出すべき所定タイミングとしては、例えば、所定周期(例えば1日周期、1週間周期など)の算出タイミングが到来したときが挙げられる。   As illustrated in FIG. 5, the activation frequency calculation unit 39 records activation states for various web applications activated in the communication terminal 30 (step S <b> 21). And it is monitored whether the predetermined timing which should calculate the starting frequency of a web application has come (step S22). Here, examples of the predetermined timing at which the start frequency of the web application should be calculated include a time when a calculation timing of a predetermined cycle (for example, a daily cycle, a week cycle, etc.) has arrived.

起動頻度を算出すべき所定タイミングが到来したと判定されると、ステップS22で肯定判断され、以下のステップS23〜S24の処理が実行される。   If it is determined that the predetermined timing for calculating the activation frequency has arrived, an affirmative determination is made in step S22, and the following steps S23 to S24 are executed.

ステップS23では、起動頻度算出部39は、ステップS21で記録した所定周期の期間内におけるさまざまなウェブアプリケーションの起動状況に基づいて各ウェブアプリケーションの起動頻度を算出する。例えば、通信端末30において、所定周期の期間内にウェブアプリケーション1〜3が起動され、ウェブアプリケーション1の起動回数が6回、ウェブアプリケーション2の起動回数が3回、ウェブアプリケーション3の起動回数が1回であったとすると、起動頻度(ここでは一例としてウェブアプリケーション1〜3間の相対値とする)として、図6(a)に示すようにウェブアプリケーション1について「0.6」、ウェブアプリケーション2について「0.3」、ウェブアプリケーション3について「0.1」が算出される。なお、図6では、ウェブアプリケーションを「アプリ」又は「アプリケーション」と略記している。   In step S23, the activation frequency calculation unit 39 calculates the activation frequency of each web application based on the activation statuses of various web applications within the period of the predetermined period recorded in step S21. For example, in the communication terminal 30, the web applications 1 to 3 are activated within a predetermined period, the web application 1 is activated 6 times, the web application 2 is activated 3 times, and the web application 3 is activated 1 time. As shown in FIG. 6A, the activation frequency (in this example, the relative value between the web applications 1 to 3) is “0.6” for the web application 1 and “0.3” for the web application 2. “0.1” is calculated for the web application 3. In FIG. 6, the web application is abbreviated as “application” or “application”.

次のステップS24では、閾値再設定部38は、算出された起動頻度が高いウェブアプリケーションほど、キャッシュヒット率を維持すべき基準値が高くなるように、各ウェブアプリケーションの起動頻度に応じて、基準値をウェブアプリケーション毎に再設定する。例えば、基準値について、最小値が0.2で、最大値が0.8になるように再設定する場合、算出された起動頻度の最大値をfmax、算出された起動頻度の最小値をfmin、あるウェブアプリケーションの起動頻度をfとすると、当該ウェブアプリケーションについて再設定されるべき基準値は、以下の式(1)により求められる。
基準値=0.2+(0.8−0.2)×(f−fmin)/(fmax−fmin) …(1)
In the next step S24, the threshold resetting unit 38 sets the reference value according to the start frequency of each web application so that the reference value that should maintain the cache hit rate becomes higher as the calculated start frequency is higher. Reset the value for each web application. For example, when the reference value is reset so that the minimum value is 0.2 and the maximum value is 0.8, the maximum value of the calculated activation frequency is f max , and the minimum value of the calculated activation frequency is f min When the start frequency of the web application is f, the reference value to be reset for the web application is obtained by the following equation (1).
Reference value = 0.2 + (0.8−0.2) × (f−f min ) / (f max −f min ) (1)

図6(a)に示すようにウェブアプリケーション1の起動頻度が「0.6」、ウェブアプリケーション2の起動頻度が「0.3」、ウェブアプリケーション3の起動頻度が「0.1」である場合、式(1)により、基準値は、ウェブアプリケーション1について「0.8」、ウェブアプリケーション2について「0.44」、ウェブアプリケーション3について「0.2」が再設定される。   As shown in FIG. 6A, when the activation frequency of the web application 1 is “0.6”, the activation frequency of the web application 2 is “0.3”, and the activation frequency of the web application 3 is “0.1”, the equation (1) The reference values are reset to “0.8” for the web application 1, “0.44” for the web application 2, and “0.2” for the web application 3.

また、他の例として、図6(b)に示すようにウェブアプリケーション1の起動頻度が「0.5」、ウェブアプリケーション2の起動頻度が「0.3」、ウェブアプリケーション3の起動頻度が「0.2」である場合、式(1)により、基準値は、ウェブアプリケーション1について「0.8」、ウェブアプリケーション2について「0.4」、ウェブアプリケーション3について「0.2」が再設定される。   As another example, as shown in FIG. 6B, the activation frequency of the web application 1 is “0.5”, the activation frequency of the web application 2 is “0.3”, and the activation frequency of the web application 3 is “0.2”. In this case, the reference value is reset to “0.8” for the web application 1, “0.4” for the web application 2, and “0.2” for the web application 3 according to the equation (1).

以後、図5においてステップS21へ戻り、ステップS21〜S24の処理が繰り返し実行される。   Thereafter, the process returns to step S21 in FIG. 5 and the processes of steps S21 to S24 are repeatedly executed.

以上説明した実施形態2によれば、起動頻度が高いウェブアプリケーションほど基準値が高くなるように、ウェブアプリケーション各々の起動頻度に応じて基準値が再設定され、その後、再設定された基準値を用いてキャッシュメモリの割当て容量が調整されることとなる。そのため、個々のウェブアプリケーションの起動頻度に応じて適正なメモリ容量のキャッシュメモリを各ウェブアプリケーション実行時に割り当てることが可能となる。   According to the second embodiment described above, the reference value is reset according to the start frequency of each web application so that the reference value becomes higher as the web application has a higher start frequency. In this way, the allocated capacity of the cache memory is adjusted. For this reason, it is possible to allocate a cache memory having an appropriate memory capacity at the time of executing each web application in accordance with the activation frequency of each web application.

[実施形態3]
実施形態3では、起動頻度が高いウェブアプリケーションほどキャッシュメモリの割当て容量が大きくなるように、各ウェブアプリケーションの起動頻度に応じて、割当て容量を再設定する形態を説明する。
[Embodiment 3]
In the third embodiment, an embodiment will be described in which the allocated capacity is reset according to the activation frequency of each web application so that the cache memory has a larger allocated capacity as the web application has a higher activation frequency.

図7に示すように、実施形態3に係る通信システム1では、通信端末30の構成が、前述した実施形態1、2と異なる。即ち、実施形態3に係る通信端末30は、キャッシュメモリ31、キャッシュ制御部32、割当て容量記憶部34、割当て部35、起動頻度算出部39、および割当て容量再設定部33Xを備える。このうち、キャッシュメモリ31、キャッシュ制御部32、割当て容量記憶部34、および割当て部35は、実施形態1、2と同様であり、起動頻度算出部39は実施形態2と同様であるので、機能の説明を省略する。   As illustrated in FIG. 7, in the communication system 1 according to the third embodiment, the configuration of the communication terminal 30 is different from those of the first and second embodiments. That is, the communication terminal 30 according to the third embodiment includes a cache memory 31, a cache control unit 32, an allocated capacity storage unit 34, an allocation unit 35, an activation frequency calculation unit 39, and an allocated capacity resetting unit 33X. Among these, the cache memory 31, the cache control unit 32, the allocated capacity storage unit 34, and the allocation unit 35 are the same as those in the first and second embodiments, and the activation frequency calculation unit 39 is the same as that in the second embodiment. The description of is omitted.

新たに通信端末30に設けられた割当て容量再設定部33Xは、算出された起動頻度が高いウェブアプリケーションほど、キャッシュメモリの割当て容量が大きくなるように、個々のウェブアプリケーションの起動頻度に応じて、割当て容量をウェブアプリケーション毎に再設定する。   The allocation capacity resetting unit 33X newly provided in the communication terminal 30 is configured in accordance with the activation frequency of each web application so that the allocated capacity of the cache memory increases as the calculated activation frequency of the web application increases. Reset the allocated capacity for each web application.

続いて、図8を用いて、通信端末30にて実行される割当て容量再設定処理について説明する。なお、図8では、ウェブアプリケーションを「アプリケーション」と略記している。   Next, the allocated capacity resetting process executed by the communication terminal 30 will be described with reference to FIG. In FIG. 8, the web application is abbreviated as “application”.

図8に示すように、起動頻度算出部39は、通信端末30において起動されたさまざまなウェブアプリケーションについての起動状況を記録する(ステップS21)。そして、ウェブアプリケーションの起動頻度を算出すべき所定タイミングが到来したか否かを監視する(ステップS22)。ここで、ウェブアプリケーションの起動頻度を算出すべき所定タイミングとしては、例えば、所定周期(例えば1日周期、1週間周期など)の算出タイミングが到来したときが挙げられる。   As illustrated in FIG. 8, the activation frequency calculation unit 39 records activation states for various web applications activated in the communication terminal 30 (step S <b> 21). And it is monitored whether the predetermined timing which should calculate the starting frequency of a web application has come (step S22). Here, examples of the predetermined timing at which the start frequency of the web application should be calculated include a time when a calculation timing of a predetermined cycle (for example, a daily cycle, a week cycle, etc.) has arrived.

起動頻度を算出すべき所定タイミングが到来したと判定されると、ステップS22で肯定判断され、以下のステップS23、S25の処理が実行される。   If it is determined that the predetermined timing for calculating the activation frequency has arrived, an affirmative determination is made in step S22, and the following steps S23 and S25 are executed.

ステップS23では、起動頻度算出部39は、ステップS21で記録した所定周期の期間内におけるさまざまなウェブアプリケーションの起動状況に基づいて各ウェブアプリケーションの起動頻度を算出する。例えば、通信端末30において、所定周期の期間内にウェブアプリケーション1〜3が起動され、ウェブアプリケーション1の起動回数が6回、ウェブアプリケーション2の起動回数が3回、ウェブアプリケーション3の起動回数が1回であったとすると、起動頻度(ここでは一例としてウェブアプリケーション1〜3間の相対値とする)として、図6(a)に示すようにウェブアプリケーション1について「0.6」、ウェブアプリケーション2について「0.3」、ウェブアプリケーション3について「0.1」が算出される。   In step S23, the activation frequency calculation unit 39 calculates the activation frequency of each web application based on the activation statuses of various web applications within the period of the predetermined period recorded in step S21. For example, in the communication terminal 30, the web applications 1 to 3 are activated within a predetermined period, the web application 1 is activated 6 times, the web application 2 is activated 3 times, and the web application 3 is activated 1 time. As shown in FIG. 6A, the activation frequency (in this example, the relative value between the web applications 1 to 3) is “0.6” for the web application 1 and “0.3” for the web application 2. “0.1” is calculated for the web application 3.

次のステップS25では、割当て容量再設定部33Xは、算出された起動頻度が高いウェブアプリケーションほど、割当て容量が高くなるように、各ウェブアプリケーションの起動頻度に応じて、割当て容量をウェブアプリケーション毎に再設定する。例えば、まず、複数のウェブアプリケーションに対し再設定する割当て容量の相対的比率を求め、次に、当該時点で割当て可能な容量を、各ウェブアプリケーションの相対的比率に応じて各ウェブアプリケーションに配分することで、割当て容量をウェブアプリケーション毎に再設定してもよい。図6(a)に示すように、起動頻度が、ウェブアプリケーション1について「0.6」、ウェブアプリケーション2について「0.3」、ウェブアプリケーション3について「0.1」であった場合、当該時点で割当て可能な容量が、ウェブアプリケーション1〜3に対し6:3:1の比率で配分され、ウェブアプリケーション1〜3それぞれの割当て容量が再設定されることとなる。   In the next step S25, the allocated capacity resetting unit 33X sets the allocated capacity for each web application in accordance with the activation frequency of each web application so that the calculated capacity of the web application with a higher activation frequency is higher. Reset it. For example, first, the relative ratio of the allocated capacity to be reset for a plurality of web applications is obtained, and then the capacity that can be allocated at that time is allocated to each web application according to the relative ratio of each web application. Thus, the allocated capacity may be reset for each web application. As shown in FIG. 6A, when the activation frequency is “0.6” for the web application 1, “0.3” for the web application 2, and “0.1” for the web application 3, the capacity that can be allocated at that time is The web applications 1 to 3 are distributed at a ratio of 6: 3: 1, and the allocated capacities of the web applications 1 to 3 are reset.

以後、図8においてステップS21へ戻り、ステップS21〜S23、S25の処理が繰り返し実行される。   Thereafter, the process returns to step S21 in FIG. 8, and the processes of steps S21 to S23 and S25 are repeatedly executed.

以上説明した実施形態3によれば、起動頻度が高いウェブアプリケーションほど、キャッシュメモリの割当て容量が大きくなるように、各ウェブアプリケーションの起動頻度に応じて、各ウェブアプリケーションの割当て容量が再設定されるため、個々のウェブアプリケーションの起動頻度に応じて適正なメモリ容量のキャッシュメモリを各ウェブアプリケーション実行時に割り当てることが可能となる。   According to the third embodiment described above, the allocated capacity of each web application is reset according to the activation frequency of each web application so that the allocated capacity of the cache memory becomes larger as the web application has a higher activation frequency. Therefore, it becomes possible to allocate a cache memory having an appropriate memory capacity at the time of executing each web application according to the activation frequency of each web application.

1…通信システム、10…サーバ、11…受信部、12…送信部、13…ファイルデータベース、14…ファイル管理部、20…ネットワーク、30…通信端末、30A…CPU、30B…RAM、30C…ROM、30D…入力装置、30E…通信装置、30F…キャッシュメモリ、30G…出力装置、31…キャッシュメモリ、32…キャッシュ制御部、33…割当て容量調整部、33X…割当て容量再設定部、34…割当て容量記憶部、35…割当て部、36…ヒット率算出部、37…閾値記憶部、38…閾値再設定部、39…起動頻度算出部。   DESCRIPTION OF SYMBOLS 1 ... Communication system, 10 ... Server, 11 ... Reception part, 12 ... Transmission part, 13 ... File database, 14 ... File management part, 20 ... Network, 30 ... Communication terminal, 30A ... CPU, 30B ... RAM, 30C ... ROM , 30D ... input device, 30E ... communication device, 30F ... cache memory, 30G ... output device, 31 ... cache memory, 32 ... cache control unit, 33 ... allocation capacity adjustment unit, 33X ... allocation capacity resetting unit, 34 ... allocation Capacity storage unit, 35 ... allocation unit, 36 ... hit rate calculation unit, 37 ... threshold storage unit, 38 ... threshold resetting unit, 39 ... activation frequency calculation unit.

Claims (6)

キャッシュメモリと、
あるウェブアプリケーションの起動時に、当該ウェブアプリケーションのための所定のキャッシュメモリ割当て容量のキャッシュメモリを割り当てる割当て部と、
前記ウェブアプリケーションの実行中のキャッシュヒット状況を記録し、前記ウェブアプリケーションの実行終了時に、前記キャッシュヒット状況に基づいて前記ウェブアプリケーションの実行中におけるキャッシュヒット率を算出するヒット率算出部と、
算出されたキャッシュヒット率が、予め設定された下限閾値を下回る場合、前記ウェブアプリケーションのためのキャッシュメモリ割当て容量を増加させ、前記算出されたキャッシュヒット率が、前記下限閾値以上に予め設定された上限閾値を上回る場合、前記ウェブアプリケーションのためのキャッシュメモリ割当て容量を減少させることで、前記ウェブアプリケーションのためのキャッシュメモリ割当て容量を調整する割当て容量調整部と、
自通信端末における過去の所定期間内のウェブアプリケーション起動状況を記録し、該ウェブアプリケーション起動状況に基づいて前記所定期間内に起動されたウェブアプリケーション各々の起動頻度を算出する起動頻度算出部と、
算出された起動頻度が高いウェブアプリケーションほど、前記下限閾値および前記上限閾値が高くなるように、前記ウェブアプリケーション各々の起動頻度に応じて、前記下限閾値および前記上限閾値を再設定する閾値再設定部と、
を備え、
前記割当て部は、前記ウェブアプリケーションの次回の起動時に、前記調整後のキャッシュメモリ割当て容量のキャッシュメモリを割り当て、
前記割当て容量調整部は、あるウェブアプリケーションに対し再設定された前記下限閾値および前記上限閾値を用いて、当該ウェブアプリケーションのためのキャッシュメモリ割当て容量を調整する、
ことを特徴とする通信端末。
Cache memory,
An allocation unit that allocates a cache memory having a predetermined cache memory allocation capacity for a web application when a web application is started;
A hit rate calculation unit that records a cache hit status during execution of the web application and calculates a cache hit rate during execution of the web application based on the cache hit status at the end of execution of the web application;
When the calculated cache hit rate falls below a preset lower threshold, the cache memory allocation capacity for the web application is increased, and the calculated cache hit rate is preset to be equal to or higher than the lower threshold. An allocation capacity adjustment unit that adjusts a cache memory allocation capacity for the web application by decreasing a cache memory allocation capacity for the web application when exceeding an upper threshold;
An activation frequency calculating unit that records a web application activation status within a predetermined period in the past in the communication terminal, and calculates an activation frequency of each web application activated within the predetermined period based on the web application activation status;
A threshold resetting unit that resets the lower limit threshold and the upper limit threshold according to the startup frequency of each of the web applications so that the lower limit threshold and the upper limit threshold are higher for a web application having a higher calculated startup frequency. When,
With
The allocation unit is the next startup of the web application, the cache memory of the cache memory allocation capacity after the adjustment allocation, the
The allocated capacity adjustment unit adjusts a cache memory allocated capacity for the web application using the lower threshold and the upper threshold reset for a web application.
A communication terminal characterized by that.
前記下限閾値と前記上限閾値とが同じ値である、
ことを特徴とする請求項1に記載の通信端末。
The lower limit threshold and the upper limit threshold are the same value,
The communication terminal according to claim 1 .
あるウェブアプリケーションの起動時に、当該ウェブアプリケーションのための所定のキャッシュメモリ割当て容量のキャッシュメモリを割り当てて、当該ウェブアプリケーションを実行する通信端末であって、
前記通信端末における過去の所定期間内のウェブアプリケーション起動状況を記録し、該ウェブアプリケーション起動状況に基づいて前記所定期間内に起動されたウェブアプリケーション各々の起動頻度を算出する起動頻度算出部と、
算出された起動頻度が高いウェブアプリケーションほど、割り当てられるキャッシュメモリ割当て容量が大きくなるように、前記ウェブアプリケーション各々の起動頻度に応じて、前記ウェブアプリケーション各々のためのキャッシュメモリ割当て容量を再設定する割当て容量再設定部と、
を備える通信端末。
A communication terminal that executes a web application by allocating a cache memory having a predetermined cache memory allocation capacity for the web application at the time of starting a web application,
An activation frequency calculation unit that records a web application activation status within a predetermined period in the past in the communication terminal, and calculates an activation frequency of each web application activated within the predetermined period based on the web application activation status;
Allocation for resetting the cache memory allocation capacity for each of the web applications in accordance with the activation frequency of each of the web applications so that the calculated cache application has a higher cache memory allocation capacity. A capacity resetting unit;
A communication terminal comprising:
キャッシュメモリを備える通信端末にて実行される通信制御方法であって、
あるウェブアプリケーションの起動時に、当該ウェブアプリケーションのための所定のキャッシュメモリ割当て容量のキャッシュメモリを割り当てる割当てステップと、
前記ウェブアプリケーションの実行中のキャッシュヒット状況を記録し、前記ウェブアプリケーションの実行終了時に、前記キャッシュヒット状況に基づいて前記ウェブアプリケーションの実行中におけるキャッシュヒット率を算出するヒット率算出ステップと、
算出されたキャッシュヒット率が、予め設定された下限閾値を下回る場合、前記ウェブアプリケーションのためのキャッシュメモリ割当て容量を増加させ、前記算出されたキャッシュヒット率が、前記下限閾値以上に予め設定された上限閾値を上回る場合、前記ウェブアプリケーションのためのキャッシュメモリ割当て容量を減少させることで、前記ウェブアプリケーションのためのキャッシュメモリ割当て容量を調整する割当て容量調整ステップと、
前記通信端末における過去の所定期間内のウェブアプリケーション起動状況を記録し、該ウェブアプリケーション起動状況に基づいて前記所定期間内に起動されたウェブアプリケーション各々の起動頻度を算出する起動頻度算出ステップと、
算出された起動頻度が高いウェブアプリケーションほど、前記下限閾値および前記上限閾値が高くなるように、前記ウェブアプリケーション各々の起動頻度に応じて、前記下限閾値および前記上限閾値を再設定する閾値再設定ステップと、
を備え、
前記割当てステップでは、前記ウェブアプリケーションの次回の起動時に、前記調整後のキャッシュメモリ割当て容量のキャッシュメモリを割り当て
前記割当て容量調整ステップでは、あるウェブアプリケーションに対し再設定された前記下限閾値および前記上限閾値を用いて、当該ウェブアプリケーションのためのキャッシュメモリ割当て容量を調整する、
ことを特徴とする通信制御方法。
A communication control method executed by a communication terminal including a cache memory,
An allocation step of allocating a cache memory having a predetermined cache memory allocation capacity for the web application at the time of starting the web application;
A hit rate calculation step of recording a cache hit status during execution of the web application and calculating a cache hit rate during execution of the web application based on the cache hit status at the end of execution of the web application;
When the calculated cache hit rate falls below a preset lower threshold, the cache memory allocation capacity for the web application is increased, and the calculated cache hit rate is preset to be equal to or higher than the lower threshold. An allocation capacity adjustment step of adjusting a cache memory allocation capacity for the web application by decreasing a cache memory allocation capacity for the web application when exceeding an upper threshold;
An activation frequency calculation step of recording a web application activation status within a predetermined period in the past in the communication terminal, and calculating an activation frequency of each web application activated within the predetermined period based on the web application activation status;
A threshold resetting step for resetting the lower threshold and the upper threshold according to the activation frequency of each of the web applications so that the lower threshold and the upper threshold are higher for the web application having a higher calculated activation frequency. When,
With
In the allocation step, at the next startup of the web application, the cache memory having the adjusted cache memory allocation capacity is allocated ,
In the allocated capacity adjustment step, the cache memory allocated capacity for the web application is adjusted using the lower threshold and the upper threshold reset for the certain web application.
A communication control method characterized by the above.
前記下限閾値と前記上限閾値とが同じ値である、
ことを特徴とする請求項4に記載の通信制御方法。
The lower limit threshold and the upper limit threshold are the same value,
The communication control method according to claim 4 .
あるウェブアプリケーションの起動時に当該ウェブアプリケーションのための所定のキャッシュメモリ割当て容量のキャッシュメモリを割り当てて、当該ウェブアプリケーションを実行する通信端末、にて実行される通信制御方法であって、
前記通信端末における過去の所定期間内のウェブアプリケーション起動状況を記録し、該ウェブアプリケーション起動状況に基づいて前記所定期間内に起動されたウェブアプリケーション各々の起動頻度を算出する起動頻度算出ステップと、
算出された起動頻度が高いウェブアプリケーションほど、割り当てられるキャッシュメモリ割当て容量が大きくなるように、前記ウェブアプリケーション各々の起動頻度に応じて、前記ウェブアプリケーション各々のためのキャッシュメモリ割当て容量を再設定する割当て容量再設定ステップと、
を備える通信制御方法。
A communication control method that is executed by a communication terminal that executes a web application by allocating a cache memory having a predetermined cache memory allocation capacity for the web application when a certain web application is started,
An activation frequency calculation step of recording a web application activation status within a predetermined period in the past in the communication terminal, and calculating an activation frequency of each web application activated within the predetermined period based on the web application activation status;
Allocation for resetting the cache memory allocation capacity for each of the web applications in accordance with the activation frequency of each of the web applications so that the calculated cache application has a higher cache memory allocation capacity. A capacity reset step;
A communication control method comprising:
JP2009087435A 2009-03-31 2009-03-31 Communication terminal and communication control method Expired - Fee Related JP5199165B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009087435A JP5199165B2 (en) 2009-03-31 2009-03-31 Communication terminal and communication control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009087435A JP5199165B2 (en) 2009-03-31 2009-03-31 Communication terminal and communication control method

Publications (2)

Publication Number Publication Date
JP2010238112A JP2010238112A (en) 2010-10-21
JP5199165B2 true JP5199165B2 (en) 2013-05-15

Family

ID=43092352

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009087435A Expired - Fee Related JP5199165B2 (en) 2009-03-31 2009-03-31 Communication terminal and communication control method

Country Status (1)

Country Link
JP (1) JP5199165B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102292471B1 (en) * 2014-03-04 2021-08-23 모보파일스 인코포레이티드 디비에이 모보라이즈 Dynamic cache allocation and network management
US11748269B2 (en) 2019-07-29 2023-09-05 Nippon Telegraph And Telephone Corporation Cache tuning device, cache tuning method, and cache tuning program

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0391871A3 (en) * 1989-04-03 1992-05-27 International Business Machines Corporation Method for managing a prioritized cache
JPH05225060A (en) * 1992-02-14 1993-09-03 Nec Corp Information processor
JPH10301831A (en) * 1997-04-22 1998-11-13 Mitsubishi Electric Corp Computer system
JPH1173361A (en) * 1997-08-29 1999-03-16 Sharp Corp Distributed file system and broadcast server device and client device of the system
JP2000155713A (en) * 1998-11-24 2000-06-06 Sony Corp Cache size control device
JP3687587B2 (en) * 2001-03-27 2005-08-24 ソニー株式会社 Data processing system, data processing method, information processing apparatus, information processing method, and computer software
JP2003281021A (en) * 2002-03-25 2003-10-03 Alps System Integration Co Ltd URL information sharing system using proxy cache or proxy log
JP4144005B2 (en) * 2003-11-17 2008-09-03 インターナショナル・ビジネス・マシーンズ・コーポレーション Hit rate estimation device, hit rate estimation method, hit rate estimation program, and recording medium
JP4631301B2 (en) * 2004-03-31 2011-02-16 株式会社日立製作所 Cache management method for storage device
JP4332126B2 (en) * 2005-03-24 2009-09-16 富士通株式会社 Caching control program, caching control device, and caching control method
US20070079103A1 (en) * 2005-10-05 2007-04-05 Yasuyuki Mimatsu Method for resource management in a logically partitioned storage system

Also Published As

Publication number Publication date
JP2010238112A (en) 2010-10-21

Similar Documents

Publication Publication Date Title
US20230283681A1 (en) System and method for throttling service requests having non-uniform workloads
US8484650B2 (en) Resource management system, resource information providing method and program for providing resource information relating to a plurality of resources
CN109361733B (en) Service quality control method and device
JP6972714B2 (en) Data acquisition programs, equipment, and methods
CN105897484A (en) Traffic management device, server and method
CN116708315B (en) Flow rate limiting method and device, electronic equipment and storage medium
CN111158892A (en) Task queue generating method, device and equipment
CN112165436A (en) Flow control method, device and system
CN111277640A (en) User request processing method, device, system, computer equipment and storage medium
CN110795041A (en) Quota method, quota device, server and storage medium of distributed file system
JP2009200947A (en) Packet transmitter, packet transmission method, and packet transmission program
JP5199165B2 (en) Communication terminal and communication control method
CN111291252B (en) Method and device for adjusting query rate per second, electronic equipment and storage medium
CN111064700B (en) Cloud game download method, device and system
CN115102958A (en) A server node scheduling method, device, device and storage medium
CN118708135B (en) Storage space adjusting method and device, storage medium and electronic equipment
JP7014233B2 (en) Information processing equipment, control methods, and programs
JP5997659B2 (en) Distributed processing system and distributed processing method
JP5351839B2 (en) Order processing method, program, and network system
CN110908604A (en) A request processing delay adjustment method, device, electronic device and storage medium
JP2009163440A (en) Load distribution method, load distribution system, load distribution server and load distribution program
JP2014225109A (en) Load distributing device, and program
CN114338683A (en) Scheduling request processing method and device, storage medium and electronic equipment
JP2021196808A (en) Container management device, container management method and program
CN109981484B (en) A monitoring system, monitoring method and monitoring center

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110826

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121026

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121030

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121204

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130122

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130207

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20160215

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5199165

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees