Techniques for pre-fetching information using pattern detection
Abstract
Methods, systems, and devices supporting techniques for pre-fetching information using pattern detection are described. Some memory systems may support pre-fetching information, such as logical-to-physical (L2P) mapping tables, data, or both, if a sequential pattern of read commands is detected. In some examples, the memory system may store a list of logical addresses indicated by received read commands and may determine whether the list corresponds to a sequential pattern independent of intervening write-alike commands. The list may store previous logical addresses for read commands, allowing the memory system to determine whether subsequent read commands form a sequential pattern. Additionally or alternatively, the memory system may track a ratio of hibernate commands to other commands (e.g., sequential read commands) and may refrain from pre-fetching L2P mapping tables for a detected sequence if the tracked ratio satisfies (e.g., exceeds) a threshold ratio.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A memory system, comprising: one or more memory devices; and processing circuitry coupled with the one or more memory devices and configured to cause the memory system to: receive a plurality of read commands and one or more hibernate commands; detect a sequential pattern of logical addresses based at least in part on respective logical addresses indicated by the plurality of read commands, respective transfer lengths for the plurality of read commands, or both; determine whether to pre-fetch, from the one or more memory devices, information indicating a logical-to-physical address mapping for a next logical address according to the sequential pattern based at least in part on comparing a threshold value for pre-fetching the information with a ratio, the ratio being of hibernate commands to sequential read commands in the plurality of read commands; and execute a subsequent read command based at least in part on determining whether to pre-fetch the information.
- Claim 2Depends on #1
The memory system of claim 1, wherein the processing circuitry is further configured to cause the memory system to: pre-fetch the information prior to executing the subsequent read command based at least in part on the ratio satisfying the threshold value for pre-fetching the information; and store the pre-fetched information in a cache, wherein, to execute the subsequent read command, the processing circuitry is configured to cause the memory system to: retrieve data from the one or more memory devices for the executed subsequent read command based at least in part on the logical-to-physical address mapping defined by the pre-fetched information stored in the cache.
- Claim 3Depends on #1
The memory system of claim 1, wherein the processing circuitry is further configured to cause the memory system to: refrain from pre-fetching the information prior to executing the subsequent read command based at least in part on the ratio failing to satisfy the threshold value for pre-fetching the information, wherein, to execute the subsequent read command, the processing circuitry is configured to cause the memory system to: fetch the information based at least in part on executing the subsequent read command, the information comprising a table that defines the logical-to-physical address mapping; and retrieve data from the one or more memory devices for the executed subsequent read command based at least in part on the logical-to-physical address mapping defined by the fetched table.
- Claim 4Depends on #1
The memory system of claim 1, wherein the processing circuitry is further configured to cause the memory system to: execute a hibernate command of the one or more hibernate commands; flush data from a cache into the one or more memory devices based at least in part on executing the hibernate command; and enter a low power state based at least in part on executing the hibernate command.
- Claim 5Depends on #1
The memory system of claim 1, wherein the processing circuitry is further configured to cause the memory system to: increment a first count value for each sequential read command of the plurality of read commands; and increment a second count value for each hibernate command of the one or more hibernate commands, wherein the processing circuitry is configured to cause the memory system to determine the ratio based at least in part on the second count value and the first count value.
- Claim 6Depends on #1
The memory system of claim 1, wherein the threshold value for pre-fetching the information comprises a threshold ratio of 1:1.
- Claim 7Depends on #1
The memory system of claim 1, wherein the processing circuitry is further configured to cause the memory system to: receive one or more second read commands after the plurality of read commands, the one or more second read commands indicating respective second logical addresses non-sequential to the respective logical addresses; and reset, based at least in part on the respective second logical addresses being non-sequential to the respective logical addresses, a count value for pattern detection, a count value for each hibernate command, the ratio of hibernate commands to sequential read commands, or any combination thereof.
- Claim 8Independent Claim
A non-transitory computer-readable medium storing code comprising instructions which, when executed by processing circuitry of an electronic device, cause the electronic device to: receive a plurality of read commands and one or more hibernate commands; detect a sequential pattern of logical addresses based at least in part on respective logical addresses indicated by the plurality of read commands, respective transfer lengths for the plurality of read commands, or both; determine whether to pre-fetch, from one or more memory devices, information indicating a logical-to-physical address mapping for a next logical address according to the sequential pattern based at least in part on comparing a threshold value for pre-fetching the information with a ratio, the ratio being of hibernate commands to sequential read commands in the plurality of read commands; and execute a subsequent read command based at least in part on determining whether to pre-fetch the information.
- Claim 9Depends on #8
The non-transitory computer-readable medium of claim 8, wherein the instructions, when executed by the processing circuitry of the electronic device, further cause the electronic device to: pre-fetch the information prior to executing the subsequent read command based at least in part on the ratio satisfying the threshold value for pre-fetching the information; and store the pre-fetched information in a cache, wherein, to execute the subsequent read command, the instructions further cause the electronic device to: retrieve data from the one or more memory devices for the executed subsequent read command based at least in part on the logical-to-physical address mapping defined by the pre-fetched information stored in the cache.
- Claim 10Depends on #8
The non-transitory computer-readable medium of claim 8, wherein the instructions, when executed by the processing circuitry of the electronic device, further cause the electronic device to: refrain from pre-fetching the information prior to executing the subsequent read command based at least in part on the ratio failing to satisfy the threshold value for pre-fetching the information, wherein, to execute the subsequent read command, the instructions further cause the electronic device to: fetch the information based at least in part on executing the subsequent read command, wherein the information comprises a table that defines the logical-to-physical address mapping; and retrieve data from the one or more memory devices for the executed subsequent read command based at least in part on the logical-to-physical address mapping defined by the fetched table.
- Claim 11Depends on #8
The non-transitory computer-readable medium of claim 8, wherein the instructions, when executed by the processing circuitry of the electronic device, further cause the electronic device to: execute a hibernate command of the one or more hibernate commands; flush data from a cache into the one or more memory devices based at least in part on executing the hibernate command; and enter a low power state based at least in part on executing the hibernate command.
- Claim 12Depends on #8
The non-transitory computer-readable medium of claim 8, wherein the instructions, when executed by the processing circuitry of the electronic device, further cause the electronic device to: increment a first count value for each sequential read command of the plurality of read commands; and increment a second count value for each hibernate command of the one or more hibernate commands, wherein the instructions further cause the electronic device to determine the ratio based at least in part on the second count value and the first count value.
- Claim 13Depends on #8
The non-transitory computer-readable medium of claim 8, wherein the threshold value for pre-fetching the information comprises a threshold ratio of 1:1.
- Claim 14Depends on #8
The non-transitory computer-readable medium of claim 8, wherein the instructions, when executed by the processing circuitry of the electronic device, further cause the electronic device to: receive one or more second read commands after the plurality of read commands, the one or more second read commands indicating respective second logical addresses non-sequential to the respective logical addresses; and reset, based at least in part on the respective second logical addresses being non-sequential to the respective logical addresses, a count value for pattern detection, a count value for each hibernate command, the ratio of hibernate commands to sequential read commands, or any combination thereof.
- Claim 15Independent Claim
A method by a memory system, comprising: receiving a plurality of read commands and one or more hibernate commands; detecting a sequential pattern of logical addresses based at least in part on respective logical addresses indicated by the plurality of read commands, respective transfer lengths for the plurality of read commands, or both; determining whether to pre-fetch, from one or more memory devices, information indicating a logical-to-physical address mapping for a next logical address according to the sequential pattern based at least in part on comparing a threshold value for pre-fetching the information with a ratio, the ratio being of hibernate commands to sequential read commands in the plurality of read commands; and executing a subsequent read command based at least in part on determining whether to pre-fetch the information.
- Claim 16Depends on #15
The method of claim 15, further comprising: pre-fetching the information prior to executing the subsequent read command based at least in part on the ratio satisfying the threshold value for pre-fetching the information; and storing the pre-fetched information in a cache, wherein executing the subsequent read command comprises: retrieving data from the one or more memory devices for the executed subsequent read command based at least in part on the logical-to-physical address mapping defined by the pre-fetched information stored in the cache.
- Claim 17Depends on #15
The method of claim 15, further comprising: refraining from pre-fetching the information prior to executing the subsequent read command based at least in part on the ratio failing to satisfy the threshold value for pre-fetching the information, wherein executing the subsequent read command comprises: fetching the information based at least in part on executing the subsequent read command, wherein the information comprises a table that defines the logical-to-physical address mapping; and retrieving data from the one or more memory devices for the executed subsequent read command based at least in part on the logical-to-physical address mapping defined by the fetched table.
- Claim 18Depends on #15
The method of claim 15, further comprising: executing a hibernate command of the one or more hibernate commands; flushing data from a cache into the one or more memory devices based at least in part on executing the hibernate command; and entering a low power state based at least in part on executing the hibernate command.
- Claim 19Depends on #15
The method of claim 15, further comprising: incrementing a first count value for each sequential read command of the plurality of read commands; and incrementing a second count value for each hibernate command of the one or more hibernate commands, wherein the memory system determines the ratio based at least in part on the second count value and the first count value.
- Claim 20Depends on #15
The method of claim 15, wherein the threshold value for pre-fetching the information comprises a threshold ratio of 1:1.
Technical Overview & Description
CROSS REFERENCE The present application for patent is a divisional of U.S. patent application Ser. No. 17/723,096 by Urrinkala et al., entitled “ TECHNIQUES FOR PRE-FETCHING INFORMATION USING PATTERN DETECTION, ” filed Apr. 18, 2022, which claims priority to U.S. Provisional Patent Application No. 63/181,760 by Urrinkala et al., entitled “ TECHNIQUES FOR PRE-FETCHING INFORMATION USING PATTERN DETECTION, ” filed Apr. 29, 2021, each of which is assigned to the assignee hereof, and each of which is expressly incorporated by reference in its entirety herein. FIELD OF TECHNOLOGY The following relates generally to one or more systems for memory and more specifically to techniques for pre-fetching information using pattern detection. BACKGROUND Memory devices are widely used to store information in various electronic devices such as computers, user devices, cameras, digital displays, and the like. Information is stored by programing memory cells within a memory device to various states. For example, binary memory cells may be programmed to one of two supported states, often corresponding to a logic 1 or a logic 0. In some examples, a single memory cell may support more than two possible states, any one of which may be stored by the memory cell. To access information stored by a memory device, a component may read, or sense, the state of one or more memory cells within the memory device. To store information, a component may write, or program, one or more memory cells within the memory device to corresponding states. Various types of memory devices exist, including magnetic hard disks, random access memory (RAM), read-only memory (ROM), dynamic RAM (DRAM), synchronous dynamic RAM (SDRAM), static RAM (SRAM), ferroelectric RAM (FeRAM), magnetic RAM (MRAM), resistive RAM (RRAM), flash memory, phase change memory (PCM), 3-dimensional cross-point memory (3D cross point), not-or (NOR) and not-and (NAND) memory devices, and others. Memory devices may be volatile or non-volatile. V
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (15)
Non-Patent Literature (10)
- Chinese patent office,
- “
- CN Notice of Allowance, including Search Report,
- ”
- issued in connection with China Patent Application No. 202210474887.2 dated Nov. 21, 2025 (8 pages total; 4 pages Original
- &
- 4 pages machine translation).
- Chinese patent office,
- “
- China Office Action,