Information processing system
The information processing system addresses the latency issue of non-volatile memory by using prefetch requests and a prefetch control unit to enhance read performance, effectively reducing latency and improving system efficiency.
Patent Information
- Application Number
- JP2023064266
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-11
- Publication Date
- 2024-10-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Non-volatile memory devices, such as NAND flash memory, exhibit longer data read latency compared to DRAMs, necessitating improved read performance in memory systems.
An information processing system incorporating a processor, a first memory device, and a second memory device with non-volatile memory, where the processor issues a prefetch request to the first memory device before a load command, and the second memory device performs data prefetching based on this request, utilizing a prefetch control unit and a prefetch request queue to manage and execute prefetch operations.
The system effectively hides latency by prefetching data into a cache memory, enhancing read performance of non-volatile memory devices like CXL devices, thereby improving overall system efficiency.
Smart Images

Figure 2024151123000001_ABST
Abstract
Description
[Technical field]
[0001] FIELD An embodiment of the present invention relates to an information processing system. [Background technology]
[0002] In recent years, memory devices equipped with non-volatile memory (e.g., NAND flash memory) have become known, and the use of such memory devices as part of a main memory (primary storage device) composed of a DRAM (Dynamic Random Access Memory) or the like is being considered.
[0003] However, while the above-mentioned memory devices have the advantage of being less expensive than DRAMs, they have a longer data read latency than DRAMs, and therefore there is a demand for improving the read performance of memory devices. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent Publication No. 2021-081858 Summary of the Invention [Problem to be solved by the invention]
[0005] Therefore, an object of the present invention is to provide an information processing system capable of improving the read performance of a memory device. [Means for solving the problem]
[0006] An information processing system according to an embodiment includes a processor, a first memory device, and a second memory device including a nonvolatile memory and accessing the nonvolatile memory by a load / store command. The processor writes a request to the first memory device to instruct prefetching of the data before issuing a load command to load data stored in the nonvolatile memory. The second memory device includes a control unit that prefetches the data stored in the nonvolatile memory based on the request written to the first memory device. [Brief description of the drawings]
[0007] [Figure 1] FIG. 1 is a block diagram showing an example of the configuration of an information processing system according to a first embodiment. [Diagram 2] 4 is a sequence chart showing an example of a processing procedure of the information processing system according to the first embodiment. [Diagram 3] FIG. 4 is a diagram for explaining a prefetch request queue in the first embodiment. [Figure 4] 5A to 5C are diagrams for explaining the read performance of the CXL device in the first embodiment. [Diagram 5] FIG. 11 is a block diagram showing an example of the configuration of an information processing system according to a second embodiment. [Figure 6] 10 is a sequence chart showing an example of a processing procedure of an information processing system according to a second embodiment. [Figure 7] FIG. 11 is a diagram for explaining an overview of polling executed in the second embodiment. [Figure 8] FIG. 13 is a block diagram showing an example of the configuration of an information processing system according to a third embodiment. [Figure 9] 13 is a sequence chart showing an example of a processing procedure of an information processing system according to a third embodiment. [Figure 10] FIG. 13 is a diagram showing an example of a data structure of an address conversion table in the third embodiment. [Figure 11]FIG. 13 is a diagram showing another example of the data structure of the address conversion table in the third embodiment. [Figure 12] FIG. 13 is a block diagram showing an example of the configuration of an information processing system according to a fourth embodiment. [Figure 13] 13 is a sequence chart showing an example of a processing procedure of an information processing system according to a fourth embodiment. [Figure 14] FIG. 13 is a diagram for explaining an overview of the operation of the information processing system according to the fourth embodiment. [Figure 15] 13 is a diagram for explaining an overview of the operation of the information processing system when a completion map is used instead of a completion queue in the fourth embodiment. [Figure 16] 13 is a sequence chart showing an example of a processing procedure of an information processing system according to a first modified example of the fourth embodiment. [Figure 17] FIG. 13 is a block diagram showing another configuration of the information processing system according to the first modified example of the fourth embodiment. [Figure 18] FIG. 13 is a block diagram showing still another configuration of the information processing system according to the first modified example of the fourth embodiment. [Figure 19] 13 is a sequence chart showing an example of a processing procedure of an information processing system according to a second modified example of the fourth embodiment. [Figure 20] 23 is a flowchart showing an example of a processing procedure of a completion notification determination process in a second modified example of the fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] Each embodiment will be described below with reference to the drawings. (First embodiment) First, a first embodiment will be described. Fig. 1 is a block diagram showing an example of a configuration of an information processing system according to this embodiment. As shown in Fig. 1, the information processing system 1 includes a CPU 10, a DRAM (Dynamic Random Access Memory) 20, and a CXL device 30. In the information processing system 1, the CPU 10, the DRAM 20, and the CXL device 30 are connected to each other via a bus.
[0009] The CPU 10 is a processor provided in an information processing device that operates as a host, and is configured to be able to access the DRAM 20 and the CXL device 30. The CPU 10 is, for example, a multi-core processor, and is configured to execute multiple programs (application programs) in parallel.
[0010] The DRAM 20 is a memory device that constitutes the main memory in the information processing system 1.
[0011] In this embodiment, in order to increase the capacity of the main memory, the CXL device 30 is further operated as (a part of) the main memory.
[0012] The CXL device 30 is a memory device that stores various data accessed (loaded / stored) by the CPU 10 that executes an application program, for example. The bus (memory bus) that connects the CPU 10 and the CXL device 30 is, for example, a CXL (Compute Express Link TM ) standard compliant CXL bus. CXL is a standard based on PCI Express (PCIe) and configured with three independent protocols, CXL.io, CXL.cache, and CXL.mem. The CXL device 30 has an interface based on the CXL.mem protocol that can access media (non-volatile memory) by load / store commands from the CPU 10. The CXL device 30 may also have an interface based on the CXL.io protocol. CXL.io is mainly used for register access in the CXL device. Similarly, the CXL device 30 may have an interface based on the CXL.cache protocol. CXL.cache includes access to media (non-volatile memory) and is used as a protocol capable of coherent control over host memory and cache. Hereinafter, unless otherwise specified in this embodiment, it is assumed that CXL.mem is used for access to the CXL device 30. The CXL device 30 may also be referred to as a memory system.
[0013] In this embodiment, the CXL device 30 connected to the CPU 10 via a CXL bus will be mainly described, but the CXL device 30 may be another memory device connected to the CPU 10 via a bus conforming to another standard.
[0014] Meanwhile, the CXL device 30 has a non-volatile memory as described later, and has intermediate performance between the DRAM 20 and a storage device (e.g., SSD, etc.). Specifically, the storage capacity of the CXL device 30 is larger than that of the DRAM 20, and the access speed to the CXL device 30 is faster than that of a storage device. In this embodiment, by using such a CXL device 30, it is possible to substantially increase the capacity of the main memory.
[0015] However, since the CXL device 30 has a longer latency (delay time) when reading data from the non-volatile memory than the DRAM 20, a mechanism for improving the read performance of the CXL device 30 is required.
[0016] As shown in FIG. 1, the CXL device 30 includes a NAND flash memory (memory unit) 31 and a cache memory (cache unit) 32.
[0017] The NAND type flash memory 31 corresponds to the non-volatile memory described above. The NAND type flash memory 31 is, for example, a flash memory with a three-dimensional structure. The NAND type flash memory 31 has a plurality of blocks. Each of the plurality of blocks is a unit of a data erase operation. Each of the plurality of blocks also includes a plurality of physical pages. Each of the plurality of physical pages includes a plurality of memory cells connected to the same word line. Each of the plurality of physical pages is a unit of a data write operation and a data read operation.
[0018] The cache memory 32 is a volatile memory that operates as a cache memory for the NAND flash memory 31, and operates to cache store data from the CPU 10 and data read from the NAND flash memory 31. The cache memory 32 is controlled by, for example, a direct map method or a multi-way set associative method. In this embodiment, it is assumed that the cache memory 32 is configured by, for example, an SRAM (Static Random Access Memory) provided in the CXL device 30, but the cache memory 32 may also be configured by a DRAM provided in the CXL device 30.
[0019] Here, the operations of the above-mentioned NAND type flash memory 31 and cache memory 32 will be briefly described.
[0020] For example, when the CPU 10 loads (reads) data from the CXL device 30, the CPU 10 issues a load command (MemRd Request) requesting the data. If the data requested in the load command issued by the CPU 10 is stored in the cache memory 32, the CXL device 30 reads the data from the cache memory 32 and returns the data to the CPU 10.
[0021] On the other hand, if the data requested in the load command is not stored in the cache memory 32, the CXL device 30 reads the data from the NAND flash memory 31 and returns the data to the CPU 10. By storing the data read from the NAND flash memory 31 at this timing in the cache memory 32, it becomes possible to read the data from the cache memory 32 and return it to the CPU 10 in response to a subsequent load command for that data.
[0022] Since the cache memory 32 (e.g., SRAM) can read data faster than the NAND flash memory 31, it is possible to improve the read performance of the CXL device 30 when the data requested in the load command is stored in the cache memory 32. On the other hand, when the data requested in the load command is not stored in the cache memory 32, it is not possible to improve the read performance of the CXL device 30.
[0023] For this reason, in the information processing system 1 of this embodiment, the data (hereinafter referred to as target data) that is to be loaded based on the load command and that is stored in the NAND flash memory 31 is prefetched before the CPU 10 issues the load command, thereby concealing the latency when reading data from the CXL device 30 (NAND flash memory 31).
[0024] In this case, the DRAM 20 in this embodiment includes a prefetch request queue 21. A request (hereinafter, referred to as a prefetch request) instructing the prefetching of target data stored in the CXL device 30 (NAND flash memory 31) is written to the prefetch request queue 21.
[0025] Furthermore, the CXL device 30 in this embodiment includes a prefetch control unit 33 in addition to the above-mentioned NAND flash memory 31 and cache memory 32. The prefetch control unit 33 also includes a doorbell register 331.
[0026] In this embodiment, the prefetch control unit 33 can be realized by either hardware or software, or by a combination of both hardware and software. The CXL device 30 may also be configured to include a controller that controls writing and reading of data to and from the NAND flash memory 31, and the controller may include the prefetch control unit 33. Here, the controller is a control circuit such as a System-on-a-Chip (SoC), and is configured to also control writing and reading of data to and from the cache memory 32.
[0027] The doorbell register 331 is notified that a prefetch request has been written to the prefetch request queue 21 (i.e., the current write pointer position of the prefetch request queue 21). When it is detected that the write pointer position of the prefetch request queue 21 in the doorbell register 331 has been updated, the prefetch control unit 33 reads the prefetch request written to the prefetch request queue 21 from the prefetch request queue 21, and prefetches the target data based on the read prefetch request.
[0028] In this embodiment, prefetching refers to, for example, reading target data from the NAND flash memory 31 and writing (storing) the target data in the cache memory 32. In other words, the above-mentioned prefetch request can be said to be a transfer command for the target data from the NAND flash memory 31 to the cache memory 32.
[0029] Hereinafter, an example of a processing procedure of the information processing system 1 according to the present embodiment will be described with reference to the sequence chart of FIG.
[0030] Here, when a specific application program is executed in an information processing device (host) equipped with a CPU 10 as described above, and the CPU 10 loads data stored in the CXL device 30, the CPU 10 needs to access the CXL device 30 by issuing a load command requesting the data.
[0031] However, in this embodiment, the CPU 10 issues a prefetch request before issuing a load command, and writes the prefetch request to a prefetch request queue 21 included in the DRAM 20 (step S1). Note that the rectangular blocks shown in association with the processing of the CPU 10, such as step S1, in the sequence chart of Fig. 2 represent the processing time of the CPU 10. The same applies to the sequence charts described below.
[0032] In this embodiment, the prefetch request written to the prefetch request queue 21 includes an address assigned to the target data (data to be loaded based on the load command) described above. The address included in the prefetch request includes, for example, a memory address (physical address) assigned to the CXL device 30 by the system.
[0033] Here, the prefetch request queue 21 will be described with reference to Fig. 3. As shown in Fig. 3, the prefetch request queue 21 is realized as a ring queue (ring buffer), and can store a plurality of prefetch requests.
[0034] In the prefetch request queue 21, prefetch requests are stored in order along the direction of the arrow 21a shown in Fig. 3. The prefetch requests stored in the prefetch request queue 21 are managed using a read pointer (Head pointer) and a write pointer (Tail pointer). The read pointer is a pointer that indicates the location where the prefetch request to be read next is stored, and is managed within the prefetch control unit 33. The write pointer is a pointer that indicates the location where the last prefetch request written is stored, and is managed on the host (CPU 10) side.
[0035] 2, the CPU 10 updates the doorbell register of the prefetch request queue 21 in order to notify that a prefetch request has been written to the prefetch request queue 21 in step S1 (step S2). Specifically, the CPU 10 writes a write pointer position to the doorbell register 331 of the prefetch control unit 33 included in the CXL device 30. As described above, the CXL device 30 is connected to the CPU 10 via the CXL bus, and it is assumed that the process of step S2 is executed according to, for example, CXL.io.
[0036] Here, when the prefetch control unit 33 detects that the write pointer position written in the doorbell register 331 has been updated by executing the processing of step S2 (i.e., notification from the CPU 10), it accesses the DRAM 20 and reads out a prefetch request from the prefetch request queue 21 according to the write pointer position (step S3).
[0037] When the process of step S3 is executed, the prefetch control unit 33 prefetches the target data based on the prefetch request read in step S3 (step S4). In this case, the prefetch control unit 33 executes a process of reading the target data from the NAND flash memory 31 based on the address included in the prefetch request and writing the read target data to the cache memory 32.
[0038] Here, it is assumed that after the above-mentioned processes of steps S1 to S5 are executed, a load command (MemRd Request) for loading the target data is issued by the CPU 10 (step S5). In this case, since the target data has been stored in the cache memory 32 by the above-mentioned process of step S4 being executed, the CPU 10 can load (read) the target data from the cache memory 32 (step S6).
[0039] As described above, in this embodiment, before issuing a load command, the CPU 10 (processor) writes a prefetch request to the DRAM 20 (first memory device) instructing prefetching of target data stored in the NAND flash memory 31 (non-volatile memory) included in the CXL device 30 (second memory device). Also, in this embodiment, the prefetch control unit 33 included in the CXL device 30 reads the prefetch request written to the DRAM 20 from the DRAM 20, and prefetches the target data based on the read prefetch request.
[0040] In this embodiment, with such a configuration, the CPU 10 can load the target data that has been prefetched based on the prefetch request (i.e., the target data stored in the cache memory 32), thereby concealing the latency involved in reading the target data from the NAND flash memory 31 and improving the read performance of the CXL device 30.
[0041] In this embodiment, a plurality of prefetch request queues 21 may be configured in the DRAM 20. The depth of each prefetch request queue may be set to any depth within a range that the CXL device 30 can control.
[0042] As a comparative example of this embodiment, consider a configuration in which target data is prefetched using MemSpecRd(speculative_read) under the CXL standard.
[0043] In such a comparative example of this embodiment, it is possible to conceal the latency when reading target data from the NAND flash memory, but there is a possibility that the number of MemSpecRds that can be issued is limited by the CPU.
[0044] Specifically, in the case where the CPU is a multi-core processor as described above and executes multiple application programs in parallel, in order for the CPU to execute other processes while the CXL device is processing (executing) MemSpecRd, it is considered preferable that the number of MemSpecRds (i.e., prefetch requests) that can be issued simultaneously (the outstanding number) be on the order of several hundred to several thousand. However, it is highly likely that the CPU hardware cannot realize such a number of MemSpecRds that can be issued on the order of several hundred to several thousand.
[0045] That is, in the comparative example of this embodiment described above, the number of MemSpecRd (prefetch requests) that can be issued is limited, and efficient processing by the CPU cannot be achieved.
[0046] In contrast, the prefetch request queue 21 in this embodiment corresponds to a software queue configured on the DRAM 20, and it is possible to configure a plurality of prefetch request queues 21 and to deepen the depth of each prefetch request queue 21. Therefore, in this embodiment, there is no upper limit to the number of prefetch requests that can be written to the prefetch request queue 21 (outstanding number), so it is possible to realize efficient processing of the CPU 10. Note that this embodiment assumes a system capable of issuing prefetch requests with an outstanding number of 1000 or more, for example.
[0047] Furthermore, in this embodiment, CPU 10 notifies prefetch control unit 33 that a prefetch request has been written to DRAM 20, and when the notification from CPU 10 (i.e., the write pointer position written to doorbell register 331 has been updated) is detected, prefetch control unit 33 prefetches the target data based on the prefetch request. With this configuration, in this embodiment, it is possible to appropriately detect the prefetch request issued by CPU 10 and prefetch the target data.
[0048] In this embodiment, the address assigned to the target data is included in the prefetch request, and the target data is data of a cache line size (for example, 64 bytes) read from the NAND flash memory 31 based on the address. In other words, this embodiment assumes a case where the prefetch request is written to the prefetch request queue 21 in units of cache lines.
[0049] However, in such a configuration, if the target data corresponds to multiple cache line sizes, multiple prefetch requests must be written to the prefetch request queue 21 (prefetching must be performed multiple times), resulting in a large number of prefetch requests (consuming a large number of outstanding requests).
[0050] For this reason, this embodiment may be configured such that a prefetch request including a data size (size information indicating the size of data to be prefetched) in addition to an address is written to the prefetch request queue 21, and target data is prefetched based on the data size. In such a configuration, even if the target data is data corresponding to a size of multiple cache lines, the target data can be prefetched based on one prefetch request, thereby realizing efficient prefetching.
[0051] In addition, in the present embodiment, the prefetched target data is described as being loaded (accessed) based on a load command issued by the CPU 10, but the target data does not necessarily have to be loaded. In other words, the present embodiment is sufficient as long as it is configured to prefetch target data based on a prefetch request written to the DRAM 20, and it is also possible to imagine a case in which the prefetched target data is discarded from the cache memory 32 without being loaded based on a load command.
[0052] In addition, in the present embodiment, the target data is prefetched by reading the target data from the NAND flash memory 31 and writing the read data to the cache memory 32. The NAND flash memory 31 is an example of a nonvolatile memory, and the cache memory 32 is an example of an SRAM. In the present embodiment, the nonvolatile memory and the cache memory 32 have different memory elements, and the cache memory 32 may be configured with a memory device that can be accessed faster than the nonvolatile memory. Specifically, in the present embodiment, it is assumed that a nonvolatile memory with a data read latency of 1 μs or more and a cache memory 32 with a data read latency of less than 1 μs are used.
[0053] In this embodiment, it is assumed that the cache memory 32 is mainly composed of an SRAM, but the cache memory 32 may be composed of, for example, a DRAM. Also, the cache memory 32 may be realized by, for example, other memory devices.
[0054] Although the NAND flash memory 31 has been described as an example of a nonvolatile memory, the nonvolatile memory may be a memory other than the NAND flash memory 31. Furthermore, when the above-mentioned cache memory 32 is configured with an SRAM, this embodiment may be configured such that the nonvolatile memory is replaced with a DRAM.
[0055] Furthermore, in the present embodiment, the target data read from the NAND flash memory 31 is described as being written to the cache memory 32, but the target data may be stored in, for example, the DRAM 20, instead of the cache memory 32. The target data may also be stored in a memory device other than the DRAM 20 that is provided outside the CXL device 30 (a memory device that can be accessed faster than the NAND flash memory 31).
[0056] Here, as shown in FIG. 4, the processing time (first processing time) of the CPU 10 required to load the data stored in the NAND flash memory 31 based on the load command issued by the CPU 10 is defined as processing time A. On the other hand, as shown in FIG. 2, the processing time (second processing time) of the CPU 10 required to perform data prefetch is defined as processing time B, and the processing time (third processing time) of the CPU 10 required to load the data written to the cache memory 32 by performing the prefetch is defined as processing time C. In this case, if the relationship that the processing time A is greater than the sum of the processing time B and the processing time C (that is, the relationship of B + C < A) is satisfied, the configuration of the present embodiment can achieve an improvement in the read performance of the CXL device 30.
[0057] In the present embodiment, although the cache memory 32 is mainly described as being used for prefetching target data, the cache memory 32 may be used to cache, for example, data for which prefetching is not performed (data loaded from the NAND flash memory 31 based on a load command or data stored in the NAND flash memory 31 based on a store command).
[0058] (Second Embodiment) Next, the second embodiment will be described. In the first embodiment described above, it has been described that the CPU updates the doorbell register when a prefetch request is written to the prefetch request queue. In this embodiment, the CXL device performs polling on the prefetch request queue (an operation of periodically reading and monitoring data).
[0059] FIG. 5 is a block diagram showing an example of the configuration of the information processing system according to the present embodiment. In FIG. 5, the same reference numerals are given to the same parts as those in FIG. 1 described above, and the detailed description thereof is omitted. Here, mainly the parts different from FIG. 1 will be described.
[0060] As shown in FIG. 5, the prefetch control unit 33 in this embodiment includes a queue monitoring unit 332.
[0061] The queue monitor 332 operates to poll the DRAM 20 (the prefetch request queue 21 included in the DRAM 20).
[0062] Hereinafter, an example of a processing procedure of the information processing system 1 according to the present embodiment will be described with reference to the sequence chart of FIG.
[0063] In this embodiment, the queue monitor 332 included in the prefetch control unit 33 executes polling of the prefetch request queue 21 (step S11).
[0064] Here, it is assumed that polling is performed after the process of step S12, which corresponds to the process of step S1 shown in FIG. 2, has been performed (step S13).
[0065] In this case, the queue monitor 332 detects that a prefetch request has been written to the prefetch request queue 21 by performing polling, and prefetches the target data based on the prefetch request (step S14). Note that the process of step S14 is the same as the process of step S4 shown in FIG. 2 described above.
[0066] When the process of step S14 is executed, the processes of steps S5 and S6 shown in FIG. 2 are executed.
[0067] Here, an overview of the polling performed in this embodiment will be described with reference to FIG.
[0068] In the first embodiment described above, the prefetch request was described as including an address assigned to the target data (data to be loaded based on the load command), but in this embodiment, the prefetch request includes, in addition to the address, a flag indicating whether the prefetch request is a newly issued prefetch request (hereinafter referred to as a new prefetch request) that has not yet been processed by the CXL device 30.
[0069] In the polling, the queue monitor 332 accesses the DRAM 20 and reads out prefetch requests from the prefetch request queue 21. Specifically, the queue monitor 332 reads out a predetermined number of prefetch requests (entries) from the prefetch request queue 21 based on the above-mentioned read pointer. In the example shown in Fig. 7, eight prefetch requests are read out.
[0070] Next, the queue monitor 332 refers to the flag included in each of the prefetch requests read from the prefetch request queue 21, and identifies new prefetch requests. In the example shown in Fig. 7, the four prefetch requests whose flag 401 is "1" are new prefetch requests, and target data (data to which the address included in the prefetch request is assigned) is prefetched based on the prefetch requests. On the other hand, the four prefetch requests whose flag 401 is "0" are discarded.
[0071] By such polling, it is possible to detect that a new prefetch request has been written to the prefetch request queue 21.
[0072] In the above-mentioned polling, multiple prefetch requests are read at one time, so that the number of communications between the DRAM 20 and the CXL device 30 can be reduced, and the number of transactions on the bus connecting the DRAM 20 and the CXL device 30 can be reduced.
[0073] When the above-mentioned polling is performed, the read pointer in the prefetch control unit 33 is updated based on the number of prefetch requests whose flags 401 are valid among the prefetch requests read from the prefetch request queue 21 .
[0074] In this embodiment, the fact that a new prefetch request has been written to the prefetch request queue 21 is detected based on a flag contained in the prefetch request. If "1 (High)" is defined as a valid flag, then a clear process must be performed to return the flag to "0 (Low)" when the read process or prefetch process for the prefetch request is completed.
[0075] However, the clearing process may hinder the process of reading out prefetch requests from the prefetch request queue 21.
[0076] Here, an example of a method for managing a flag that does not require the above-mentioned clearing process will be described.
[0077] When the prefetch request queue 21 is realized as a ring queue (ring buffer) as in the first embodiment described above, a phase bit method in which the flag is inverted and written each time the prefetch request queue 21 goes around can be applied as a method of managing the flag in this embodiment.
[0078] In the phase bit method, the CPU 10 initializes (the field of) a flag included in a prefetch request in the prefetch request queue 21 to, for example, "0 (Low)."
[0079] When the CPU 10 writes a prefetch request to the prefetch request queue 21 based on the write pointer during an odd-numbered cycle, the CPU 10 sets the flag included in the prefetch request to "1 (High)."
[0080] In this case, the queue monitoring unit 332 can recognize that a prefetch request in the prefetch request queue 21 during an odd-numbered cycle is a new prefetch request if the flag contained in the prefetch request is "1", and can recognize that the prefetch request is not a new prefetch request if the flag is "0".
[0081] On the other hand, when the CPU 10 writes a prefetch request to the prefetch request queue 21 based on the write pointer during an even-numbered cycle, the CPU 10 sets the flag included in the prefetch request to "0."
[0082] In this case, the queue monitoring unit 332 can recognize that the prefetch request in the prefetch request queue 21 is a new prefetch request when the flag contained in the prefetch request in an even-numbered cycle is "0", and can recognize that the prefetch request is not a new prefetch request when the flag is "1".
[0083] That is, in the above-described phase bit method, the flag indicating whether or not it is a new prefetch request is inverted according to the rotation of the prefetch request queue 21. In this case, the queue monitoring unit 332 operates to invert the criterion for recognizing whether or not it is a new prefetch request according to the rotation of the prefetch request queue 21.
[0084] According to such a phase bit method, when target data is prefetched based on a new prefetch request, there is no need to execute a clear process to change the flag contained in the prefetch request, and therefore the clear process does not impede the process of reading the prefetch request from the prefetch request queue 21.
[0085] As described above, in this embodiment, by periodically monitoring the DRAM 20 (i.e., performing polling), when it is detected that a prefetch request has been written to the DRAM 20 (prefetch request queue 21), the target data is prefetched based on the prefetch request.
[0086] In this embodiment, compared to the first embodiment described above, the CPU 10 does not need to update the doorbell register 331 (write the write pointer position to the doorbell register 331), so the load on the CPU 10 can be reduced.
[0087] Third embodiment Next, a third embodiment will be described. In the first embodiment described above, the prefetch request is mainly described as including a memory address (physical address) assigned to the CXL device 30 by the system, for example, but in this embodiment, the prefetch request includes a virtual address, and the virtual address is converted to a memory address (physical address) on the CXL device side.
[0088] The virtual address refers to an address assigned to each application. That is, in such a case, for example, the virtual address 0x0 of application 1 may indicate the physical address 0x1000, and the virtual address 0x0 of application 2 may indicate the physical address 0x2000.
[0089] Fig. 8 is a block diagram showing an example of the configuration of an information processing system according to this embodiment. In Fig. 8, the same reference numerals are given to the same parts as in Fig. 1 described above, and detailed explanations thereof will be omitted. Here, the parts different from Fig. 1 will be mainly described.
[0090] As shown in FIG. 8, the prefetch control unit 33 in this embodiment includes an address conversion unit 333.
[0091] In this embodiment, the prefetch request that the CPU 10 writes to the prefetch request queue 21 includes a virtual address for accessing the target data (data to be loaded based on the load command).
[0092] The address conversion unit 333 includes an address conversion table, and converts the virtual address included in the prefetch request into a memory address (physical address) by referring to the address conversion table.
[0093] In this embodiment, the target data is prefetched using the physical address converted from the virtual address by the address conversion unit 333 in this manner.
[0094] Hereinafter, an example of a processing procedure of the information processing system 1 according to the present embodiment will be described with reference to the sequence chart of FIG.
[0095] First, the processes of steps S21 to S23 are executed, which correspond to the processes of steps S1 to S3 shown in Fig. 2. Note that the prefetch request written to the prefetch request queue 21 in step S21 (i.e., the prefetch request read from the prefetch request queue 21 in step S23) includes a virtual address as described above.
[0096] In this case, the address conversion unit 333 included in the prefetch control unit 33 refers to the address conversion table and converts the virtual address included in the prefetch request into a memory address (physical address) (step S25).
[0097] Fig. 10 shows an example of the data structure of the address conversion table. As shown in Fig. 10, the address conversion table stores virtual addresses and physical addresses in association with each other.
[0098] 10, the address conversion table stores a correspondence between a virtual address 0 and a physical address 0. According to this, for example, when a prefetch request includes a virtual address 0, the address conversion unit 333 can convert the virtual address 0 into the physical address 0.
[0099] Similarly, the address conversion table stores a correspondence between a virtual address 1 and a physical address 1. According to this, for example, when a prefetch request includes a virtual address 1, the address conversion unit 333 can convert the virtual address 1 into the physical address 1.
[0100] Furthermore, the address conversion table stores a correspondence between the virtual address 2 and the physical address 2. According to this, for example, when the virtual address 2 is included in the prefetch request, the address conversion unit 333 can convert the virtual address 2 into the physical address 2.
[0101] Here, we have explained the case where virtual addresses 0 to 2 are translated into physical addresses 0 to 2, respectively. However, even if the prefetch request contains other virtual addresses, the virtual addresses can be similarly translated into physical addresses by referring to the address translation table.
[0102] It is assumed that the address conversion table shown in FIG. 10 is preset in the address conversion unit 333 by the CPU 10, for example.
[0103] 9, the processes of steps S25 to S27 are executed, which correspond to the processes of steps S4 to S6 shown in Fig. 2. In step S25, the prefetch control unit 33 executes a process of reading target data from the NAND flash memory 31 based on the physical address converted from the virtual address in step S24, and writing the read target data to the cache memory 32.
[0104] As described above, in this embodiment, a prefetch request includes a virtual address for accessing target data, and the target data is prefetched using a physical address converted from the virtual address by referring to an address translation table.
[0105] In this embodiment, such a configuration allows the CPU 10 to instruct prefetching using a virtual address, which improves the ease of developing application programs to be executed on the CPU 10 (or an information processing device including the CPU 10).
[0106] Furthermore, normally, an application manages a storage area using only virtual addresses, and the system performs the conversion from virtual addresses to physical addresses. Therefore, in order to specify a physical address in a prefetch request, the application must perform the same process as the conversion performed by the system, which increases the load on the application processing. In this embodiment, the CXL device 30 performs the conversion from virtual addresses to physical addresses, allowing the application to manage a storage area using only virtual addresses, and thus making it possible to avoid an increase in the load associated with address conversion.
[0107] In this embodiment, the address conversion table shown in Fig. 10 has been described as storing virtual addresses and physical addresses in association with each other, but the address conversion table may be configured to store virtual address ranges and physical address ranges in association with each other as shown in Fig. 11. A virtual address range is a range made up of a plurality of virtual addresses. Similarly, a physical address range is a range made up of a plurality of physical addresses. The virtual address range and the physical address range may each be represented by a start address and a size.
[0108] According to such an address conversion table, for example, when a prefetch request includes a virtual address range, the virtual address range can be converted into a physical address range, and the target data can be prefetched using the multiple physical addresses that make up the physical address range. In such a configuration, since it is not necessary to issue a prefetch request (write it into the prefetch request queue 21) for each virtual address, it is possible to realize efficient prefetching.
[0109] In addition, in the present embodiment, the prefetch request is described as including a virtual address, but the virtual address may be other information that can be converted into a physical address in the NAND flash memory 31. Specifically, for example, when the information processing device (CPU 10) divides and manages a memory area, a combination of a memory area ID for identifying the memory area in which the target data is stored and an offset (offset within the area) corresponding to the position of the target data in the memory area may be used instead of a virtual address. In this case, the address conversion table may store a pair of a memory area ID and an offset in association with a physical address converted from the pair of the memory area ID and the offset. That is, the virtual address in this embodiment may be changed according to the data management method in the information processing device.
[0110] In this embodiment, the configuration in which the address conversion unit 333 is added to the prefetch control unit 33 described in the first embodiment has been described, but this embodiment may be applied to the second embodiment. Specifically, this embodiment may have a configuration in which the address conversion unit 333 is added to the prefetch control unit 33 shown in FIG. 5 described above.
[0111] (Fourth embodiment) Next, a fourth embodiment will be described. In the first embodiment described above, a load command is issued after a prefetch request is simply written to a prefetch request queue, but in this embodiment, a load command is issued based on a response indicating completion of prefetching based on a prefetch request (hereinafter, referred to as a completion notification).
[0112] Fig. 12 is a block diagram showing an example of the configuration of an information processing system according to this embodiment. In Fig. 12, the same reference numerals are given to the same parts as in Fig. 1 described above, and detailed descriptions thereof will be omitted. Here, the parts different from Fig. 1 will be mainly described.
[0113] 12, the DRAM 20 in this embodiment includes a completion queue 22 (completion area). When the prefetch of the target data based on the prefetch request written in the prefetch request queue 21 is completed, the completion notification is written in the completion queue 22.
[0114] In this embodiment, when it is detected that a completion notification has been written to the completion queue 22, the CPU 10 issues a load command.
[0115] Hereinafter, an example of a processing procedure of the information processing system 1 according to the present embodiment will be described with reference to the sequence chart of FIG.
[0116] First, the processes of steps S31 to S34, which correspond to the processes of steps S1 to S4 shown in FIG. 2, are executed.
[0117] Here, in this embodiment, when the prefetching of the target data is completed based on the prefetch request, a completion notification is written to the completion queue 22, and after the processing of step S32 described above is executed, the CPU 10 performs polling to detect that the completion notification has been written to the completion queue 22 (step S35).
[0118] When the prefetching of the target data in step S34 described above is completed, the prefetch control unit 33 writes a completion notification into the completion queue 22 (step S36).
[0119] Next, assume that polling is performed by the CPU 10 after the process of step S36 is performed (step S37). In this case, the CPU 10 detects that a completion notification has been written to the completion queue 22, and executes the processes of steps S38 and S39, which correspond to the processes of steps S5 and S6 shown in FIG.
[0120] Here, an overview of the operation of the information processing system 1 according to this embodiment will be described with reference to FIG.
[0121] As shown in FIG. 14, the completion queue 22 in this embodiment is realized as a ring queue (ring buffer) similar to the prefetch request queue 21.
[0122] It is also assumed that a prefetch request is read from the prefetch request queue 21 by the prefetch control unit 33 based on the read pointer, and prefetching of the target data is completed based on the prefetch request.
[0123] In this case, the prefetch control unit 33 writes the completion notification to the completion queue 22. Note that the completion notification is written, for example, to an area of the completion queue 22 corresponding to the prefetch request (the area of the prefetch request queue 21 from which the prefetch request was read).
[0124] By performing such polling of the completion queue 22, the CPU 10 can detect that a completion notification corresponding to a prefetch request for which the prefetching of the target data has been completed as described above has been written to the completion queue 22, and can issue a load command requesting the target data.
[0125] Here, the completion notification has been described as being written in the completion queue 22, but the completion notification may be written in the completion map 23 as shown in FIG. 15. The completion notification by the completion map 23 is realized by a method in which the CPU 10 specifies the storage position (index) of the completion notification corresponding to the prefetch request in a field in the prefetch request. The CPU 10 monitors the index position specified in the prefetch request and detects that the completion notification has been written, thereby determining that the processing of the prefetch request has been completed. When it is determined that the processing of the prefetch request has been completed in this way (i.e., the completion of the prefetch is detected), the CPU 10 can issue a load command requesting the target data. According to this method, it is possible to reduce the control load on the completion queue 22, and the load on the CPU 10 is reduced.
[0126] As described above, in this embodiment, a load command is issued when it is detected that a completion notification (a response to a prefetch request) has been written to DRAM 20, which enables CPU 10 to avoid issuing a load command even when prefetching of the target data has not been completed (i.e., issuing a load command after confirming that prefetching of the prefetch target data has been completed).
[0127] Incidentally, in this embodiment, the process shown in FIG. 13 is described as being executed. However, in the process shown in FIG. 13, in addition to the latency incurred when reading the target data from the NAND flash memory 31 in prefetching the target data, there is also a latency incurred from the completion of prefetching the target data until the CPU 10 issues a load command.
[0128] Below, with reference to the sequence chart of Figure 16, we will explain an example of a processing procedure of an information processing system 1 (hereinafter referred to as the first variant of this embodiment) that reduces the latency that occurs between the completion of the prefetching of the above-mentioned target data and the CPU 10 issuing a load command.
[0129] First, the processes of steps S41 to S43, which correspond to the processes of steps S31 to S33 shown in FIG. 13, are executed.
[0130] After the process of step S42 is executed, the CPU 10 executes polling to detect whether a completion notification has been written to the completion queue 22 (step S44).
[0131] In this modified example, the prefetch control unit 33 writes a completion notification to the completion queue 22 (step S45) before prefetching the target data based on the prefetch request read from the prefetch request queue 21 in step S43.
[0132] In addition, in this modified example, the completion notification written to the completion queue 22 includes latency information indicating the latency that occurs when prefetching the target data (i.e., reading the target data from the NAND flash memory 31 and writing the read target data to the cache memory 32). This latency information may be managed (set) in advance in the CXL device 30 (prefetch control unit 33), for example.
[0133] After the process of step S45 is executed, the process of step S46, which corresponds to the process of step S34 shown in FIG. 13, is executed.
[0134] Next, assume that polling is performed by the CPU 10 after the process of step S45 is performed (step S47). In this case, the CPU 10 detects that a completion notification has been written to the completion queue 22, and waits until a time period (hereinafter, referred to as a wait time) corresponding to the latency indicated by the latency information included in the completion notification written to the completion queue 22 has elapsed (step S48). Note that, although it has been described that the CPU 10 waits in step S48, the CPU 10 may execute other processes in step S48 until the wait time has elapsed.
[0135] When the process of step S48 is executed, the processes of steps S49 and S50 are executed, which correspond to the processes of steps S38 and S39 shown in Fig. 13. The processes of steps S49 and S50 may be executed at any timing after the waiting time has elapsed.
[0136] In the above-described modified example, the CPU 10 issues a load command based on latency information contained in the completion notification written from the CXL device 30 to the completion queue 22 (i.e., the latency notified from the CXL device 30), thereby reducing the latency that occurs between the completion of prefetching of the target data and the CPU 10 issuing a load command.
[0137] Note that, although it is assumed here that the target data is stored in the NAND flash memory 31 (i.e., not stored in the cache memory 32), there are cases where the target data is already stored in the cache memory 32. In this case, the CPU 10 can issue a load command without waiting until the above-mentioned waiting time has elapsed.
[0138] For this reason, in this modification, the prefetch control unit 33 may include a latency determination unit 334 as shown in FIG.
[0139] The latency determination unit 334 includes media information indicating the media (NAND flash memory 31 or cache memory 32) in which data in the CXL device 30 is stored, and determines the latency to be notified to the CPU 10 based on the media information.
[0140] Specifically, for example, when the media information indicates that the target data is stored in the NAND type flash memory 31, the latency determination unit 334 reads the target data from the NAND type flash memory 31 and determines the latency (hereinafter referred to as the latency for the NAND type flash memory 31) required to write the read target data to the cache memory 32 as the latency to be notified to the CPU 10.
[0141] On the other hand, for example, when the media information indicates that the target data is stored in the cache memory 32, there is no need to prefetch the target data, and therefore the latency determination unit 334 can determine a latency (hereinafter referred to as a latency for the cache memory 32) that is shorter than at least the latency for the NAND flash memory 31 described above, as the latency to be notified to the CPU 10. Note that the latency for the cache memory 32 may be zero.
[0142] In this case, a completion notification including latency information indicating the latency determined by the latency determination unit 334 as described above is written to the completion queue 22.
[0143] It is assumed that the correspondence between the media in which the target data is stored and the latency (i.e., information used to determine the latency based on the media information) is managed (set) in advance in the latency determination unit 334.
[0144] Here, the case where the target data is stored in the NAND flash memory 31 or the cache memory 32 (for example, SRAM) has been described, but as shown in Fig. 18, the cache memory 32 may be configured as a multi-stage cache including a DRAM 322 in addition to an SRAM 321. In such a configuration, when the target data of the prefetch request exists in the DRAM 322, the target data is read from the DRAM 322 and written to the SRAM 321. In other words, the latency determination unit 334 determines the latency occurring when the target data is read from the DRAM 322 and written to the SRAM 321 as the latency to be notified to the CPU 10.
[0145] Thus, in the hierarchical memory configuration, the write latency to the prefetch destination memory from the read latency of the memory where the target data exists is determined as the latency (information) to be notified to the CPU 10. In the hierarchical memory configuration, it is conceivable to use a DRAM 322 or a magnetic memory as a memory element having performance intermediate between the SRAM 321 and the NAND flash memory 31. However, for example, it is also conceivable to use a memory element that is accessed at a lower speed than the NAND flash memory 31 or a storage device such as an SSD as a lower storage area. In any configuration, if the relationship of B + C < A described above is satisfied, the improvement of the read performance of the CXL device 30 can be achieved.
[0146] As described above, in this modification example, by adopting a configuration in which a completion notification including latency information indicating different latencies is written to the completion queue 22 according to the medium (medium information indicating the medium) in which the target data is stored, it is possible to avoid a situation in which the CPU 10 waits more than necessary (inefficient operation of the CPU 10).
[0147] Note that the latency that occurs when, for example, prefetching target data is considered to be affected by write processing (store command) and read processing (load command) of other data to the NAND flash memory 31. Therefore, the latency information included in the above-described completion notification may be changed according to the number of commands (store commands and load commands) that have already been issued.
[0148] By the way, in the first modification example of the above-described embodiment, the prefetch control unit 33 writes a completion notification to the completion queue 22 (that is, the CXL device 30 transmits the completion notification to the DRAM 20), and the CPU 10 needs to execute polling (read the completion notification multiple times), which may increase the load on the information processing system 1.
[0149] Hereinafter, an example of a processing procedure of the information processing system 1 (hereinafter, referred to as the second modified example of this embodiment) that reduces the above-mentioned load will be described with reference to the sequence chart of Fig. 19. In the following description, the latency indicated by the latency information described in the first modified example of this embodiment will be referred to as the first latency for convenience.
[0150] First, in this modified example, the latency assumed by the CPU 10 (hereinafter referred to as the second latency) is notified from the CPU 10 to the CXL device 30 (step S61). The second latency may be a value specified by the CPU 10, and is determined, for example, according to an application program executed in the information processing device (CPU 10). Specifically, the second latency may be determined, for example, according to the time required for another process after prefetching. Furthermore, in the case where the processes of a plurality of application programs are switched and executed in the information processing device, the second latency may be determined, for example, according to the interval at which the processes are switched.
[0151] Next, the processes of steps S62 to S64, which correspond to the processes of steps S41 to S43 shown in FIG. 16, are executed.
[0152] When the processing of step S64 is executed, the prefetch control unit 33 executes a process (hereinafter referred to as a completion notification determination process) of determining whether or not to write a completion notification to the completion queue 22 based on the above-mentioned first latency and the second latency notified to the CXL device 30 by the CPU 10 in step S61 (step S65).
[0153] Details of the completion notification determination process will be described later, but here it is assumed that it is determined not to write the completion notification to the completion queue 22. In this case, as shown in FIG. 19, the completion notification is not written to the completion queue 22.
[0154] After the process of step S65 is executed, the process of step S66, which corresponds to the process of step S46 shown in FIG. 16, is executed.
[0155] On the other hand, when the process of step S63 is executed, the CPU 10 waits until the time corresponding to the second latency has elapsed (step S67). Note that in step S67, the CPU 10 may execute other processes until the time corresponding to the second latency has elapsed.
[0156] After the process of step S67 is executed, the CPU 10 accesses the DRAM 20 and reads the completion notification from the completion queue 22 (step S68).
[0157] However, as described above, the completion notification is not written to the completion queue 22, so the CPU 10 cannot read the completion notification. In this case, the processes of steps S69 and S70, which correspond to the processes of steps S49 and S50 shown in FIG. 16, are executed.
[0158] Next, an example of a processing procedure of the above-mentioned completion notification determination processing will be described with reference to a flowchart of FIG.
[0159] First, the prefetch control unit 33 acquires latency information indicating the above-mentioned first latency (step S651). Note that the first latency indicated by the latency information acquired in step S651 is a latency that occurs when prefetching the target data, assuming that the target data is stored in the NAND flash memory 31. Also, the first latency indicated by the latency information acquired in step S651 may be a latency determined based on media information indicating the medium in which the target data is stored, as described above.
[0160] Next, the prefetch control unit 33 determines whether the first latency indicated by the latency information acquired in step S651 is less than the second latency notified to the CXL device 30 by the CPU 10 in step S61 shown in FIG. 19 (step S652).
[0161] If it is determined that the first latency is less than the second latency (YES in step S652), the prefetch control unit 33 determines not to write a completion notification to the completion queue 22 (step S653).
[0162] In this case, the completion notification is not written to the completion queue 22, and the processes from step S66 onwards shown in Fig. 19 are executed. That is, in this modified example, for example, when the target data is stored in the cache memory 32 and the first latency is less than the second latency, writing of the completion notification is omitted, and a load command can be issued when the time equivalent to the second latency has elapsed.
[0163] On the other hand, if it is determined that the first latency is not less than the second latency (NO in step S652), the prefetch control unit 33 determines to write a completion notification to the completion queue 22 (step S654).
[0164] In this case, the completion notification including the latency information acquired in the above-mentioned step S651 is written to the completion queue 22. According to this, the CPU 10 can read the completion notification from the completion queue 22 in step S68 shown in FIG. 19. In this case, although not shown, the CPU 10 waits until a time equivalent to the first latency (i.e., the latency indicated by the latency information included in the completion notification read from the completion queue 22) has elapsed, based on the time when the process of step S67 is started, for example, and then executes the process of step S69. That is, in this modified example, when the above-mentioned first latency exceeds the second latency (i.e., it is presumed that the prefetch of the target data has not been completed at the time when the time equivalent to the second latency has elapsed), the CPU 10 can issue a load command at an appropriate timing based on the latency information by writing the completion notification including the latency information to the completion queue 22.
[0165] As described above, in this modification, the prefetch control unit 33 determines whether or not to write a completion notification to the completion queue 22 based on the first latency that occurs when prefetching the target data and the second latency specified by the CPU 10. Also, in this modification, if the completion notification has not been written to the completion queue 22, a load command is issued after a time equivalent to the second latency has elapsed.
[0166] In this modified example, such a configuration makes it possible to omit writing of completion notifications to the completion queue 22 based on the first and second latencies (reducing the transmission of completion notifications), and the CPU 10 does not need to perform polling (i.e., the number of reads from the completion queue 22 can be minimized), thereby reducing the load on the information processing system 1.
[0167] In the above-described first and second variants of this embodiment, the DRAM 20 is described as having a completion queue 22, but the first and second variants may also be applied to a configuration in which the DRAM 20 includes a completion map 23 instead of the completion queue 22.
[0168] In addition, in this embodiment, a configuration in which a completion queue 22 is added to the DRAM 20 described in the first embodiment has been described, but this embodiment may be applied to the second embodiment. Specifically, this embodiment may be a configuration in which a completion queue 22 is added to the DRAM 20 shown in FIG. 5. Furthermore, this embodiment may be combined with the third embodiment. The same applies to the first and second modified examples of this embodiment.
[0169] According to at least one of the embodiments described above, it is possible to provide an information processing system capable of improving the reading performance.
[0170] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope of the invention and its equivalents described in the claims, as well as in the scope and spirit of the invention. [Explanation of symbols]
[0171] 1...information processing system, 10...CPU (processor), 20...DRAM (first memory device), 21...prefetch request queue, 22...completion queue, 23...completion map, 30...CXL device (second memory device), 31...NAND flash memory (non-volatile memory), 32...cache memory, 33...prefetch control unit, 331...doorbell register, 332...queue monitoring unit, 333...address conversion unit, 334...latency determination unit.
Claims
1. A processor; A first memory device; a second memory device including a non-volatile memory, the non-volatile memory being accessed by load / store commands; Equipped with the processor writes a request to the first memory device to instruct prefetching of the data stored in the non-volatile memory before issuing a load command to load the data; The second memory device includes a control unit that prefetches data stored in the non-volatile memory based on a request written to the first memory device. Information processing system.
2. 2. The information processing system of claim 1, wherein the prefetched data is loaded based on a load command issued by the processor after the request is written to the first memory device.
3. the second memory device includes a cache memory that can be accessed faster than the non-volatile memory; The control unit prefetches the data by reading the data from the non-volatile memory and writing the read data to the cache memory.
2. The information processing system according to claim 1.
4. 4. An information processing system as described in claim 3, wherein a first processing time of the processor required to load data stored in the non-volatile memory based on the load command is greater than the sum of a second processing time of the processor required to prefetch the data and a third processing time of the processor required to load data written to the cache memory as a result of the prefetch.
5. 4. The information processing system according to claim 3, wherein the cache memory is comprised of an SRAM or a DRAM.
6. 2 . The information processing system according to claim 1 , wherein the control unit prefetches the data by reading the data from the non-volatile memory and writing the read data to the first memory device.
7. The processor notifies the controller that the request has been written to the first memory device; The control unit prefetches the data based on the request when a notification from the processor is detected.
2. The information processing system according to claim 1.
8. 2. The information processing system of claim 1, wherein the control unit prefetches the data based on the request when it detects that the request has been written to the first memory device by periodically monitoring the first memory device.
9. the request includes a virtual address for accessing data stored in the non-volatile memory; The control unit includes a conversion table for converting the virtual address into a memory address, and prefetches the data by using a physical address converted from the virtual address by referring to the conversion table.
2. The information processing system according to claim 1.
10. the request includes size information indicating a size of the data to be prefetched; The control unit prefetches the data based on size information included in the request.
2. The information processing system according to claim 1.
11. when the prefetching of the data is completed, the control unit writes a response to the request to the first memory device; The processor issues the load command when it is detected that the response has been written to the first memory device.
2. The information processing system according to claim 1.
12. the control unit writes a response to the request into the first memory device; The response includes latency information indicating a first latency occurring when prefetching the data, The processor issues the load command based on a first latency indicated by latency information included in the response written to the first memory device.
2. The information processing system according to claim 1.
13. 13. The information processing system according to claim 12, wherein the response is written to the first memory device before the data is prefetched.
14. the control unit determines whether to write the response to the first memory device based on the first latency and a second latency specified by the processor; If the response has not been written to the first memory device, the processor issues the load command after a time period corresponding to the second latency has elapsed.
13. The information processing system according to claim 12.
Citation Information
Patent Citations
Memory system and control method thereof
JP2021081858A
