Arithmetic apparatus, prefetch control method, and prefetch control program
The arithmetic device with a primary and secondary cache, combined with a prefetch control unit and data prediction, addresses the inefficiencies in random access by enhancing hit rates through targeted prefetching.
Patent Information
- Application Number
- JP2023047479
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-10-04
- Estimated Expiration
- 2043-03-24
AI Technical Summary
Existing prefetch technologies fail to improve the hit rate in random access scenarios where processor access requests are made to random addresses, leading to inefficiencies in data storage in cache memory.
An arithmetic device with a first storage unit (primary cache) and a second storage unit (secondary cache) is employed, along with a prefetch control unit that utilizes a table to record next data information and execute prefetch only when valid data is predicted, improving hit rates by anticipating data requests based on previous access patterns.
The solution enhances the hit rate in random access scenarios by effectively prefetching data that is likely to be requested next, thereby reducing unnecessary prefetching and improving data access efficiency.
Smart Images

Figure 2024136382000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a computing device, a prefetch control method, and a prefetch control program. [Background technology]
[0002] A prefetch technique is known that stores data from a main memory in a cache memory in advance. Patent Document 1 describes a technique that performs prefetching by using the difference between the address of data requested from a processor to a cache memory and the address of data previously requested from the processor to the cache memory. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Japanese Patent Application Publication No. 11-167520 Summary of the Invention [Problem to be solved by the invention]
[0004] However, when a processor does not make access requests in order with a fixed address difference, that is, when a random access is made by making access requests to random addresses, the prefetch technology described in Patent Document 1 does not improve the hit rate, which is the rate at which data requested by the processor is stored in the cache memory. Therefore, a technology that can improve the hit rate in random access has been desired. [Means for solving the problem]
[0005] According to one embodiment of the present disclosure, a calculation device (100) is provided. The calculation device includes a second storage unit (14), a first storage unit (13) in which some data of data stored in the second storage unit is stored and which has a smaller data capacity than the second storage unit, a calculation unit (11), a control unit (12) that acquires first data requested by the calculation unit from the first storage unit and acquires the first data from the second storage unit when the first data is not stored in the first storage unit, a table (15) that records next data information indicating data acquired immediately after the control unit acquires each data stored in the second storage unit, and a prefetch control unit (31) that, when the control unit acquires the first data, executes a prefetch by using the table to store in advance in the first storage unit second data, which is data requested by the control unit immediately after the control unit previously acquired the first data.
[0006] According to this form of arithmetic device, the second data, which is the data requested immediately after the previous arithmetic unit requested the first data, is prefetched, thereby improving the hit rate when a data request pattern of randomly accessing two or more data is repeated. [Brief description of the drawings]
[0007] [Figure 1] FIG. 2 is an explanatory diagram showing an outline of the configuration of a calculation device. [Diagram 2] 13 is a flowchart showing an example of a prefetch control process. [Diagram 3] 13 is a flowchart showing an example of details of a table creation process. [Figure 4] 11 is a flowchart showing an example of details of a prefetch process. [Diagram 5] FIG. 11 is an explanatory diagram of the first storage unit etc. immediately after step S140. [Figure 6] FIG. 11 is an explanatory diagram of a first storage unit and the like in step S170. [Figure 7] FIG. 13 is another explanatory diagram of the first storage unit etc. immediately after step S140. [Figure 8]FIG. 13 is an explanatory diagram of the first storage unit etc. immediately after step S250. [Figure 9] FIG. 11 is an explanatory diagram of the first storage unit etc. immediately after step S170. [Figure 10] 13 is an explanatory diagram of the first storage unit etc. immediately after the prefetch control process is completed. FIG. [Figure 11] FIG. 13 is an explanatory diagram of the first storage unit etc. immediately after step S125. [Figure 12] FIG. 13 is an explanatory diagram of the first storage unit etc. immediately after step S360. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] A. First embodiment: As shown in FIG. 1, the arithmetic device 100 includes a CPU 10, a memory 20, and a prefetch control circuit unit 30. In this embodiment, the arithmetic device 100 is a device that performs arithmetic processing. The arithmetic device 100 may be implemented on a cloud. The CPU 10 executes a program installed in the memory 20 to realize the functions of the arithmetic unit 11 and the control unit 12, and performs arithmetic processing using data stored in the first storage unit 13, the second storage unit 14, and the memory 20. The prefetch control circuit unit 30 is composed of a microcomputer configured with a CPU, RAM, and ROM, and realizes the functions of the prefetch control unit 31 by the microcomputer executing a program previously installed in the RAM, ROM, and memory, and manages the first storage unit 13, the second storage unit 14, and the memory 20.
[0009] The calculation unit 11 performs calculations for input instructions using data, and performs calculation processing to output the calculation results. The calculation unit 11 requests data to be used in the calculation processing from the control unit 12. The calculation processing is also called a "calculation step."
[0010] The control unit 12 acquires data requested by the calculation unit 11 from the first storage unit 13, the second storage unit 14, and the memory 20. More specifically, the control unit 12 first acquires data from the first storage unit 13. If the data requested by the calculation unit 11 is not stored in the first storage unit 13, the control unit 12 acquires data from the second storage unit 14. This series of processes is also referred to as an "acquisition process." If the data requested by the calculation unit 11 is not stored in the second storage unit 14, the control unit 12 acquires data from the memory 20.
[0011] The first storage unit 13 and the second storage unit 14 are cache memories that store data used by the calculation unit 11 for calculation processing. The first storage unit 13 has a shorter access time when data is requested from the calculation unit 11 than the second storage unit 14, and has a smaller data capacity than the second storage unit 14. The first storage unit 13 is also called a primary cache memory or an L1 cache. The second storage unit 14 is also called a secondary cache memory or an L2 cache. In addition, the first storage unit 13 stores a portion of the data stored in the second storage unit 14. That is, the second storage unit 14 is an inclusion cache that stores all of the data stored in the first storage unit 13. The second storage unit 14 has a table 15.
[0012] Table 15 records next data information associated with each data stored in second storage unit 14. "Next data information" is information indicating data acquired immediately after control unit 12 acquired each data. In other words, it is information indicating data requested immediately after calculation unit 11 requested each data. In this embodiment, table 15 records first validity information associated with the next data information, indicating whether the accuracy of each next data information is equal to or greater than a predetermined threshold. If the accuracy of the next data information is equal to or greater than the threshold, "valid" is recorded as the first validity information. If the accuracy of the next data information is less than the threshold, "invalid" is recorded as the first validity information.
[0013] In this embodiment, in a case where the first data requested by the calculation unit 11 is not stored in the second storage unit 14, and the calculation unit 11 requests the first data again immediately after the first data is requested, the first validity information is recorded to indicate that the accuracy of the next data information associated with the first data is less than a threshold value. That is, "invalid" is recorded as the first validity information.
[0014] Furthermore, in this embodiment, the table 15 records a current index CAI indicating the index of a line in the second storage unit 14 where the data requested by the calculation unit 11 is stored, a previous index LAI indicating the index of a line in the second storage unit 14 where the data previously requested by the calculation unit 11 is stored, and second validity information indicating whether the previous index LAI is valid. When the table 15 is initialized, "invalid" is recorded as the second information.
[0015] The prefetch control unit 31 controls prefetching using the table 15. When first data, which is data requested by the calculation unit 11, is stored in the second storage unit 14, the prefetch control unit 31 executes prefetching to store in advance, in the first storage unit 13, second data, which is data requested by the calculation unit immediately after the previous calculation unit requested the first data, prior to a request from the calculation unit 11.
[0016] In this embodiment, the prefetch control unit 31 does not execute prefetch when the next data information associated with the data acquired by the control unit 12 is not recorded in the table 15. Moreover, the prefetch control unit 31 executes prefetch when the validity information associated with the first data indicates validity.
[0017] 2 is a process for executing a prefetch in accordance with the control of the prefetch control unit 31. This process is repeatedly executed when the arithmetic unit 11 executes arithmetic processing and requests data.
[0018] In step S100, the arithmetic device 100 determines whether or not the first data, which is the data requested by the arithmetic unit 11, is stored in the first storage unit 13. If the first data is stored in the first storage unit 13, the arithmetic device 100 proceeds to processing in step S145. On the other hand, if the first data is not stored in the first storage unit 13, the arithmetic device 100 proceeds to processing in step S110.
[0019] In step S110, the arithmetic device 100 determines whether or not the first data is stored in the second storage unit 14. If the first data is stored in the second storage unit 14, the arithmetic device 100 proceeds to processing in step S125. On the other hand, if the first data is not stored in the second storage unit 14, the arithmetic device 100 proceeds to processing in step S120.
[0020] In step 120, the arithmetic device 100 stores the first data acquired from the memory 20 in the first storage unit 13.
[0021] In step 130, the arithmetic device 100 stores the first data acquired from the memory 20 in the second storage unit 14. This step is also referred to as a "second storage step." Note that the order of steps S120 and S130 is not limited to this, and they can be performed in any order, or in parallel.
[0022] In step S140, the calculation device 100 records, in a current index CAI, the index of the line in the second storage unit 14 in which the data was stored in step S130.
[0023] In step S150, the calculation device 100 creates the table 15. This step is also called a “table creation step.” The creation of the table 15 will be described in detail later.
[0024] In step S160, the calculation device 100 judges whether the calculation process of the calculation unit 11 has been completed. If the calculation process of the calculation unit 11 has been completed, that is, if the calculation unit 11 does not request data, the prefetch process is terminated. On the other hand, if the calculation process of the calculation unit 11 has not been completed, that is, if the calculation unit 11 requests data, the calculation device 100 records the previous index LAI in step S170 and returns to the process of step S100. In other words, the calculation device 100 repeats the processes of steps S100 to S170 until the calculation process of the calculation unit 11 has been completed.
[0025] In step S125, the arithmetic device 100 stores the first data acquired from the second storage unit 14 in the first storage unit 13. Note that steps S120 and S125 are collectively referred to as a "first storage step."
[0026] In step S145, the calculation device 100 records, in the current index CAI, the index of the line in the second storage unit 14 in which the data requested by the calculation unit 11 is stored.
[0027] The arithmetic device 100 executes prefetching in step S155. This step is also referred to as a "prefetching step." Details of prefetching will be described later. After the process of step S155, the arithmetic device 100 proceeds to the process of step S160.
[0028] The processing of the table creation step shown in FIG. 3 is a series of processing steps in which the arithmetic device 100 creates the table 15 in step S150 shown in FIG. 2. In step S200, the arithmetic device 100 determines whether the second validity information is "valid" and the current index CAI is recorded in the next data information. If the second validity information is "valid" and the current index CAI is recorded in the next data information, the arithmetic device 100 proceeds to processing in step S210. On the other hand, if the second validity information is "invalid" or the current index CAI is not recorded in the next data information, the arithmetic device 100 proceeds to processing in step S220.
[0029] In step S210, the arithmetic device 100 invalidates the first validity information of the index in which the current index CAI is recorded in the next data information in the table 15. The index in which the current index CAI is recorded in the next data information in the table 15 is also referred to as a reference index RI.
[0030] In step S220, the arithmetic device 100 records "invalid" in the first validity information of the current index CAI in the next data information. Note that steps S210 and S220 are not limited to this order, and may be performed in any order, or may be performed in parallel.
[0031] In step S230, the arithmetic device 100 determines whether the second information indicates validity. If the second validity information indicates validity, the arithmetic device 100 proceeds to processing in step S240. On the other hand, if the second validity information indicates invalidity, the arithmetic device 100 ends the table creation processing.
[0032] In step S240, the calculation device 100 obtains the index recorded in the next data information of the previous index LAI in the table 15. That is, the calculation device 100 obtains the index of the line in the second storage unit 14 in which the data requested immediately before the calculation unit 11 requests the first data is stored. The index recorded in the next data information of the previous index LAI in the table 15 is also referred to as a past index PAI.
[0033] In step S250, the arithmetic device 100 records the current index CAI in the next data information of the past index PAI obtained in step S240 in the table 15.
[0034] In step S260, the arithmetic device 100 records "valid" in the first validity information of the past index PAI acquired in step S240 in the table 15. Note that the order of steps S250 and S260 is not limited to this, and they can be performed in any order, or in parallel.
[0035] The prefetch process shown in FIG. 4 is a series of steps in which the arithmetic device 100 executes prefetching in step S155 shown in FIG.
[0036] In step S300, the arithmetic device 100 determines whether the accuracy of the first valid information of the current index CAI in the table 15 is equal to or greater than a threshold. If the accuracy of the first valid information is equal to or greater than the threshold, i.e., if the first valid information indicates "valid", the arithmetic device 100 proceeds to processing in step S310. On the other hand, if the accuracy of the first valid information is less than the threshold, i.e., if the first valid information indicates "invalid", the arithmetic device 100 proceeds to processing in step S330.
[0037] In step S310, the calculation device 100 obtains the index stored in the next data information of the current index CAI in the table 15. That is, the calculation device 100 obtains the index of the line in which the data requested immediately after the calculation unit 11 previously requested the first data is stored. The index stored in the next data information of the current index CAI in the table 15 is also referred to as the next index NAI.
[0038] In step S320, the calculation device 100 stores the data of the line of the next index NAI acquired in step S320 in the second storage unit 14 in the first storage unit 13. That is, prefetching is performed.
[0039] In step S330, the arithmetic device 100 determines whether the current index CAI and the previous index LAI are the same. If they are not the same, that is, if the arithmetic device 100 has not continuously requested the same data, the arithmetic device 100 proceeds to the process of step S340. On the other hand, if they are the same, that is, if the arithmetic device 100 has continuously requested the same data, the arithmetic device 100 ends the prefetch process.
[0040] The arithmetic device 100 acquires a past index PAI, which is an index recorded in the data information following the previous index LAI in the table 15, in step S340.
[0041] In step S350, the calculation device 100 records the current index CAI in the next data information of the index in the table 15 acquired in step S340.
[0042] In step S360, the arithmetic device 100 records "valid" in the first validity information of the past index PAI acquired in step S340 in the table 15. Note that the order of steps S350 and S360 is not limited to this, and they can be performed in any order, or may be performed in parallel.
[0043] The first storage unit 13, the second storage unit 14, and the table 15 shown in FIG. 5 to FIG. 12 are explanatory diagrams of each step of the prefetch control process. In this embodiment, the first storage unit 13 and the second storage unit 14 store data of four consecutive addresses from the address of the data requested by the arithmetic unit 11 in one line. In FIG. 5 to FIG. 12, the data stored in the first storage unit 13 and the second storage unit 14 is represented by the address at which each data is stored in the memory 20. In this embodiment, the first storage unit 13 and the second storage unit 14 store data in a FIFO (First In First Out) manner. More specifically, when new data is stored in the first storage unit 13 and the second storage unit 14, the new data is overwritten on the oldest data in each cache.
[0044] In the following, a case will be described as an example in which the addresses of data requested by the calculation unit 11 are eight in the order of "0x0000, 0x0034, 0x0010, 0x0066, 0x0008, 0x000C, 0x0028, 0x00CC" when the first storage unit 13, the second storage unit 14, and the table 15 are initialized. The first storage unit 13, the second storage unit 14, and the table 15 are initialized when the calculation device 100 is started up or when an instruction to empty the memory 20 is given. Furthermore, when the table 15 is initialized, the second validity information is "invalid."
[0045] The first storage unit 13, the second storage unit 14, and the table 15 shown in FIG. 5 show the state immediately after step S140 (see FIG. 2). In the line of index "0" of the first storage unit 13, data of "0x0000" is stored in step S120. Since the prefetch control process is executed in a state in which the table 15 is initialized, the next data information associated with "0x0000" is not recorded in the table 15, and the prefetch control unit 31 does not execute prefetch. In the line of index "0" of the second storage unit 14, data of "0x0000" is stored in step S130. In the current index CAI of the table 15, "0", which is the index of the line in which the data of "0x0000" in the second storage unit 14 is stored in step S130, is recorded in step S140.
[0046] As shown in FIG. 6, in step S170 (see FIG. 2), "0", which is the index recorded in the current index CAI, is recorded in the previous index LAI, and "valid" is recorded in the second validity information.
[0047] Subsequently, since the data of the address "0x0034" requested by the calculation unit 11 is not hit, the calculation device 100 proceeds to the process of step S120. FIG. 7 shows the first storage unit 13, the second storage unit 14, and the table 15 immediately after step S140 (see FIG. 2). In the line of index "1" of the first storage unit 13, data of the address "0x0034" is stored in step S120. The next data information associated with "0x0034" is not recorded in the table 15, and the prefetch control unit 31 does not execute prefetch. In the line of index "1" of the second storage unit 14, data of the address "0x0034" is stored in step S130. In the current index CAI of the table 15, "1" is recorded in step S140, which is the index of the line in which the data of the address "0x0034" in the second storage unit 14 is stored in step S130.
[0048] Since the second validity information indicates validity, the calculation device 100 proceeds to the process of step S240. As shown in Fig. 8, in step S240 (see Fig. 3), the index "1" of the current index CAI is recorded in the next data information of the index "0" of the previous index LAI in the table 15, and in step S250, "valid" is recorded in the first validity information of the index "0" of the previous index LAI in the table 15.
[0049] As shown in FIG. 9, in step S170 (see FIG. 2), "1", which is the index recorded in the current index CAI, is recorded in the previous index LAI, and "valid" is recorded in the second validity information.
[0050] When the calculation unit 11 finishes the calculation process and the prefetch control process ends, more specifically, when the calculation unit 11 finishes requesting the data of "0x001C", data is stored in the first storage unit 13, the second storage unit 14, and the table 15 as shown in Fig. 10. The second storage unit 14 stores data of "0x0000, 0x0034, 0x0010, 0x0066, 0x0008, 0x000C, 0x0028, 0x00CC" in this order. The first storage unit 13 stores data of "0x0008, 0x000C, 0x0028, 0x00CC", the addresses of which are the data requested by the calculation unit 11, in this order.
[0051] Again, when the address of the data requested by the calculation unit 11 is "0x0000, 0x0034, 0x0010, 0x0066, 0x0008, 0x000C, 0x0028, 0x00CC", the data of "0x0000" requested by the calculation unit 11 is not stored in the first storage unit 13 but is stored in the second storage unit 14. Therefore, the calculation device 100 proceeds to the process of step S125 (see FIG. 2), obtains the data of "0x0000" from the second storage unit 14, and stores it in the first storage unit 13. As shown in FIG. 11, the data of "0x0000, 0x0001, 0x0002, 0x0003" are stored in the line of index "0" of the first storage unit 13.
[0052] In step S310 (see FIG. 4), the arithmetic device 100 obtains "1" which is the next data information of "0" which is the index of the current index CAI in the table 15, and in step S320, prefetches "0x0034, 0x0035, 0x0036, 0x0037" which is the data of index "1" in the second storage unit 14.
[0053] 12, data "0x0034, 0x0035, 0x0036, 0x0037" are stored in the line of index "1" in the first storage unit 13 immediately after step S360. Also, "0" is recorded in the next data information of index "7" in table 15, and "valid" is recorded in the first validity information.
[0054] The data "0x0034" that is subsequently requested by the processor 11 has already been prefetched into the first storage unit 13. Thereafter, the data "0x0010, 0x0066, 0x0008, 0x000C, 0x0028, 0x00CC" are prefetched prior to requests from the processor 11.
[0055] According to the arithmetic device 100 of the present embodiment described above, the prefetch control unit 31 prefetches the second data, which is the data requested immediately after the previous arithmetic unit requested the first data. Therefore, when a data request pattern of randomly accessing two or more data is repeated, the hit rate can be improved.
[0056] Furthermore, the prefetch control unit 31 does not execute prefetching if the next data information associated with the data acquired by the control unit 12 is not recorded in the table 15. Therefore, it is possible to prevent unnecessary prefetching.
[0057] Moreover, the prefetch control unit 31 performs prefetching when the next data information is valid. More specifically, the prefetch control unit 31 performs prefetching in step S320 when the first validity information of the current index CAI in the table 15 indicates validity in step S300. Therefore, unnecessary prefetching can be suppressed.
[0058] Furthermore, when the calculation unit 11 continuously requests data that is not stored in the second storage unit 14, the first validity information records the next data information of the data as invalid in the table 15. Therefore, it is possible to prevent unnecessary prefetching.
[0059] B. Other embodiments: (B1) In the above-described embodiment, the first storage unit 13 is a primary cache memory, and the second storage unit 14 is a secondary cache memory. This is not limiting, and it is sufficient that the first storage unit 13 is a higher-level storage unit than the second storage unit 14. For example, the first storage unit 13 may be a secondary cache memory, and the second storage unit 14 may be a tertiary cache memory. Also, the first storage unit 13 may be a secondary cache memory, and the second storage unit 14 may be a main memory, i.e., memory 20.
[0060] (B2) In the above-described embodiment, the table 15 is stored in the second storage unit 14. However, the present invention is not limited to this, and the table 15 may be stored in a storage area that the prefetch control circuit unit 30 has.
[0061] (B3) In the above-described embodiment, the table 15 stores the first validity information. However, the present invention is not limited to this, and the table 15 may omit the first validity information. In this case, when the first data is stored in the second storage unit 14, the prefetch control unit 31 always stores the second data associated with the first data in advance in the first storage unit 13.
[0062] (B4) In the above-described embodiment, the prefetch control unit 31 does not execute prefetching when the next data information associated with the data acquired by the control unit 12 is not recorded in the table 15. Without being limited to this, the prefetch control unit 31 may execute prefetching even when the next data information associated with the data acquired by the control unit 12 is not recorded in the table 15. For example, when the next data information associated with the data acquired by the control unit 12 is not recorded in the table 15, the prefetch control unit 31 may use a well-known prefetch technique to store any data in advance in the first storage unit 13.
[0063] (B5) In the above-described embodiment, the first validity information is recorded to indicate that the next data information associated with the first data is invalid when the arithmetic unit 11 requests the first data again immediately after the first data is not stored in the second storage unit 14. Not limited to this, for example, when data is stored in the second storage unit 14 randomly or when data in the second storage unit 14 is rewritten by another arithmetic process, the first validity information associated with the next data information in which the index of the rewritten line was recorded as the next data information may be recorded to indicate invalidity. For example, the control unit 12 determines whether the data is stored in the second storage unit 14 due to a data request in the arithmetic process being executed by the arithmetic unit 11. The first validity information is determined to be valid or invalid depending on the result of this determination, and is recorded.
[0064] The present disclosure is not limited to the above-mentioned embodiment, and can be realized in various configurations without departing from the spirit of the present disclosure. For example, the technical features in the embodiments corresponding to the technical features in each form described in the Summary of the Invention column can be appropriately replaced or combined in order to solve the above-mentioned problems or to achieve some or all of the above-mentioned effects. Furthermore, if the technical feature is not described as essential in this specification, it can be appropriately deleted.
[0065] The prefetch control circuitry 30 and the method described herein may be implemented by a special-purpose computer provided by configuring a processor and memory programmed to perform one or more functions embodied in a computer program. Alternatively, the prefetch control circuitry 30 and the method described herein may be implemented by a special-purpose computer provided by configuring a processor with one or more dedicated hardware logic circuits. Alternatively, the prefetch control circuitry 30 and the method described herein may be implemented by one or more special-purpose computers configured by a combination of a processor and memory programmed to perform one or more functions and a processor configured with one or more hardware logic circuits. The computer program may also be stored in a computer-readable non-transitory tangible recording medium as instructions executed by a computer. [Explanation of symbols]
[0066] Reference Signs List 10 CPU, 11 arithmetic unit, 12 control unit, 13 first storage unit, 14 second storage unit, 15 table, 20 memory, 30 prefetch control circuit unit, 31 prefetch control unit, 100 arithmetic device
Claims
1. A computing device (100), A second memory unit (14); a first storage unit (13) in which a part of the data stored in the second storage unit is stored and which has a smaller data capacity than the second storage unit; A calculation unit (11); a control unit (12) that acquires first data requested by the calculation unit from the first storage unit, and acquires the first data from the second storage unit when the first data is not stored in the first storage unit; a table (15) for recording next data information indicating data acquired immediately after the control unit acquires each data stored in the second storage unit; a prefetch control unit (31) that, when the control unit acquires the first data, uses the table to execute a prefetch to store in advance in the first memory unit second data, which is data requested immediately after the control unit last acquired the first data.
2. 2. The computing device according to claim 1, A computing device, wherein the prefetch control unit does not execute the prefetch when the next data information associated with the data acquired by the control unit is not recorded in the table.
3. 3. The computing device according to claim 1, the table stores validity information indicating whether or not the accuracy of the next data information is equal to or greater than a predetermined threshold value; The prefetch control unit executes the prefetch when the validity information associated with the first data indicates that the certainty is equal to or greater than the threshold value.
4. 4. The computing device according to claim 3, A computing device, wherein the validity information indicates that when the first data is not stored in the second memory unit and the computing unit requests the first data again immediately after requesting the first data, the certainty of the next data information corresponding to the first data is not greater than or equal to the threshold value.
5. A prefetch control method executed by a computing device, comprising: a second storage step of storing data in a second storage unit; a first storage step of storing a part of the data stored in the second storage unit in a first storage unit having a data capacity smaller than that of the second storage unit; A calculation step for performing calculation processing; an acquisition step of acquiring first data requested in the calculation step from the first storage unit, and acquiring the first data from the second storage unit when the first data is not stored in the first storage unit; a prefetch process for pre-storing in the first memory unit second data, which is data acquired immediately after the first data was acquired in the previous acquisition process, using a table that stores next data information indicating data acquired immediately after each data stored in the second memory unit in the acquisition process.
6. A prefetch control program, A second storage function for storing data in a second storage unit; a first storage function for storing a part of the data stored in the second storage unit and storing the data in a first storage unit having a data capacity smaller than that of the second storage unit; A calculation function for performing calculation processing; an acquisition function that acquires first data requested by the calculation function from the first storage unit, and acquires the first data from the second storage unit when the first data is not stored in the first storage unit; A prefetch control program that causes a computer to realize a prefetch function of storing, in advance in the first memory unit, second data, which is data acquired immediately after the first data was acquired the previous time in the acquisition function, using a table that stores next data information indicating the data acquired immediately after each data stored in the second memory unit was acquired in the acquisition function.
Citation Information
Patent Citations
Prefetch from dynamic random access memory to static random access memory
JP2008159057A
Prefetch method and unit for cache mechanism
JP2008191824A
Cache system
JP2009059077A
System and method for prediction of read commands to non-sequential data
US20200004432A1
Information processor and cache control method
WO2008155815A1
