Adaptive Address Tracking

By dynamically adjusting the address range for accessing metadata using adaptive address tracking technology, the problem of poor prefetch performance caused by a fixed address range is solved, resulting in more efficient memory system performance.

CN113934651BActive Publication Date: 2024-10-18MICRON TECHNOLOGY INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110771239.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-08
Publication Date
2024-10-18
Estimated Expiration
2041-07-08

AI Technical Summary

Technical Problem

In existing hierarchical memory systems, the prefetching system suffers from poor prefetching performance due to its fixed address range. It cannot accurately capture access patterns in different regions, resulting in resource waste and performance degradation.

Method used

Adaptive address tracking technology is used to dynamically adjust the address range covered by accessing metadata, and address regions of different sizes are managed through data structures to improve prefetching performance.

Benefits of technology

By adaptively adjusting the address range, the accuracy and efficiency of prefetching are improved, resource consumption is reduced, and the overall performance of the memory system is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113934651B_ABST
    Figure CN113934651B_ABST
Patent Text Reader

Abstract

The present application relates to adaptive address tracking. The described apparatus and method track access metadata related to activity within a corresponding address range. The access metadata can be used to inform prefetch operations within the corresponding address range. The prefetch operations can involve deriving access patterns from the access metadata covering the corresponding range. However, for precise pattern detection, suitable address range sizes can vary significantly between different regions of the address space, particularly based on the workload generated by programs utilizing the regions. Advantageously, the described apparatus and method can adapt the address range covered by the access metadata to improve prefetch performance. A data structure can be used to manage the address range in which the access metadata is tracked. The address range can be suitable for improving prefetch performance through low-overhead operations implemented within the data structure. The data structure can encode hierarchical relationships to ensure that the generated address ranges are different.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to memory and, more particularly, to adaptive address tracking. Background Art

[0002] In order to operate efficiently, some computing systems include hierarchical memory systems, which may include multiple levels of memory. Here, efficient operation means cost efficiency and speed efficiency. Faster memory is usually more expensive than relatively slower memory, so designers try to balance their relative costs and benefits. One approach is to use a smaller amount of faster memory and a larger amount of slower memory. Faster memory is deployed in a higher layer in a hierarchical memory system than slower memory, so that faster memory is accessed preferentially. An example of relatively faster memory is called a cache memory. An example of relatively slower memory is a backup memory, which may include a main memory, a primary memory, a backup memory, etc.

[0003] Cache memory can speed up data operations by using, for example, high-performance memory cells to store and retrieve data from a backing store. High-performance memory cells enable cache memory to respond to memory requests faster than backing store. Therefore, cache memory can achieve faster responses from the memory system based on the required data present in the cache. One method to increase the likelihood that the required data is present in the cache is to pre-fetch the data before requesting the data. To this end, a pre-fetch system attempts to predict which data the processor will request and then loads the predicted data into the cache. Although a pre-fetch system can make cache memory more likely to speed up memory access operations, data pre-fetching can introduce operational complexities that engineers and other computer designers strive to overcome. Summary of the invention

[0004] One aspect of the present disclosure provides a method comprising: receiving an indication of a command to access data associated with an address of a memory address space; storing access metadata in a memory in response to the command, the access metadata being stored in a data set including one or more entries, each entry of the data set covering an address range of the memory address space and including access metadata related to addresses within the covered address range; and writing one or more bits to the memory to adjust the size of the address range covered by at least one of the entries of the data set based at least in part on one or more metrics indicating prefetch performance within the address range covered by one or more of the entries of the data set.

[0005] Another aspect of the present disclosure provides a device comprising: a first memory configured to store access metadata related to an address space, the access metadata maintained within entries of a data set, each entry of the data set covering a corresponding address range of a set of address ranges covered by the access metadata; a first logic coupled to the first memory, the first logic configured to update the access metadata in response to an indication of a command associated with an address within the set of address ranges covered by the access metadata; and a second logic configured to: maintain a data structure to define the set of address ranges covered by the access metadata within the second memory, each entry of the data set being associated with a corresponding node of the data structure, the data structure defining the address range covered by the access metadata of the entry within the data set; adjust the address range of the set of address ranges defined by the data structure based at least in part on one or more metrics associated with the access metadata, the metrics indicating prefetch performance within the set of address ranges covered by the access metadata; and write one or more bits to the first memory to configure the entries of the data set to cover the adjusted address ranges.

[0006] Another aspect of the present disclosure provides a system comprising: a component for receiving information related to a command to access data associated with an address of a memory address space; a component for storing access metadata within entries of a data set in a memory in response to the command, each entry of the data set being configured to cover a corresponding address range of a set of address ranges and including access metadata related to addresses within the covered address range; and a component for adjusting the size of an address range covered by at least one entry of the data set based at least in part on one or more metrics indicating prefetch performance within one or more address ranges of the set of address ranges. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] Details of one or more aspects of adaptive address tracking are described herein with reference to the following drawings. The same reference numerals are used throughout the drawings to represent the same features and components:

[0008] Figure 1-1 An example device that may implement adaptive address tracking is illustrated.

[0009] Figure 1-2 A further example of a device that may implement adaptive address tracking is illustrated.

[0010] Figure 2 An example device for implementing adaptive address tracking is illustrated.

[0011] Figure 3 Examples of devices and data structures for implementing adaptive address tracking are illustrated.

[0012] Figure 4Further examples of devices and data structures for implementing adaptive address tracking are illustrated.

[0013] Figure 5-1 Further examples of devices and data structures for implementing adaptive address tracking are illustrated.

[0014] Figures 5-2 to 5-9 Example techniques for managing address ranges in various adaptive address tracking implementations are illustrated.

[0015] Figure 6 Another example device that may implement adaptive address tracking is illustrated.

[0016] Figure 7 Another example device that may implement adaptive address tracking is illustrated.

[0017] Figure 8 An example cache memory that may implement adaptive address tracking is illustrated.

[0018] Fig. 9 and 10 An example flow diagram describing operations for adaptive address tracking is illustrated.

[0019] Fig.11 An example flow diagram depicting operations for modifying an address range and / or address range size covered by access metadata of an adaptive tracing engine is illustrated.

[0020] Figure 12-1 and 12-2 An example flow diagram depicting operations for reducing the size of an address range covered within access metadata by an adaptive tracing engine is illustrated.

[0021] Figure 13-1 and 13-2 An example flow diagram depicting operations for increasing the size of an address range covered by an adaptive tracing engine within access metadata is illustrated.

[0022] Fig.14 An example flow diagram describing operations for merging related access metadata entries of an adaptive tracing engine is illustrated.

[0023] Fig.15 An example flow diagram depicting operations for adaptive address tracking is illustrated.

[0024] Fig.16 An example flow diagram describing operations for adapting the size of an address range covered by access metadata to improve prefetch performance is illustrated.

[0025] Fig.17 An example of a system for implementing adaptive address tracking is illustrated.

[0026] Fig.18 Another example of a system for implementing adaptive address tracking is illustrated. DETAILED DESCRIPTION

[0027] Overview

[0028] Advances in semiconductor processing technology and microarchitecture have led to significant reductions in processor cycle times and increases in processor density. At the same time, advances in memory technology have led to increases in memory density, but with relatively small reductions in memory access time. As a result, memory latency measured in processor clock cycles continues to increase. However, cache memories can help bridge the processor-memory latency gap. A cache memory that can store data from a backup memory can service requests faster than the backup memory. In some aspects, a cache memory can be deployed "above" or "in front" of a backup memory in a memory hierarchy, such that the cache memory is preferably accessed before the slower backup memory is accessed.

[0029] The cache memory may have a lower capacity than the backing store, especially due to cost considerations. Therefore, the cache memory may be loaded with a selected subset of the address space of the backing store. Data may be selectively admitted and / or evicted from the cache memory according to appropriate criteria, such as cache admission policy, eviction policy, replacement policy, etc.

[0030] During operation, data may be loaded into the cache in response to a "cache miss". A cache miss is a request associated with an address that is not loaded into the cache and / or is not included in the working set. A cache miss can significantly degrade performance. Servicing a cache miss may involve fetching data from a backing store. Conversely, servicing a request that results in a "cache hit" may involve accessing a relatively high performance cache without incurring the latency of accessing a relatively lower performance backing store.

[0031] Cache performance can be enhanced by prefetching. Prefetching involves loading the address of a backing store into the working set of the cache before the address is requested. The prefetcher can predict the address of an upcoming request based on the address of a previous request, in particular. The predicted address can be loaded into the cache in a background operation so that when a request for the predicted address is subsequently received, the request can be serviced from the cache memory without causing a cache miss. In other words, a relatively high-performance cache memory can be used to service requests for prefetched addresses without causing delays to the relatively low-performance backing store. In some aspects, prefetching can be achieved by using idle resources. For example, when resources are needed to service an incoming request, prefetching can be terminated or suspended, and prefetching can be restarted or resumed when resources are available.

[0032] The benefit of prefetching or "prefetch utility" can be quantified according to the ratio of "useful prefetching" or useful prefetching to "bad" prefetching. As used herein, "useful" or "accurate" prefetching refers to the prefetching of addresses that result in subsequent cache hits. Useful or accurate prefetching can be the result of useful or accurate address predictions of the prefetcher. In contrast, "bad" prefetching refers to the prefetching of addresses that are not accessed before being evicted from the cache memory (e.g., not resulting in subsequent cache hits). Bad prefetching may have an adverse effect on performance. Bad prefetching may occupy limited cache memory resources with addresses that are not subsequently requested, which otherwise may have been used to cache other more frequently accessed data. Therefore, inaccurate address predictions may result in an increase in cache miss rates, cause system thrashing, increase bandwidth consumption to / from backup memory, etc.

[0033] Some prefetchers attempt to avoid these problems by attempting to detect the pattern in which memory is accessed, and then prefetching data according to the detected pattern. However, access patterns can vary between regions of the address space. The access pattern for accessing memory within a particular address range can depend on several factors, including but not limited to: the address region utilized by the program, the state of the program, the processing tasks performed by the program, the execution stage of the program, the type of data structures accessed by the program within the region, etc. Since the access pattern can vary with the region of the address space, an access pattern that produces accurate prefetches in one region of the address space can lead to inaccurate address predictions in other regions. As a non-limiting example, a program running in one region of the address space can access memory according to a first pattern in which the addresses of consecutive requests are offset by a first increment of Δ1. A program running in another region of the address space can access addresses according to a different second pattern in which consecutive requests are separated by a different second increment of Δ2. Although the first pattern is able to produce useful prefetches in the first region, if the first pattern is used in the second region, the first pattern will likely produce poor results (and vice versa) because the addresses in the second region are offset by Δ2 instead of Δ1.

[0034] Prefetch performance can be improved by tracking access metadata within various regions of the address space. The access metadata may contain information about memory accesses within the corresponding region, such as the sequence of previously requested addresses, address offsets, how many accesses occurred within a given time span, etc., which can be used to determine access patterns within the corresponding region. These access patterns can be used to prefetch data that may be requested in the near future. These regions can cover address ranges of appropriate size where the patterns are consistent. For example, a region may attempt to cover the address range where a program accesses a particular type of data structure. Tracking access metadata in this manner can produce access patterns specific to each region, which can then be used to determine accurate address predictions within each region.

[0035] Due to resource considerations, the number of regions in which access metadata is tracked, as well as the mechanism for determining the fixed size of the region, can be limited. Examples of such resource considerations include availability of hardware resources, memory consumption, storage consumption, computational complexity, etc. In addition, the address space of modern computing systems can be very large, which can exacerbate resource consumption issues. The memory management systems of many modern computing systems utilize 64-bit or even larger virtual address spaces. In order to manage resource consumption, access metadata can be tracked in fixed-size regions or "pools" that span at least a portion of the address space. The fixed size of the region can be selected through online trial and error, testing, and experience, etc., because other more computationally intensive region resizing techniques may not be performed in real time and may generate unacceptable overhead. The fixed size of the tracking region is typically set to be as large as possible while still producing acceptable prefetcher performance in order to manage resource consumption.

[0036] Although techniques utilizing fixed-size regions may impose relatively low overhead, these techniques may often lead to suboptimal or even poor results because prefetcher performance may be highly sensitive to address range size. More specifically, good prefetcher performance may rely on access metadata that covers an appropriately sized address range. The size of the fixed-size tracking region is sized to accurately capture the access pattern of the memory workload. For example, in order to accurately capture the stride access pattern within the region, the fixed size of the tracking region should roughly match the size of the data structure accessed in the region. A fixed-size region that is too large may overlap with workloads that have different access patterns. Conversely, a fixed-size region that is too small may not capture the full range of patterns generated under other workloads, making it difficult or even impossible to extract accurate, consistent access patterns.

[0037] In addition, workload characteristics such as data structure size can vary between programs and therefore between regions, which means that a fixed range size suitable for use in some parts of the address space may not be suitable for use in other parts (and vice versa). More specifically, a fixed range size that can accurately capture access patterns generated by some programs may not accurately capture access patterns generated by other programs. In addition, the workload characteristics of a program may vary over time based on program states, such as execution phases, processing tasks, data sets, etc. Although it is possible to select a fixed range size that can capture the access patterns of certain programs during certain execution phases, the selected fixed range size may not accurately capture access patterns during other execution phases, and the access patterns generated by other programs are much less. Therefore, it is impossible for a fixed-size region to achieve optimal prefetcher performance, and it may even cause performance degradation. In addition, since access metadata is usually tracked at and / or inside performance-sensitive components such as memory I / O paths, the overhead usually involved in managing address regions of dynamic size may cause designers to move away from alternatives to fixed-size technology.

[0038] To address these and other problems, adaptive address tracking techniques capable of tracking access metadata within dynamically sized address regions are described herein. The size of the address region in which the access metadata is tracked can be adjusted to provide improved prefetcher performance with reduced overhead. In some aspects, access metadata about an address space is maintained within a set of adaptive tracking regions, each corresponding region being configured to cover a corresponding address range of the address space. The size of the address range covered by the access metadata can vary from region to region. Access metadata can be tracked in a set of entries, each of which covers a specified address range. The address range (and range size) of the corresponding entry can be adapted based on the prefetcher performance within the corresponding address region. The range size can be adjusted dynamically while ensuring that the address ranges covered by the access metadata are different (e.g., non-overlapping). Capturing access metadata within an adaptively sized region can achieve improved prefetch accuracy while limiting resource consumption. The maintained access metadata can be "sparse" and only covers address ranges that benefit from prefetching and are active (e.g., in use).

[0039] The described adaptive address tracking techniques may also include using a range management data structure to manage address ranges covered by access metadata. The data structure may manage a dynamically sized set of access metadata entries that may be stored as part of a data set such that the address ranges covered by the set are different. As used herein, "different" access metadata entries refer to a set of entries that cover different, non-overlapping address ranges. The data structure may be implemented using, for example, a tree having a plurality of nodes. The data structure may be used to configure and dynamically adjust address ranges by following low-complexity operations that follow distinctive constraints (e.g., constraints that make the address ranges covered by corresponding access metadata entries different). The address range may be adapted based on feedback, such as feedback related to prefetch performance within a corresponding address range covered by the access metadata. The address range may be adjusted to improve prefetch performance, reduce overhead, and the like. Some example implementation scenarios described below relate to cache memories, correlation-based prefetching, machine learning-based prefetching, combinations thereof, and the like.

[0040] The disclosed adaptive address tracking technology can improve cache performance. For example, consider a stride prefetching technique, in which access metadata captured in a corresponding address range is used to extract a "stride pattern" in which the addresses of consecutive requests are separated by a constant offset (stride S). The stride pattern can be extracted from the access history metadata (e.g., the addresses of the N most recently requested in the corresponding address range). For example, access metadata covering a first region of the address space can produce a stride pattern in which consecutive requests are separated by the first stride amount S1. In response to a cache miss at address a in the first region, addresses a, a+S1, a+2S1... to a+dS1 can be prefetched into the cache memory, where a is the cache miss address and d is the prefetch degree. Since there are significant differences in stride patterns between regions, the stride prefetcher can use the access metadata covering each region to detect the unit stride pattern in each region. However, as disclosed herein, accurate detection of the stride pattern can rely on access metadata covering address regions of appropriate size, which can depend on the size of the data structures accessed by the program operating in each region. Therefore, the appropriate address range size can vary significantly from region to region. Therefore, access metadata tracked within a fixed-size region may not accurately model stride patterns across different regions of the address space. However, the adaptive address tracking techniques disclosed herein can adjust the size and / or range of the address region in which access metadata is tracked, thereby improving the accuracy of stride pattern detection and, in turn, improving the effectiveness of stride prefetch operations.

[0041] In other examples, the adaptive address tracking techniques disclosed herein can improve other prefetch mechanisms, such as correlation prefetchers. Correlation prefetchers attempt to learn patterns that may be repeated but not as consistent as simple stride or incremental address patterns. Correlation prefetch techniques are capable of detecting cyclic increment sequences within address sequences captured in various regions of the address space. Correlation prefetches containing an increment sequence of two elements (Δ1, Δ2) may contain prefetch addresses a+Δ1, a+Δ1+Δ2, a+2Δ1+Δ2, a+2Δ1+2Δ2, and so on (depending on the extent of the correlation prefetch operation), where a is the address at which the cache miss that triggered the correlation prefetch occurred. Since correlation prefetch techniques attempt to extract more complex patterns from access metadata, these techniques are even more sensitive to address range size. Therefore, using a fixed-size tracking area in correlation prefetching may result in poor performance due to a mismatch between the appropriate address range size and the fixed range size within the corresponding region. However, the adaptive address tracking techniques disclosed herein may be able to adjust the address range size to accurately capture the correlation and / or increment sequence patterns within different regions of the address space.

[0042] The disclosed adaptive address tracking techniques may also improve the performance of machine learning and / or machine learning (ML) prefetching implementations, such as classification-based prefetchers, artificial neural network (NN) prefetchers, recursive NN (RNN) prefetchers, long short-term memory (LSTM) prefetchers, and the like. For example, an LSTM prefetcher may be trained to model "local contexts" of memory accesses within an address space (each "local context" corresponds to a corresponding address range of the address space). These types of ML prefetching techniques may attempt to exploit local contexts because, as disclosed herein, data structures accessed by programs running within corresponding local contexts tend to be stored in contiguous blocks that are repeatedly accessed (or in a regular pattern). An ML prefetcher may be trained to develop and / or refine an ML model within a corresponding local context, and the ML model may be used to implement prefetch operations. However, due to differences in the workloads generated by programs operating within various portions of the address space, local contexts may vary significantly across the address space. For example, a local context in which a program repeatedly accesses a first type of data structure may be significantly different from a local context in which other programs may access other types of data structures according to different access patterns in other regions of the address space. Thus, an ML model trained to learn local context within one region of the address space (and / or generated by one program) may not be able to accurately model local context within other regions of the address space (and / or generated by other programs).

[0043] In addition, ML models may rely on access metadata that covers address ranges of appropriate sizes. The address range of access metadata for ML models used to develop, train, or apply a specific local context should be sized according to the size, range, area, or range covered by the specific local context. More specifically, the size of the address range should be sufficient to cover the specific local context without overlapping with other local contexts. Similar to the range size, the appropriate local context size may vary significantly based on the program associated with the local context, the state of the program, the execution stage, the data structure accessed in the local context, etc. Therefore, access metadata tracked within a fixed-size address range may not be suitable for use with ML techniques, let alone ML techniques that attempt to model access patterns within local contexts of variable sizes. However, the disclosed adaptive address tracking technology can be used to capture, maintain, and / or otherwise manage access metadata covering address ranges corresponding to local contexts of different sizes. More specifically, the size of the address range covered by each access metadata entry can be suitable for covering each local context modeled by the ML prefetcher.

[0044] Thus, the described techniques for adaptive address tracking can be used with caches and other hierarchical memory systems, with different types of prefetching, with implementations of combined prefetching and cache memory, and the like. To this end, a memory address space of a memory system is divided into a plurality of address ranges. An adaptive tracking engine generates a data set comprising one or more entries, each entry covering an address range of the address space and comprising access metadata for the covered address range. Examples of access metadata include information related to memory accesses within the covered address range, access statistics, access pattern statistics, access history, access sequence, access frequency metadata, access time metadata, access pattern metadata, stride pattern, correlation pattern, increment sequence, access modeling metadata, ML modeling metadata, ML feature data, and the like.

[0045] In operation, the adaptive tracking engine can adjust the address range set covered by the access metadata, which may include adjusting the size of the address range covered by one or more entries of the data set. In order to facilitate the adjustment of the address range size, the adaptive tracking engine can maintain a data structure. For example, the data structure can be implemented using at least one tree or multi-layer map data structure with multiple nodes. The data structure can include multiple node layers, each layer corresponding to a specific address range size. Compared with the nodes at relatively high levels of the tree, the nodes at relatively low levels of the tree can correspond to relatively small address ranges. Each leaf node or node at the end of a tree branch can link or point to an associated entry of the data set. Therefore, there can be a corresponding relationship between the node layer of a given node of the tree and the address range size indicated by the associated entry pointed to by the given node. The data structure can encode the parent-child relationship between nodes, which can correspond to the inclusion relationship between the address ranges represented by the nodes. In some embodiments, each child node of a parent node represents a corresponding subset of the address range represented by the parent node.

[0046] In order to adjust the address range size, effective data structure operations can manipulate the nodes of the tree. For example, the operation can move a given node to a different node layer corresponding to a different address range size. Such data structure operations include splitting nodes, merging nodes, etc. The nodes in the upper layer of the data structure are split into multiple lower nodes, each of which covers a corresponding subset of the address space covered by the upper node. A group of one or more nodes in the lower layer of the data structure can be merged into a higher layer node, and the address range covered by the higher layer node is greater than and includes the address range covered by the lower layer node group. Similar operations are performed on one or more related entries of the data set to maintain consistency between the nodes of the data structure and the entries of the data set. In some cases, the entries of the data set can be stored together with the nodes of the data structure. In these ways, the described technology for adaptive address tracking facilitates the use of effective storage and operation mechanisms to track metadata about address requests with variable granularity. The memory address range granularity can be adaptively changed during operation to adapt to or take into account different programs, different program states, various data structures or data structure types, completely different prefetch strategies (e.g., related or based on ML), etc.

[0047] Instance operating environment

[0048] Figure 1-1An example apparatus 100 is illustrated in which adaptive address tracking may be implemented. Apparatus 100 may be implemented, for example, as at least one electronic device. Example electronic device implementations include an Internet of Things (IoT) device 100-1, a tablet reload 100-2, a smart phone 100-3, a notebook computer 100-4, a desktop computer 100-5, a server computer 100-6, a server cluster 100-7, and the like. Other device examples include wearable devices, such as smart watches or smart glasses; entertainment devices, such as set-top boxes or smart TVs; motherboards or server blades; consumer appliances; vehicles; industrial equipment; and the like. Each type of electronic device includes one or more components to provide certain computing functions or features.

[0049] In an example embodiment, the device 100 includes at least one host 102, at least one processor 103, at least one memory controller 104, and at least one cache memory 106. The device 100 may also include at least one interconnect 105 and at least one backing memory 108. The backing memory 108 may represent main memory, system memory, backing memory, a combination thereof, and the like. The backing memory 108 may be implemented with any suitable memory facility, including but not limited to: a memory array, a semiconductor memory, a random access memory (RAM), a dynamic RAM (DRAM) device or module, a static RAM (SRAM) device or module, a three-dimensional (3D) stacked DRAM device or module, a double data rate (DDR) memory, a synchronous DRAM (SDRAM) device or module, a high bandwidth memory (HBM) device or module, a hybrid memory cube (HMC), and the like. Alternatively or additionally, the backing memory 108 may be implemented with a device or module including a storage class memory, such as a solid-state memory, a flash memory, a 3D XPoint TM Memory, phase change memory (PCM), etc. Other examples of backing memory 108 are described herein. In some aspects, host 102 may further include and / or be coupled to a non-transitory storage device, which may be implemented with a device or module including any suitable non-transitory, persistent, solid-state, and / or non-volatile memory.

[0050] As shown, host 102 or host device 102 may include processor 103 and / or memory controller 104. Processor 103 may be coupled to cache 106-1, and cache 106-1 may be coupled to memory controller 104. Processor 103 may also be coupled directly or indirectly to memory controller 104. Host 102 may be coupled to cache 106-2 via interconnect 105. Cache 106-2 may be coupled to backing store 108.

[0051] The components of the depicted device 100 represent an example computing architecture having a memory hierarchy (or hierarchical memory system). For example, cache memory 106-1 can be logically coupled between processor 103 and cache memory 106-2. In addition, cache memory 106-2 can be logically coupled between processor 103 and backing memory 108. Figure 1-1 In the example of , cache 106-1 is at a higher memory hierarchy than cache 106-2. Similarly, cache 106-2 is at a higher memory hierarchy than backing store 108. The indicated interconnect 105 and other interconnects coupling various components may enable data to be transferred between or among the various components. Examples of interconnects include a bus, a switch fabric, one or more wires carrying voltage or current signals, and the like.

[0052] Despite Figure 1-1 Specific embodiments of device 100 are shown in and described herein, but device 100 may be implemented in alternative ways. For example, host 102 may include additional cache memory, including multiple levels of cache memory (e.g., multiple cache layers). In some embodiments, processor 103 may include one or more internal memories and / or cache layers, such as instruction registers, data registers, L1 cache, L2 cache, L3 cache, etc. In addition, at least one other cache memory and backup memory pair may be coupled "below" the cache memory 106-2 and backup memory 108 shown. Cache memory 106-2 and backup memory 108 can be implemented in various ways. In some cases, cache memory 106-2 and backup memory 108 are both arranged on the motherboard or physically supported by the motherboard, wherein backup memory 108 includes "main memory". In other cases, cache memory 106-2 includes DRAM and / or is implemented therefrom, and backup memory 108 includes non-temporary memory devices or modules and / or is implemented therefrom. However, these components may be implemented in alternative ways, included in distributed or shared memory systems. In addition, a given device 100 may include more, fewer or different components.

[0053] Cache memory 106-2 may be configured to speed up memory I / O by, among other things, storing the address of backing memory 108 within the relatively high performance cache memory 106-2. Figure 1-1In an example of , cache memory 106-2 may include and / or be coupled to an adaptive tracking engine 110, which may be configured to capture, maintain, track and / or otherwise manage metadata related to accesses within a corresponding address range of an address space (access metadata 112). Access metadata 112 may include information related to any suitable address space, including but not limited to: a memory address space, a storage address space, a host address space, an input / output (I / O) address space, a storage address space, an address space of a backing store 108, a main memory address space, a virtual memory address space, and address spaces managed by a processor 103, a memory controller 104, a memory management unit (MMU), etc.

[0054] The adaptive tracing engine 110 captures access metadata 112 related to corresponding regions and / or address ranges of the address space. The adaptive tracing engine 110 may also be configured to adapt the regions and / or address ranges based on feedback from consumers 115 of the access metadata 112. As used herein, the consumer 115 refers to any component, element, module, and / or process configured to and / or capable of utilizing and / or otherwise consuming the access metadata 112 maintained by the adaptive tracing engine 110, including but not limited to: the processor 103, the memory controller 104, the MMU, the cache layer, the cache memory 106 (e.g., the cache memory 106-1 and 106-2), the cache control logic, the cache prefetch logic, the prefetch logic, the prefetcher, the scheduler, the I / O scheduler, and the like.

[0055] exist Figure 1-1 , cache memory 106-2 is a consumer 115 of access metadata 112 and can utilize access metadata 112 to prefetch addresses of backing memory 108. Adaptive tracing engine 110 can receive feedback regarding prefetch performance within various regions covered by access metadata 112 and can adjust the address range covered by access metadata 112 to improve precision, thereby producing more accurate address predictions with limited resource overhead. Thus, adaptive tracing engine 110 can improve memory I / O performance by enabling cache memory 106-2, in particular, to improve prefetch performance, resulting in a lower cache miss rate.

[0056] Despite Figure 1-1 In the example of , the adaptive tracing engine 110 is shown as a component of the cache memory 106-2, but the present disclosure is not limited in this regard. In other examples, the adaptive tracing engine 110 can be coupled to any suitable consumer 115 via any suitable interconnect. Figure 1-2In the example shown, the adaptive tracing engine 110 is coupled to the interconnect 105 of the host 102 and is configured to capture access metadata 112 by, among other things, monitoring traffic on the interconnect 105 and / or interconnects of the memory hierarchy, including but not limited to interconnects coupling the processor 103 to the cache memory 106-1, coupling the cache memory 106-1 to the memory controller 104, coupling the cache memory 106-2 to the backing memory 108, etc. The adaptive tracing engine 110 may provide the access metadata 112 (and / or portions thereof) to one or more consumers 115 via the interconnect 105 or other interconnects.

[0057] Example scheme and device for adaptive address tracking

[0058] Figure 2 An example device 200 implementing an adaptive tracing engine 110 is illustrated. The adaptive tracing engine 110 is configured to capture, maintain, and / or manage access metadata 112 covering multiple regions and / or address ranges of an address space. Figure 2 In the example of , the access metadata 112 is included and / or maintained in an access data set 210 (or data set 210). The access data set 210 includes a set of one or more access metadata entries 211 (or multiple entries 211), each entry 211 is defined to cover a corresponding address range and includes access metadata 112 related to the covered address range. The data set 210 can include any number of entries 211. Figure 2 In the example of , data set 210 includes N entries 2111 to 211-N. Data set 210 may be implemented, stored, and / or embodied in any suitable memory and / or storage resource. Figure 2 In the example of , the access data set 210 is maintained in the memory 208. The memory 208 may be configured to access the data set 210 and / or access the metadata 112 memory. The memory 208 may be implemented by a semiconductor integrated circuit, a memory array, a memory group, a memory chip, a memory cell, a DRAM, a SRAM, a SDRAM, an on-board memory resource of the adaptive tracking engine 110, a memory resource of the host device 102, a main memory, a cache memory 106, a cache line, a backing memory 108, an external memory resource, a peripheral memory resource, etc. The access data set 210 may be implemented by using any suitable type of structured data, including but not limited to: a table, a lookup table, a mapping table, an array, a list, a tree, a prefix tree, a dictionary tree, a radix tree, etc.

[0059] like Figure 2As shown, an entry 211 of the access data set 210 includes access metadata 112 related to a specified address range. Thus, the access metadata entry 211 may be configured as a range entry 211, a tracking entry 211, a range tracking entry 211, an access metadata tracking entry 211, etc. The entry 211 may include any suitable information related to the access metadata 112, including but not limited to: range metadata 214 to specify the address range covered by the entry 211, access metadata 112 related to the covered address range, etc. The range metadata 214 may define the covered address range using any suitable information, including but not limited to: address boundaries, minimum and maximum address boundaries, address tags, address tag boundaries, minimum and maximum address tags, base address and length, one or more tuples, etc. Thus, the address range covered by the entry 211 may be specified, defined, modified and / or manipulated, among other things, by writing one or more bits to the memory 208 (e.g., writing one or more bits to the range metadata 214 of the entry 211 maintained within the memory 208).

[0060] The access metadata 112 of entry 211 may include any information related to the address range covered by entry 211, which may include but is not limited to: information related to accesses within the covered address range, access statistics, access pattern statistics, access history, access sequence, access frequency metadata, access time metadata, access pattern metadata, stride pattern, correlation pattern, increment sequence, access modeling metadata, ML modeling metadata, ML feature data, etc.

[0061] In some examples, adaptive tracking engine 110 includes and / or is coupled to logic 220. Logic 220 may be configured to implement the functionality of adaptive tracking engine 110, as disclosed herein. Figure 2 In some examples, the logic 220 is configured as and / or configured to implement interface logic (interface 222), update logic 224, and management logic 226. The logic 220 and / or other components disclosed herein may be provided, implemented, and / or realized by logic elements, which may include but are not limited to: circuits, logic circuits, control circuits, interface circuits, I / O circuits, fuse logic, analog circuits, digital circuits, logic gates, registers, switches, multiplexers, arithmetic logic units (ALUs), state machines, microprocessors, processor-in-memory (PIM) circuits, etc. Alternatively or additionally, in some examples, portions of the adaptive tracking engine 110, such as the logic 220, interface 222, update logic 224, management logic 226, etc., may be embodied as processor-executable instructions stored on a non-transitory storage medium. In some examples, portions of the logic 220 and / or its functions may be implemented by processing resources of the host device 102, such as the processor 103.

[0062] The interface 222 may be configured to provide the access metadata 112 (and / or portions thereof) to one or more consumers 115. The interface 222 may provide the access metadata 112 to the consumers 115 in response to a data request. The interface 222 may receive a request for access metadata 112 related to a specified address, and in response, may return access metadata 112 corresponding to the specified address as a response. Alternatively or additionally, the interface 222 may be configured to enable the consumers 115 to interact with the access metadata 112. The interface 222 may provide and / or implement an application programming interface (API) and / or other lower level interfaces through which the consumers 115 retrieve the access metadata 112. The interface 222 may enable the consumer 115 to issue queries related to the access metadata 112, such as queries for: identifying the corresponding address range covered by the corresponding entry 211 of the access metadata 112, determining the address range and / or range size covered by the entry 211, retrieving the access metadata 112 covered by the specified entry 211, retrieving the access metadata 112 covering the specified address and / or address range, etc.

[0063] The update logic 224 is configured to update, refine, and / or determine the access metadata 112, in particular, in response to an operation related to an address 202 covered by the access metadata 112. The access metadata 112 may be updated in response to any suitable type of operation, instruction, message, command, and / or indication thereof to retrieve, modify, operate, and / or otherwise access data (generally referred to herein as a command 201), including but not limited to: a data access request, a read request, a write request, a copy request, a clone request, a trim request, an erase request, a delete request, a cache miss, a cache hit, etc. In response to the command 201, the update logic 224 maps the address 202 (or address range) related to the command 201 to the entry 211 covering the address 202, and updates the access metadata 112 of the entry 211 accordingly (e.g., based on the event type, event characteristics, event data, etc.). Update logic 224 may be configured to map address 202 to entry 211 by, among other things, comparing address 202 to range metadata 214 of entry 211. As disclosed in greater detail herein, commands 201 relating to address 202 that is not mapped to an address range covered by access metadata 112 may result in a trace miss.

[0064] The interface 222 of the adaptive tracing engine 110 may receive the command 201 (and / or an indication of the command 201) from one or more sources 215. As used herein, the source 215 refers to any suitable source of information regarding the command 201 related to the address space, such as the processor 103, the memory controller 104, the MMU, the interconnect 105, the cache 106, the prefetcher, the cache prefetch logic, etc. In some aspects, the interface 222 may be configured to obtain the command 201 and / or information related to the command 201 by, among other things, monitoring traffic on an interconnect coupling components of the memory hierarchy of the host device 102, such as an interconnect coupling the processor 103 to the cache 106-1, coupling the cache 106-1 to the memory controller 104, coupling the memory controller 104 to the cache 106-2, coupling the cache 106-2 to the backing memory 108, etc. Alternatively or additionally, the interface 222 may receive information related to commands 201 captured and / or generated by other components, such as commands 201 corresponding to cache misses generated by the cache 106. In some aspects, the consumer 115 may be configured as a source 215 (or vice versa). As a non-limiting example, the cache 106 may be configured as both a consumer 115 and a source 215 of the adaptive tracing engine 110. The adaptive tracing engine 110 may: receive commands 201 and / or indications of commands 201 related to a memory address space from the cache 106, such as cache misses, and provide access metadata 112 to the cache 106 (and / or its prefetch logic).

[0065] The adaptive tracing engine 110 provides the access metadata 112 to the consumer 115, inter alia, through the interface 222. The consumer 115 may utilize the access metadata 112 to implement operations within the respective address ranges covered by the access metadata 112, and may generate feedback 204 related to the operations. The feedback 204 may be configured to quantify the utility of the access metadata 112 in the operations implemented by the consumer 115 within the respective address ranges. The update logic 224 may be configured to determine, update, and / or modify a utility metric 213 of a respective entry 211 of the access data set 210 in response to feedback related to the access metadata 112 of the entry 211 and / or the address ranges covered by the entry 211. In one example, the adaptive tracing engine 110 determines the utility metric 213 based on the feedback 204 from a prefetcher, which is configured to implement prefetch operations using the access metadata 112 covering the respective address ranges. The feedback 204 received from the prefetcher may quantify the prefetch utility and / or performance within the covered address ranges. Alternatively or additionally, the adaptive tracing engine 110 may determine a utility metric 213 based at least in part on commands 201 related to addresses 202 within the corresponding address range. The adaptive tracing engine 110 may be configured to estimate prefetcher performance within the address range based on a frequency and / or ratio of cache hits to cache misses detected within the address range, a number of cache hits to prefetched addresses, evictions of prefetched addresses, etc. Thus, the utility metric 213 determined for the access metadata 112 and / or the corresponding entry 211 of the access data set 210 may quantify the prefetcher performance within the corresponding address range covered by the access metadata 112. The utility metrics 213 may include any information related to prefetch performance and / or utility, including but not limited to: the number of useful prefetches determined within the corresponding address range covered by the access metadata 112, the useful prefetches during each window, the ratio of useful prefetches to bad prefetches, the ratio of useful prefetches to bad prefetches during each window, the number of accurate address predictions, the accurate address predictions during each window, the ratio of accurate address predictions to inaccurate predictions, the ratio of accurate address predictions to inaccurate address predictions during each window, etc.

[0066] As disclosed in greater detail herein, the management logic 226 of the adaptive tracking engine 110 may be configured to adjust the address ranges covered by the access metadata 112 and / or the size of such ranges based, inter alia, on the utility metrics 213 of the access metadata. In some instances, the address ranges covered by the access metadata entries 211 having relatively high utility metrics 213 may be expanded, while the address ranges covered by the entries 211 having relatively low utility metrics 213 may be contracted (or removed). Access metadata entries 211 covering adjacent address ranges and having similar utility metrics 213 may be merged, thereby reducing overhead. In some aspects, the address ranges and / or the range sizes covered by the corresponding access metadata entries 211 of the data set 210 may be adjusted based on an adjustment policy. The adjustment policy may define thresholds and / or other criteria to trigger modifications to the set of address ranges covered by the access metadata 112, such as increasing the size of one or more address ranges, decreasing the size of one or more address ranges, merging one or more address ranges, splitting one or more address ranges, removing one or more address ranges, and the like. Alternatively or additionally, the set of address ranges covered by access metadata 112 may be adjusted according to an optimization algorithm. The optimization algorithm may be configured to determine the address ranges of corresponding entries 211 that produce the best utility metric 213 at minimum cost, which may be quantified in terms of resource requirements, management overhead, etc.

[0067] Figure 3 An example of a device 300 for implementing adaptive address tracking and / or adaptive tracking engine 110 as disclosed herein is illustrated. Figure 3 In an example of the present invention, the access data set 210 is implemented as and / or within a range management data structure (data structure 310). The data structure 310 can define the address range covered by the access metadata entries 211 of the data set 210. In some aspects, the data structure 310 can implement and / or embody the access data set 210. Alternatively, and as disclosed in more detail herein, the data structure 310 and the access data set 210 can be maintained separately and / or within different memory resources.

[0068] The management logic 226 of the adaptive tracing engine 110 utilizes a data structure 310 to map, associate, correlate, and / or otherwise associate an address 202 with an address range covered by a corresponding entry 211 of the access metadata 112. The data structure 310 may be configured to represent a sparse set of address ranges of varying sizes covering a subset of an address space. The data structure 310 may implement the address ranges covered by the corresponding access metadata entries 211 of the data set 210 to improve accuracy and reduce overhead while ensuring uniqueness. The data structure 310 may include and / or be implemented by any suitable type of data management structure, including but not limited to: a table, a lookup table, a mapping table, a multi-level mapping table, a tree, a dictionary tree, a prefix tree, a radix tree, and the like.

[0069] In some aspects, management logic 226 configures data structure 310 to define multiple address range sizes. Figure 3 As shown, the data structure 310 may include a plurality of layers 320, each layer 320 corresponding to a respective one of a plurality of range sizes. The nodes 311 within each layer 320 of the data structure 310 may be configured to represent an address range of a respective one of the range sizes. The layers 320 of the data structure 310 may be organized hierarchically. In some aspects, the layers 320 of the data structure 310 are arranged in a range size hierarchy (or size hierarchy), wherein the layers 320 correspond to larger address ranges at the top of the hierarchy, and the layers 320 correspond to smaller address ranges at lower levels of the hierarchy. Figure 3 In the example, the data structure 310 includes N layers 320, including a first layer or bottom layer 320-1 corresponding to the smallest or minimum address range size among multiple range sizes, a second layer 320-2 corresponding to the next larger range size, and so on, and the last layer or top layer 320-N of the data structure 310 corresponds to the largest range size among the multiple address range sizes.

[0070] The adaptive tracking engine 110 may use a data structure 310 to divide the address 202 into multiple segments, including an address tag 302 and a minimum offset 301. The minimum offset 301 may be defined in the least significant bit (LSB) address area. MO ) may determine the minimum or smallest range size among the multiple range sizes defined by the data structure 310. The minimum range size may be represented as Where S1 is the minimum range size, B MO is the number of bits contained in the minimum offset 301. Therefore, the minimum range size can be adjusted by adjusting the number of bits contained in the minimum offset 301, in particular.

[0071] The data structure 310 further divides the address tag 302 into a plurality of sub-tags 304, each of which is assigned to a respective layer 320 of the data structure 310 and corresponds to a respective segment, portion, or region of the address tag 302. The sub-tags 304 may be assigned to the layers 320 of the data structure 310 according to a range size hierarchy of the data structure 310. More specifically, the sub-tags 304 may be assigned to the respective layers 320 by range size (and / or based on the position of the respective layers 320 within the range size hierarchy). In some aspects, as described below Figure 3 As shown in Table 1, the sub-labels 304 are assigned from the LSB to the most significant bit (MSB).

[0072]

[0073] Table 1

[0074] Table 1 illustrates the partitioning of a 64-bit address for an example data structure 310 having N layers 320. By specifying the 12 LSBs of address 202 as the minimum offset 301 and the remaining 52 MSBs as address tags 302, the minimum range size of the example data structure 310 is set to 4K (4096 addresses). The minimum range size can be set to any suitable number. In some aspects, the minimum range size is set according to the characteristics of the address space (and / or the backing memory 108). The minimum range size can be set to the memory page size (e.g., when used with a backing memory 108 with a 4K page, a memory controller 104 with a 4K virtual page size, etc., the minimum range size can be set to 4K). In Table 1, the address tag 302 is further divided into sub-tags 304-1 to 304-N. The sub-tags 304 can be assigned to the layers 320 of the data structure 310 according to the range size hierarchy of the data structure 310. The LSB subtag 304-1 may be assigned to the lowest level 320-1 of the data structure 310, the next MSB subtag 304-2 may be assigned to the next higher level 320-2 of the data structure 310, and so on, with the MSB subtag 304-N being assigned to the highest level 320-N of the data structure 310. Although the addresses 202 are shown and described herein with reference to a large character order format, the present disclosure is not limited thereto and may be applied to addresses 202 in any suitable format, encoding, or character order.

[0075] The sub-tags 304 may be used to form a region tag 332 for each layer 320 of the data structure 310. The region tags 332 may be formed, in particular, by traversing the layers 320 of the data structure 310 from the top of the hierarchy (layer 320-N) to the lower layers 320 of the hierarchy (towards layer 320-1). Thus, the region tags 332 of each layer 320 may determine the size of the address range represented by the nodes 311 within each layer 320.

[0076] like Figure 3 As shown in Table 2 below, the region tag 332 of each layer 320 may be formed from the subtag 304 assigned to the layer 320 and the subtag 304 of the corresponding upper layer 320 (e.g., the layer 320 above the layer 320 in the size hierarchy, if any), with the remainder of the address forming the region offset 331 of the layer 320. Thus, each layer 320 of the data structure 310 may have a corresponding region scheme 322 defining a corresponding region tag 332, which is configured to uniquely identify an address range of a corresponding size (the size of each region is determined, among other things, by the number of address bits contained in its region offset 331):

[0077]

[0078] Table 2

[0079] In the example of Table 2, the subtag 304-N assigned to the layer 320-N contains the 12 MSBs of the address tag 302. In the zone scheme 322-N of the layer 320-N, the zone tag 332-N is formed by the subtag 304-N (because the layer 320-N is at the top of the size hierarchy), and the remaining 52 bits form the zone offset 331-N of the layer 320-N. The zone offset 331-N defines the range size of the layer 320-N. In the example of Table 2, the node 311 of the layer 320-N (N-layer node 311) represents an address range with a range size of 2^56 per zone offset 331-N. Therefore, each N-layer node 311 of the data structure 310 can cover a different range of 2^56 addresses of the address space, each address range being uniquely identified by a respective zone tag 332-N value. The middle layer 320 between layers 320-N and 320-2 may be assigned a subtag 304 formed by the next 24 MSBs of the subtag 304 (in Table 2 or Figure 3 320-2, to avoid obscuring the details of the illustrated example). In the zone scheme 322-2 of layer 320-2 of the data structure 310, the subtag 304-2 assigned to layer 320-2 includes 8 bits, and the zone tag 332-2 of layer 320-2 is formed by the subtag 304-2 and the subtag 304 of the upper layer 320, including the subtag 304-N of layer 320-N and the subtag 304 assigned to any intermediate layer 320. As shown, the zone tag 332-2 is constructed according to the hierarchical structure defined by the data structure 310, wherein the MSB of the zone tag 332-2 is formed by the top-level subtag 304-N, and the LSB of the zone tag 332-2 is formed by the subtag 304-2. The zone tag 332-2 of layer 320-2 includes 44 bits, and the remaining 20 bits form the zone offset 331-2. Therefore, layer 320-2 of the data structure 310 can correspond to a range size of 2^20. The nodes 311 of the second layer 320-2 of the data structure 310 (second layer nodes 311) may cover a corresponding address range of 2^20 addresses, each of which is uniquely identified by a corresponding 44-bit zone tag 332-2 value. In the zone scheme 322-1 of the first bottom layer 320-1 of the data structure 310, the zone tag 332-1 is formed by subtags 304-N to 304-1. Therefore, the zone tag 332-1 may contain 52 bits, and the remaining 12 bits define the minimum range size of the data structure 310. The first layer nodes 311 of the layer 320-1 may cover a corresponding range of 2^12 addresses, each of which is uniquely identified by a corresponding 52-bit zone tag 332-1 value.

[0080] Figure 3A further example of a node 311 of the disclosed data structure 310 is illustrated. The node 311 of the data structure 310 may contain any information related to the address range, including but not limited to: a node label 314, coverage data 316, etc. The node label 314 may be configured to uniquely identify the node 311 within each layer 320 of the data structure 310. The node label 314 of the node 311 within each layer 320 of the data structure 310 may be assigned a unique value corresponding to the sub-label 304 of the layer 320. The size of the node label 314 may be determined by the area scheme 322 of the layer 320 (e.g., based on the number of bits contained in the sub-label 304 assigned to the layer). In the example of Table 2, the node tag 314 of the node 311 within the layer 320-N of the data structure 310 contains a 12-bit value corresponding to the subtag 304-N (address bits 63-52), the node tag 314 of the node 311 within the layer 320-2 is an 8-bit value corresponding to the subtag 304-2 (address bits 27-20); the node tag 314 of the node 311 within the layer 320-1 is an 8-bit value corresponding to the subtag 304-1 (address bits 19-12), and so on.

[0081] exist Figure 3In an example of a corresponding node 311, the coverage data 316 of the corresponding node 311 may include and / or reference: a) access metadata 112 and / or access metadata entries 211 configured to cover the address range defined by the node 311, or b) a child node 311 organized within a lower level substructure 312. The management logic 226 may configure the access metadata entries 211 contained within and / or referenced by the corresponding node 311 of the data structure 310 to cover the address range defined by the corresponding node 311. Therefore, the access metadata entries 211 contained in and / or referenced by the corresponding node 311 of the data structure 310 may be configured to cover or "occupy" the address range of the corresponding node 311. Conversely, a node 311 having coverage data 316 that does not include and / or reference an access metadata entry 211 may be designated as "developed" or "unoccupied." The management logic 226 may require that an open node 311 reference a substructure 312 within an adjacent lower level 320 of the data structure 310; a node 311 having overlay data 316 that does not contain or reference an access metadata entry 211 or a substructure 312 may be removed from the data structure 310. The management logic 226 may implement address range distinctiveness by, inter alia, preventing an occupied node 311 (a node 311 that contains and / or references an access metadata entry 211) from having a child node 311 within the data structure 310, removing the child nodes 311 of the occupied node 311 from the data structure 310 (and invalidating and / or removing the corresponding entry 211 of the child node 311 from the data set 210), etc. In a tree-based implementation, the management logic 226 may configure an occupied node 311 as a leaf node 311 (a node 311 that does not reference any lower level child node 311), and may configure an open node 311 as a non-leaf node 311 (a node 311 that references a child node 311 within an adjacent lower layer 320 of the data structure 310).

[0082] The data structure 310 may be configured to encode a hierarchical parent-child relationship between nodes 311 disposed within different layers 320 of the data structure. A parent node 311 within an upper layer 320 of the data structure 310 may reference a child node 311 within a lower layer of the data structure 310. The hierarchical parent-child relationship encoded within the data structure 310 may correspond to an address range containment relationship. More specifically, each child node 311 of a parent node 311 may cover a corresponding unique subset of the address range covered by the parent node 311. In the example of Table 2, a node label 314 of a node 311 within a layer 320-N of the data structure 310 (N-layer node 311) may be assigned "0x000". Therefore, the N-layer node 311 covers an address range of size 2^52 with boundaries {"0x0000 0000 0000", "0x000F FFFF FFFF FFFF"}. (For clarity, the portion of the address range corresponding to the region tag 332 (such as region tag 332-N "0x000") is shown in bold herein.) Since the region tag 332 of the child node 311 inherits the node tag 314 (child tag 304) of the upper-level parent node 311, the child node 311 of the N-level node 311 "0x000" will cover a subset of the address range covered by the N-level node 311 "0x000". For example, the N-level node 311 "0x000" may reference a child (or grandchild) node 311 within the second level 320-2 of the data structure 310. Since the second-level node 311 includes the "0x000" node tag 314 of its N-level parent node 311, the second-level node 311 must cover a subset of the address range covered by the N-level parent node 311. For example, the second-level node 311 may have a node label 314 of "0x22", and the node label 314 of the intermediate parent node 311 may be "0x000000", resulting in a 44-bit region label 332-2 of "0x0000 0000 022" and coverage of a 2^20 address range with boundaries {"0x0000 0000 0220 0000", "0x0000 0000 022F FFFF"}. As shown, the 2^20 address range covered by the second-level node 311 "0x22" is contained within the address range covered by the N-level parent node 311 "0x000". Similarly, the child nodes 311 of the second-level node 311 "0x22" within the first-bottom-level 320-1 of the data structure 310 cover a subset of the address range covered by the second-level node 311 "0x22" (as well as the address range covered by the higher-level parent node 311 including the N-level node 311 "0x000").As another example, a second-level node 311 "0x22" may reference a first-level child node 311 having a node label 314 "0x11", resulting in a region label 332-1 "0x0000 0000 0221 1" and coverage of a 2^12 address space with boundaries {"0x0000 0000 0221 1000", "0x0000 0000 0221 1FFF"}. As shown, the 2-12 address ranges covered by the first-level node 311 "0x11" cover a subset of the address range covered by the second-level parent node 311 "0x22" and its N-level parent node 311 "0x000". The first-level child node 311 of the second-level node 311 "0x22" may be included in a substructure 312, such as. Figure 3 As shown. The substructure 312 within the corresponding lower level 320 of the data structure 310 can arrange, organize and / or index the child nodes 311 by their node labels 314 (the nodes 311 within the corresponding substructure 312 can be uniquely identified by their node labels 314). The lower level 320 of the data structure 310 can contain a substructure 312 for each unique parent node 311 within the adjacent upper level 320.

[0083] As disclosed herein, the management logic 226 may configure the relationship between nodes 311 of the data structure 310 to represent an address range relationship. The parent-child relationship between an upper node 311 and a lower node 311 may be configured to represent an address range containment relationship, where the lower child nodes 311 of the upper parent node 311 cover a corresponding subset of the address range covered by the upper parent node 311. Figure 3 As shown, the data structure 310 can define a parent-child relationship between an upper node 311 and a lower node 311 (or a substructure 312 including lower child nodes 311 of each upper parent node 311). As disclosed herein, the parent-child relationship can correspond to an address range containment relationship. The child node 311 of the upper parent node 311 contains lower nodes 311 that cover a subset of the address range covered by the parent node 311. As described above, the management logic 226 can use the data structure 310 to ensure that the address ranges covered by the occupied nodes 311 are different, in particular by removing the child nodes (if any) of the occupied node 311 from the lower layer 320 of the data structure 310 and / or preventing the child nodes of the occupied node 311 (and / or the corresponding access metadata entries 211) from being created.

[0084] The management logic 226 may also be configured to encode sibling relationships between nodes 311 within the data structure 310. A sibling node 311 refers to a node 311 that is a) disposed within the same layer 320 of the data structure 310 and b) referenced by the same parent node 311 within an adjacent upper layer 320 of the data structure 310. The sibling nodes 311 may be disposed within corresponding substructures 312, each substructure 312 corresponding to a unique parent node 311 within an adjacent upper layer 320 of the data structure 310. The sibling nodes 311 within each substructure 312 may be uniquely identified by their node tags 314 (by the subtags 304 assigned to the layer 320), thereby ensuring that the address range covered by the sibling nodes 311 at each layer 320 of the data structure 310 is unique and different. Furthermore, since the substructures 312 in each layer 320 of the data structure 310 correspond to a unique upper-level parent node 311 , the nodes 311 in each layer 320 (and / or on the substructures 312 in each layer 320 ) are different and unique.

[0085] The management logic 226 can utilize the hierarchical relationship encoded within the data structure 310 to efficiently define different address ranges of different sizes and / or ranges. The management logic 226 can utilize the hierarchical relationship of the data structure 310 to implement address range manipulations that impose low computational overhead while ensuring distinctiveness. The management logic 226 can efficiently define a set of address ranges within the data structure 310 and configure the access metadata 112 accordingly. For example, the management logic 226 can configure the access metadata entries 211 of the data set 210 to cover the set of address ranges defined by the corresponding nodes 311 of the data structure 310. The management logic 226 can, in particular, efficiently adapt the size and / or range of the set of address ranges by manipulating the data structure 310. The management logic 226 can implement manipulations that define a set of modified address ranges that are guaranteed to be unique and distinct (according to the hierarchical relationship of the data structure 310). The management logic 226 can then configure the access metadata entries 211 of the data set 210 to cover the set of modified address ranges.

[0086] The management logic 226 may modify the data structure 310 to adjust the defined set of address ranges based at least in part on the utility metric 213 of the access metadata 112. Modifications to the data structure 310 may be propagated to and / or implemented within the access data set 210, particularly by reconfiguring the set of address ranges covered by the respective access metadata entries 211 to correspond to the adjusted set of address ranges of the data structure 310. In one example, the management logic 226 may increase the size of the address range covered by the access metadata entry 211 by one or more of: merging a node 311 associated with the entry 211 with one or more sibling nodes 311, merging the node 311 into a parent node 311 within an upper layer 320 of the data structure 310, promoting the node 311 to a higher layer 320 of the data structure 310, and the like. In another instance, the management logic 226 may reduce the size of the address range covered by the access metadata entry 211 by one or more of the following: splitting the node 311 associated with the entry 211 into one or more sibling nodes 311, splitting the node 311 into one or more child nodes 311 within a lower layer 320 of the data structure 310, demoting the node 311 to a lower layer 320 of the data structure 310, removing the node 311 (and invalidating the corresponding entry 211), etc.

[0087] The data structure 310 may also be configured to define a hierarchical and / or multi-level mapping scheme that can be searched from the top level 320-N to the lower levels 320. Due to the parent-child scope containment relationship of the data structure 310, search operations performed at the lower levels 320 of the data structure 310 may be combined with the results of search operations performed at the higher levels 320 of the data structure 310. Figure 3 The N-layer data structure shown may involve first searching the top layer 320-N of the data structure 310, and then searching one or more lower layers 320 if necessary. A hierarchical search for a node 311 (or access metadata entry 211) covering a specified address 202 may involve: a) searching the top layer 320-N of the data structure using the subtag 304-N of the specified address 202, and b) returning an "entry miss" if a matching top-level node 311 is not found. If a top-level node 311 matching the subtag 304-N of the specified address 202 is found, the hierarchical search may also include: c) returning the access metadata entry 211 of the top-level node 311 (if the coverage data 316 of the top-level node 311 contains or references the entry 211), or d) otherwise searching a lower-level substructure 312 referenced by the top-level node 311. The hierarchical search operation may continue through successively lower levels 320 of the data structure 310 until a node 311 is found having overlay data 316 that contains and / or references the access metadata entry 211, or the search fails.

[0088] As disclosed herein, the address space may be very large, and as such, the data structure 310 and the corresponding access data set 210 may be "sparse" in that the nodes 311 of the data structure 310 (and the corresponding access metadata entries 211 of the data set 210) may not cover the entire address space. Instead, the adaptive tracking engine 110 may add nodes 311 and corresponding access metadata entries 211 as regions of the address space are utilized (e.g., upon receipt of a command 201 and / or an indication of a command 201 at the adaptive tracking engine 110, as disclosed herein). The management logic 226 may also be configured to remove nodes 311 that do not contain or reference access metadata entries 211 or child nodes 311 (e.g., open leaf nodes 311 may be pruned from the data structure 310). The management logic 226 may also be configured to remove or evict nodes 311 and corresponding access metadata entries 211 that meet eviction criteria; e.g., not accessed within a time threshold, not frequently enough, having a consistently poor utility metric 213, producing poor prefetches, etc. The management logic 226 may dynamically add nodes 311 and corresponding access metadata entries 211 in response to a trace miss. A trace miss occurs when the address 202 of the command 201 falls outside the address range covered by the access metadata 112 (falls outside the address range covered by the access metadata entry 211 of the data set 210). In response to a trace miss, the management logic 226 may add the node 311 to the bottom layer 320-1 of the data structure so that the corresponding entry 211 covers an address range of a minimum range size. The range size of the entry 211 may then be modified based on the utility metric 213 (e.g., based on prefetcher performance within the address range covered by the access metadata entry 211).

[0089] In some aspects, the management logic 226 may initialize and / or clear the access metadata 112, which may include removing and / or invalidating nodes 311 of the data structure 310 and / or corresponding access metadata entries 211 of the data set 210. The management logic 226 may clear the access metadata 112 during or in response to a user command or message, a configuration setting, in response to a shutdown and / or restart operation, etc. After initialization, the management logic 226 may rebuild the access data set 210 and / or data structure 310 in response to tracking misses and / or adjusting the address range covered by the access metadata based at least in part on the utility metric 213 related to the covered address range, as disclosed herein.

[0090] Although specific examples of data structures 310 defining specific configurations and / or region schemes 322 are described herein, the disclosure is not limited thereto and may be adapted for use with any suitable type of data structure 310 having any suitable number of layers 320 and / or any suitable region scheme 322 .

[0091] Figure 4 A further example of a device 300 for implementing the adaptive tracking engine 110 as disclosed herein is illustrated. Figure 4 In the example of , the management logic 226 of the adaptive tracking engine 110 is configured to manage the address range covered by the access metadata 112 by using a four-level data structure 310. In some embodiments, the access metadata entry 211 of the data set 210 can be maintained within the data structure 310 (e.g., within an occupied node 311 of the data structure 310). Figure 4 In the example of , the access data set 210 is maintained separately from the data structure 310. The access data set 210 can be maintained in a different portion of the memory 208 than the data structure 310; for example, in a different array, region, segment, memory group, plane, etc. As disclosed herein, the access data set 210 can be implemented by a suitable structure, such as: a table, a lookup table, a mapping table, an array, a list, a tree, a prefix tree, a dictionary tree, a radix tree, etc.

[0092] like Figure 4 As shown, the management logic 226 divides the address tag 302 into four sub-tags 304-1 to 304-4, and defines the minimum range size as 4K (by specifying a 12-bit minimum offset 301, such as Figure 3 Table 3 illustrates the examples including Figure 4 The example data structure 310 of four layers is shown with region labels 332 and corresponding region offsets 331 .

[0093]

[0094]

[0095] Table 3

[0096] As shown in Table 3, the zone scheme 322-4 of the highest layer 320-4 of the data structure 310 defines a 13-bit zone tag 332-4, which uniquely identifies a corresponding range of 2^51 addresses of the 64-bit address space (the maximum range size of multiple range sizes defined by the data structure 310), the zone scheme 322-3 of the layer 320-3 defines a 26-bit zone tag 332-3 formed by subtags 304-4 and 304-3, which uniquely identifies a corresponding range of 2^38 addresses, the zone scheme 322-2 defines a 39-bit zone tag 332-2 formed by subtags 304-4 to 304-2, which uniquely identifies a corresponding range of 2^25 addresses, and the zone scheme 322-1 of the layer 320-1 defines a 52-bit zone tag 332-1 formed by subtags 304-4 to 304-1, which uniquely identifies a corresponding range of 2^12 addresses (the minimum range size of multiple range sizes defined by the data structure 310).

[0097] A node 311 of the data structure 310 may include a node tag 314 that may store a value corresponding to the subtag 304 of the layer 320 in which the node 311 is located and may uniquely identify the node 311 within the corresponding substructure 312 within the layer 320. Figure 4 In the example of , the node 311 of the data structure 310 also includes a next valid indicator 410, a next pointer 411, an entry valid indicator 421, an entry pointer 422, etc. The next valid indicator 410 and / or the entry valid indicator 421 may specify whether the node 311 is open or occupied. More specifically, the next valid indicator 410 may specify whether the next pointer 411 of the node 311 references a valid substructure 312 in a lower layer 320 of the data structure 310 (indicating whether the node 311 is open), and the entry valid indicator 421 may specify whether the entry pointer 422 references a valid access metadata entry 211 covering an address range defined by the node 311 (indicating whether the node 311 is occupied). The next valid indicator 410 and / or the entry pointer 422 may be omitted from a node 311 that cannot reference a lower layer child node 311, such as a node 311 set in the lowest layer 320-1 of the data structure 310.

[0098] Figure 5-1 A further example of a device 300 for implementing the adaptive tracking engine 110 as disclosed herein is illustrated. Figure 5-1 In the example of , as disclosed herein, the management logic 226 manages the address ranges (and range sizes) covered by the corresponding access metadata entries 211 of the data set 210 by and / or using the data structure 310. Figure 5-1 In the example of , the management logic 226 manages the address range covered by the access metadata 112 using a multi-layer data structure 310 including three layers 320 - 1 to 320 - 3 , each layer 320 corresponding to a respective one of a plurality of range sizes.

[0099] The adaptive tracing engine 110 may include and / or be coupled to a memory 208, which may be implemented, realized, and / or provided by any suitable memory resource, including but not limited to: a semiconductor integrated circuit, a memory cell, a memory array, a memory bank, a memory chip, an on-board memory of the adaptive tracing engine 110, a host memory resource, a main memory, a backing memory 108, a cache memory 106, a memory resource of a consumer 115 and / or a source 215, a RAM, a DRAM, a SRAM, a SDRAM, etc. The management logic 226 may be configured to maintain the access metadata 112 and / or portions thereof within the memory 208.

[0100] As disclosed herein, management logic 226 may be configured to manage address ranges (and / or range sizes) covered by respective entries 211 of access data set 210 via data structure 310. Configuration of data structure 310 may be specified by configuration data 524 of adaptive tracing engine 110, among other things. The configuration data 524 may include any suitable configuration information, including but not limited to: the configuration of the data structure 310, the type of the data structure 310 (e.g., specifying a table, a mapping table, a multi-level mapping table, a tree, a radix tree, etc.), a plurality of layers 320 to be included in the data structure 310, a region scheme 322 for each layer 320, a range size for each layer 320, a configuration of the subtags 304 assigned to each layer 320 (e.g., address bits included in each subtag 304), a region tag 332 for each layer 320, a region offset 331 for each layer 320, a range size for each layer 320 (defining a plurality of range sizes, each corresponding to a respective layer 320 of the data structure 310), a minimum range size for the data structure 310, a minimum offset 301, etc. Figure 5-1 In the example of , the configuration data 524 specifies a data structure 310 having three layers 320 as shown in Table 4 below:

[0101]

[0102] Table 4

[0103] According to the zone scheme 322 of Table 3, the minimum offset 301 corresponds to address bits 7 to 0 (the minimum range size is 2^8), layer 320-1 is assigned subtag 304-1, corresponding to address bits 11 to 8 (and the minimum range size), layer 320-2 is assigned subtag 304-2, corresponding to address bits 15-12 (and the next larger range size of 2^12), and layer 320-3 is assigned subtag 304-3, corresponding to address bits 23-16 (and the maximum range size of 2^16).

[0104] like Figure 5-1As shown, a node 311 of the data structure 310 may include a node label 314, overlay data 316, and the like. The node label 314 of the node 311 may correspond to a sub-label 304 of a layer 320 of the data structure 310 in which the node 311 is disposed. The overlay data 316 may include and / or reference: as disclosed herein, an access metadata entry 211 or a substructure 312 (e.g., one or more sub-nodes 311) within a lower layer 320 of the data structure 310. The overlay data 316 may distinguish an occupied node 311 from an open node 311 that is blocked from referencing a sub-node 311 in a lower layer 320 of the data structure 310. The management logic 226 prevents the data structure 310 from including a sub-node 311 below the occupied node 311, which prevents the access metadata entry 211 of the data set 210 from covering an overlapping address range due to the address range containment relationship defined by the data structure 310. Although Figure 5-1 One example of node 311 is illustrated, but the present disclosure is not limited thereto and may be configured to express, represent and / or encode information related to corresponding address ranges and / or coverage of address ranges of access metadata 112 using any suitable technique and / or format.

[0105] The management logic 226 of the adaptive trace engine 110 is configured to add a node 311 to the data structure 310 (and create a corresponding access metadata entry 211) in response to a trace miss. Figure 5-2 Operations implemented by the adaptive tracing engine 110 (and / or its management logic 226) in response to a trace miss for the target address 202 "0x332105" are illustrated. The management logic 226 may detect a trace miss in response to a command 201 related to the address 202 (e.g., in response to determining that the access data set 210 does not contain an access metadata entry 211 covering the target address 202). Figure 5-2 As shown, the management logic 226 handles the trace miss by, among other things, creating nodes 311 within respective levels 320 of the data structure 310 that represent the target address 202. The node tags 314 of the nodes 311-1 through 311-3 created for the target address 202 within respective levels 320 of the data structure 310 are assigned values ​​corresponding to the subtags 304 assigned to the respective levels 320 (according to the area scheme 322 of the respective levels 320). The node 311-1 created within the level 320-1 covers an address range that includes the target address 202 and has a minimum address range size defined by the data structure 310. The node 311-1 contains and / or references an access metadata entry 211 that is configured to cover the address range defined by the node 311-1. Thus, the management logic 226 may designate the node 311-1 as occupied and designate the nodes 311-2 and 311-3 as open.

[0106] exist Figures 5-2 to 5-9In the illustrated example data structure 310 , occupied nodes 311 that contain and / or reference access metadata entries 211 are highlighted with a diagonal fill pattern to facilitate reference (and to distinguish occupied nodes 311 from open nodes 311 that do not contain a diagonal fill pattern).

[0107] As disclosed herein, the management logic 226 can ensure uniqueness by utilizing the address range relationship encoded within the data structure 310. More specifically, the management logic 226 configures the data structure 310 such that a node 311 created within a lower layer 320 of the data structure is referenced by an open parent node 311, and a child node 311 is removed from (and cannot be created under) an occupied node 311. Thus, creating a node 311-1 within a layer 320-1 may include verifying that the layer 320-2 does not include an occupied second layer node 311 that overlays the target address 202, and creating a parent node 311-2 within the second layer 320-2 of the data structure (if the node 311-2 does not already exist). Similarly, creating a node 311-2 within a layer 320-2 may include verifying that the layer 320-3 does not include an occupied third layer node 311 that overlays the target address 202, and creating a parent node 311-3 within the third layer 320-3 of the data structure 310 (if the node 311-2 does not already exist). The node labels 314 of the nodes 311 created within each layer 320 of the data structure 310 are extracted from the target address 202 according to the subtags 304 assigned to the respective layers: the node label 314 of the node 311-1 is assigned "0x1" (each subtag 304-1 is extracted from "0x332105" from bits 11 to 7 of the target address 202); the node label 314 of the node 311-2 is assigned "0x2" (each subtag 304-2 is extracted from bits 15-12 of the target address 202); and the node label 314 of the node 311-2 is assigned "0x33" (each subtag 304-3 is extracted from the 8MSBs of the target address 202).

[0108] like Figure 5-2As shown, data structure 310 encodes the parent-child relationship between nodes 311, which corresponds to the address inclusion relationship between the address ranges covered by nodes 311 (and their access metadata entries 211). The region tag 332-N of the top-level parent node 311-3 is an 8-bit value "0x33", which uniquely identifies the third-level address range (2^16 address range size) with boundaries {"0x330000", "0x33FFFF"}. According to the hierarchical address inclusion relationship of data structure 310, the child nodes 311 (e.g., nodes 311-2 and 311-1) of the third-level parent node 311-3 cover a subset of the address range it covers. The second-level node 311-2 has a 12-bit region tag 332-2 of "0x332" and covers the second-level address range (2^12 address range size) defined by {"0x332000", "0x332FFF"}. As shown in the figure, the second-layer address range covered by node 311-2 is included in the third-layer address range covered by its upper-layer parent node 311-3. The first-layer node 311-1 has a 16-bit region tag 332-1 of "0x3321" and covers the first-layer address range (2^8 addresses) defined by {"0x332100", "0x3321FF"}. As shown in the figure, the first-layer address range covered by node 311-1 is included in the second-layer address range covered by its second-layer parent node 311-2 and the third-layer address range covered by its third-layer "grandfather" node 311-3.

[0109] Creating the first-layer node 311-1 may also include an access metadata entry 211-1 of the configuration data set 210 to cover the address range defined by the node 311-1. As shown, the access metadata entry 211-1 contained in and / or referenced by the node 311-1 includes access metadata 112-1 related to the address range covered by the node 311-1. The address range covered by the access metadata entry 211-1 (address range {"0x332100", "0x3321FF"}) can be specified in the range metadata 214-1 of the entry 211. Alternatively, since the address range covered by the entry 211-1 is defined by the node 311-1, the range metadata 214-1 of the entry 211-1 can be omitted. Since the node 311-1 contains and / or references the access metadata entry 211-1, the node 311-1 can be designated as occupied. Nodes 311 - 2 and 311 - 3 having overlay data 316 that do not contain and / or reference access metadata entries 211 may be designated as open.

[0110] As disclosed herein, nodes 311 within a lower layer 320 of a data structure 310 may be organized into corresponding substructures 312, each of which corresponds to a corresponding parent node 311 in an adjacent upper layer 320 and is indexed by a node label 314, which may correspond to a sublabel 304 assigned to the layer 320. Figure 5-2 As shown, the first-layer node 311-1 is contained in a substructure 312-1 referenced by its second-layer parent node 311-2, and the node 311-2 is contained in a substructure 312-2 referenced by its third-layer parent node 311-3. The substructure 312-2 contains the second-layer node 311, which covers a subset of the address range covered by the third-layer node 311-3. More specifically, the substructure 312-2 contains the second-layer node 311 having a region tag 332-2 combined with the third-layer region tag 332-3 of the parent node 311-3 ("0x33"), and thereby covers a subset of the address range covered by the third-layer node 311-3 (e.g., the second-layer node 311 having a region tag 332-2 combined with the region tag 332-3 "0x33"). Similarly, the substructure 312-1 referenced by the second-layer node 311-2 includes a first-layer node 311 that covers a subset of the address range covered by the second-layer node 311-2. More specifically, the substructure 312-1 includes the first-layer node 311 having a zone tag 332-1 that combines the second-layer zone tag 332-2 ("0x332") of the second-layer node 311-2 and thereby covers a subset of the second-layer address range covered by the second-layer node 311-2.

[0111] like Figure 5-2As further shown in FIG. 1 , traversing the various layers 320 of the data structure 310 in a hierarchical lookup and / or search operation may result in constructing region tags 332 for the various layers 320. A lookup of an access metadata entry 211 covering a specified address 202 (e.g., “0x332188”) may include: a) searching the layer 320-3 to identify a third layer node 311-3 having a node tag 314 matching the subtag 304-3 (e.g., “0x33”) of the specified address 202, b) searching the substructure 312-2 referenced by the identified third layer node 311-3 (and / or the third layer subtag 304-4 “0x33”) to identify a node tag 314 matching the subtag 304-3 (e.g., “0x33”) of the specified address 202, Identify a second-level node 311-2 having a node label 314 that matches the sub-tag 304-2 (e.g., "0x2") of the specified address 202, and c) search the sub-structure 312-1 referenced by the identified second-level node 311-2 (and / or the second-level sub-tag 304-2 "0x2") to identify a first-level node 311-1 having a node label 314 that matches the sub-tag 304-1 (e.g., "0x1") of the specified address 202. Thus, traversing the data structure 310 can result in building a value for the region tag 332-1 for the layer 320-1 (e.g., building a 16-bit value, "0x3321") for the region tag 332-1 of the layer 320-1. Similarly, traversing the data structure 310 to the second level 320-2 results in building a 12-bit value for the region tag 332-2 ("0x332"), and so on.

[0112] Figure 5-3Illustrated is further operation implemented by the adaptive tracing engine 110 in response to a trace miss of the additional address 202 including the second address 202 "0x33240F" and the third address 202 "0x66210B". In response to the trace miss of the second address 202 "0x33240F", the management logic 226 creates a node 311-4 and a corresponding access metadata entry 211-2 within the first level 320-1 of the data structure 310. Since the node 311-4 covers a subset of the area covered by the second level node 311-2 (which is a child node of the node 311-2) and the third level node 311-3 (which is a grandchild node of the node 311-3), the node 311-4 is included in the substructure 312-1. In response to traversing the data structure 310 using the corresponding subtag 304 of the second address 202, the node 311-4 may be included in the first level substructure 312-1. The traversal may include: a) selecting the third-level node 311-3 (and the second-level substructure 312-2 referenced thereby) by using the subtag 304-3 of the second address 202 ("0x33"), b) selecting the second-level node 311-2 (and the first-level substructure 312-1 referenced thereby) by using the subtag 303-2 of the second address 202 ("0x2"), and c) determining that the first-level substructure 312-1 does not include a node 311 covering the second address 202 (e.g., determining that "0x33240F" is outside the address range covered by the node 311-1 and / or the access metadata entry 211-1). The node 311-4 may include and / or reference the access metadata entry 211-2, which includes access metadata 112-2 (and / or range metadata 214-2) related to the address range specified by the node 311-4.

[0113] The management logic 226 creates nodes 311-5, 311-6, and 311-7 in response to a trace miss of the third address 202 "0x66210B". The third address 202 is outside the address range covered by the third-layer node 311-3 and / or the second-layer node 311-2. In particular, in response to comparing the subtag 304-3 of the third address 202 "0x66" with the node tag 314 of the node 311-3 "0x33", the management logic 226 can determine that the third address 202 is outside the third-layer address range of the node 311-3 (and thereby also outside the second-layer address range of the node 311-2). Figure 5-3As shown, the management logic 226 creates a substructure 312-3 and a node 311-5 within the first layer 320-1 of the data structure 310, and assigns a node tag 314 of the node 311-5 to "0x1" for each subtag 304-1 of the third address 202. The node 311-5 contains and / or references an access metadata entry 211-3 having access metadata 112-3 related to the address range covered by the node 311-5 (e.g., the address range {"0x662100", "0x6621FF"}). The management logic 226 creates a parent node 311-6 within the upper adjacent layer 320-2 of the data structure 310 to reference the substructure 312-3. Based on the subtag 304-2 of the third address 202, the node tag 314 of the second-level parent node 311-6 is set to "0x2". The management logic 226 also creates a parent node 311-7 within the next level 320-3 of the data structure 310 to reference the second level substructure 312-4. According to the subtag 304-3 of the third address 202, the node tag 314 of the third level parent node 311-7 is set to "0x66".

[0114] Return to reference Figure 5-1 , the adaptive tracing engine 110 may be configured to update the access metadata 112 in response to the command 201 related to the address space. Figure 5-3 In the example of , the adaptive trace engine 110 updates the access metadata 112-1 of the entry 211-1 in response to the command 201 associated with the address 202 within the address range {"0x332100", "0x3321FF"}, updates the access metadata 112-2 of the entry 211-2 in response to the command 201 associated with the address 202 within the address range {"0x332400", "0x3324FF"}, and / or updates the access metadata 112-3 of the entry 211-3 in response to the command 201 associated with the address 202 within the address range {"0x662100", "0x6621FF"}. The consumer 115, such as the prefetch logic 515, can use the access metadata 112 to implement prefetch operations in various regions of the address space. The prefetch logic 515 may use the access metadata 112-1 of entry 211-1 to implement prefetch operations within the address range {"0x332100", "0x3321FF"}, may use the access metadata 112-2 of entry 211-2 to implement prefetch operations within the address range {"0x332400", "0x3324FF"}, and may use the access metadata 112-3 of entry 211-3 to implement prefetch operations within the address range {"0x662100", "0x6621FF"}.

[0115] The prefetch logic 515 may implement prefetch operations according to a particular prefetch technique or algorithm. Different prefetch implementations may utilize different types of access metadata 112. In one instance, the prefetch logic 515 implements a stride-based prefetcher that uses the access metadata 112 to detect stride patterns within corresponding address regions. In another instance, the prefetch logic 515 implements a correlation prefetcher that attempts to detect a cyclic increment sequence within an address sequence covered by the access metadata 112. In yet another instance, the prefetch logic 515 implements an ML prefetcher, such as an LSTM prefetcher, and uses the access metadata 112 in an ML model of a local context covered by the access metadata 112 (and / or extracts ML features therefrom). The management logic 226 may be configured to adapt the access metadata 112 to the prefetch logic 515 (e.g., based in particular on characteristics of the prefetch logic 515). The management logic 226 may be configured to capture address stride metadata in response to determining that the prefetch logic 515 implements stride-based prefetching, may capture address sequences (and / or increment sequences) in response to determining that the prefetch logic 515 implements a correlation prefetcher, may capture ML model data and / or features in response to determining that the prefetch logic 515 implements an ML prefetcher, and the like.

[0116] Alternatively or additionally, the management logic 226 may capture the access metadata 112 according to a programmable metadata configuration 525. The metadata configuration 525 may include any suitable information related to the capture, retention, and / or format of the access metadata 112. The management logic 226 may retain the metadata configuration 525 within a memory resource of the adaptive tracing engine 110 (e.g., using other configuration data 524). The management logic 226 may receive and / or import the metadata configuration 525 from a consumer 115 such as the prefetch logic 515. The prefetch logic 515 may receive the metadata configuration 525 (and / or portions thereof) via an interface 222 of the adaptive tracing engine 110 (e.g., via an API or other mechanism implemented by the interface 222). The management logic 226 uses the metadata configuration 525 to adapt the access metadata 112 for the prefetch implementation of the prefetch logic 515. The management logic 226 may use the metadata configuration 525 to capture access metadata 112 suitable for use by one or more of a stride prefetcher, a correlation prefetcher, an ML prefetcher, a NN prefetcher, an RNN prefetcher, an LSTM prefetcher, or the like.

[0117] In particular, the management logic 226 can determine the utility metric 213 of each access metadata entry 211 based on the feedback 204 from the prefetch logic 515. The management logic 226 can use the utility metric 213 to adjust the range size of the address range. The range size can be adjusted by manipulating the data structure 310 and implementing the manipulation within the access data set 210. More specifically, the management logic 226 can modify the data structure 310 to adjust the address range represented by the corresponding node 311 and reconfigure the access metadata entry 211 accordingly. The management logic 226 can increase the size of the access metadata entry 211 by, among other things, promoting the corresponding node 311 to a higher level 320 of the data structure 310, merging the node 311 with one or more other nodes 311 of the data structure, merging the node 311 into a higher level parent node 311, and the like. In particular, the management logic 226 can reduce the size of the access entry 211 by demoting the node associated with the entry 211 to a lower layer 320 of the data structure 310, splitting the node 311, splitting the node 311 into one or more child nodes 311 within the lower layer 320 of the data structure 310, removing the node 311 (and invalidating the corresponding access metadata entry 211), etc.

[0118] exist Figure 5-3 In the example of , the utility metric 213-3 of the access metadata entry 211-3 can trigger a downgrade operation by the management logic 226. Since the entry 211-3 covers the minimum range size defined by the data structure 310 (associated with the node 311-5 within the first layer 320-1 of the data structure), the downgrade operation may include removing the access metadata entry 211-3 and the corresponding node 311-5 from the data structure 310. Removing the access metadata entry 211 may include invalidating and / or removing the entry 211 from the data set 210 and / or removing the node 311 that contains and / or references the entry 211 from the data structure 310. The removal operation may also include removing and / or invalidating an upper-level parent node 311 and / or a child structure 312 that no longer references any child node 311, particularly due to the removal of the node 311 associated with the access metadata entry 211. As shown in FIG. Figure 5-4 As shown, the downgraded access metadata entry 211-3 includes removing the entry 211-3 from the data set 210, removing the first-level node 311-5 from the data structure 310, removing the upper-level parent nodes 311-6 and 311-7 that no longer reference the child node 311 in the lower level 320 of the data structure 310, removing the empty substructures 312-3 and 312-4, etc.

[0119] In another example, the utility metric 213-3 of the access metadata entry 211-3 is sufficient to trigger an upgrade of the entry 211-3. As disclosed herein, upgrading the access metadata entry 211 may include increasing the size of the address range covered by the entry 211. Upgrading the access metadata entry 211 may include modifying the node 311 associated with the entry 211, in particular by merging the node 311 into the next higher level 320 of the data structure 310 and setting the address range of the access metadata entry 211 to the address range defined by the modified node 311 (or associating the access metadata entry 211 with the parent node 311 and removing the child node 311 from the data structure 310). Figure 5-5 In the example of , upgrading the access metadata entry 211-3 includes merging the first-layer node 311-5 originally associated with the entry 211-3 into the second-layer node 311-6 (and / or associating the entry 211-3 with the second-layer node 311-6). As shown, the second-layer node 311-6 is converted from an open node 311 having lower-layer child nodes 311 to an occupied node 311 that is blocked from having and / or referencing any lower-layer child nodes 311. Thus, upgrading the access metadata entry 211-3 may include removing and / or invalidating the first-layer node 311-5 (and the resulting empty substructure 312-3). The size of the address range covered by the modified access metadata entry 211-3 may be upgraded from the minimum range size to the next larger range size of the layer 320-2. As shown in the figure, Figure 5-5 As shown, entry 211 - 3 is modified to cover the second-level address range {“0x662000”, “0x662FFF”} of node 311 - 6 instead of the smaller first-level address range {“0x662100”, “0x6621FF”}.

[0120] The management logic 226 may monitor the utility metric 213-3 of the access metadata entry 211-3 after the upgrade operation and determine, based at least in part on the utility metric 213-3, whether to retain the entry 211-3 in the second tier 320-2, demote the entry 211-3 back to the first tier 320-1, upgrade the entry 211-3 to the next higher tier 320-3, etc. Figure 5-6In the illustrated example, the utility metric 213-3 of the access metadata entry 211-3 triggers further upgrading the entry 211-3 to the third layer 320-3 of the data structure 310. In response, the management logic 226 merges the node 311 by associating the entry 211-3 with the third layer node 311-7, in particular by configuring the access metadata entry 211-3 to cover the third layer address range defined by the node 311-7 (e.g., the address range {"0x660000", "0x66FFFF"}), setting the overlay data 316 of the node 311-7 to include and / or reference the entry 211-3, converting the node 311-7 from an open node 311 to an occupied node 311, removing lower-level child nodes 311 of the node 311-7, such as the second-level node 311-6, removing lower-level substructures 312, and the like.

[0121] Return to reference Figure 5-5 , after upgrading to the second layer 320-2, the utility metric 213-3 of the access metadata entry 211-3 may be reduced, instead of Figure 5-6 2000," "0x662FFF"} has been captured. The reduction in the utility metric 213-3 may trigger the access metadata entry 211-3 to be demoted back to the lower level 320-1 of the data structure 310. Since the access metadata entry 211 associated with the node 311 at the lower level 320 of the data structure 310 covers a smaller address range than the access metadata entry 211 of the node 311 within the higher level 320, demoting the higher level access metadata entry 211 may include an inter-level splitting operation, in which the higher level node 311 associated with the access metadata entry 211 is split into a group of one or more lower level nodes 311, each lower level node 311 covering a smaller lower level address range within the larger address range covered by the upper level node 311. In some aspects, an upper node 311 may be split into lower nodes 311 that span the address range covered by the upper node 311. The upper node 311 may be split into 2^B LST 311 lower-level nodes, among which B LSTis the number of bits contained in the child tag 304 of the lower level 320, and determines the maximum number of unique nodes 311 of the lower level that can be associated with the corresponding parent node 311 of the adjacent upper level 320. Alternatively, the upper level node 311 of the access metadata entry 211 can be split based on, in particular, the access metadata 112 of the entry 211. The upper level node 311 can be split into lower level nodes 311 covering selected portions of the address range covered by the upper level node 311, as indicated, in particular, by the access metadata entry 211 of the upper level node 311. The management logic 226 can omit lower level nodes 311 corresponding to the following: address ranges that have not been accessed within a time threshold (and / or at a threshold frequency), failed to meet an activity threshold, are associated with a low utility metric 213, are associated with poor prefetcher performance, etc. The access metadata 112 of the higher level entry 211 can be replicated in the lower level entry 211. Alternatively, the access metadata 112 of each lower entry 211 may be derived from a corresponding portion of the access metadata 112 of the upper access metadata entry 211. The access metadata 112 of the lower entry 211 may combine the access metadata 112 corresponding to the portion of the address range covered by the lower entry 211.

[0122] Figure 5-7 The diagram shows Figure 5-5 An operation of downgrading the access metadata entry 211-3 associated with the second layer node 311-6 in the data structure 310 back to the first layer 320-1. The downgrading operation may include an inter-layer splitting operation, wherein the second layer node 311-6 associated within the access metadata entry 211-3 is split into one or more first layer child nodes 311, each child node covering a corresponding subset of the second layer address range covered by the second layer node 311-6. In some aspects, the access metadata entry 211-3 may be split into 16 lower layer entries 211, each lower layer entry covering a corresponding subset of the address range {"0x662000", "0x662FFF"} (according to the 4-bit subtag 304-1 of the lower layer 320-1). Figure 5-7In the example shown, the access metadata entry 211-3 is split into three lower-level child nodes 311-8, 311-9, and 311-10, which can respectively define the address ranges covered by the access metadata entries 211-4, 211-5, and 211-6. The address range can be determined based on the access metadata 112-3 of the access metadata entry 211-3 (e.g., can correspond to the active portion of the address range). As shown, the access metadata entry 211-4 covers the address range {"0x662300", "0x6623FF"}, the entry 211-5 covers the address range {"0x662500", "0x6625FF"}, and the entry 211-6 covers the address range {"0x662F00", "0x662FFF"}. The access metadata entry 211 - 3 may be invalidated and / or removed from the data set 210 , and the second level node 311 - 6 is configured to reference the first level substructure 312 - 3 including the child nodes 311 - 8 to 311 - 10 (transition from occupied to open).

[0123] Return to reference Figure 5-1 , the management logic 226 of the adaptive tracking engine 110 may also be configured to identify and merge access metadata entries 211 that a) cover adjacent address ranges and b) have similar utility metrics 213. As used herein, "adjacent" address ranges refer to address ranges that have the same or similar range size and are within a threshold distance of each other. In some aspects, an adjacent address range refers to an address range covered by a sibling node 311 of the data structure 310. A sibling node 311 refers to a node 311 that is within the same layer 320 of the data structure 310 and has a common parent node in an adjacent upper layer 320. Figure 5-3 In the example of , nodes 311-1 and 311-4 contained in substructure 312-1 of layer 320-1 are sibling nodes. The utility metrics 213-1 and 213-2 of sibling entries 211-1 and 211-2 may trigger a merge operation of management logic 226. Figure 5-8As shown, the merge operation may include merging nodes 311-1 and 311-4 into the common parent node 311-2 of the sibling nodes by: a) configuring the destination access metadata entry 211-7 of the merged entries 211-1 and 211-2 to cover the address range {"0x332000", "0x332FFF"} of the upper node 311-2, b) merging the access metadata 112-1 and 112-2 of the entries 211-1 and 211-2 into the destination entry 211-7, c) removing and / or invalidating the merged entries 211-1 and 211-2 and the corresponding nodes 311-1 and 311-4 within the first layer 320-1 of the data structure 310 (and the empty substructure 312-1), and / or d) configuring the overlay data 316 of the upper node 311-2 to include and / or reference the access metadata entry 211-7.

[0124] Such as Figure 5-8 An inter-layer merge or upgrade operation such as the one shown involves combining nodes 311 within lower layers 320 into nodes within a higher layer 320 of data structure 310, which may result in a significant size increase. Figure 5-9 An example of an intra-layer merge and / or upgrade operation implemented by the adaptive tracing engine 110 and / or the management logic 226 is illustrated, wherein nodes 311 are merged within the same layer 320 of the data structure 310 (and / or the size of the address range covered by the node 311 and the corresponding access metadata entry 211 are increased within the same layer 320 of the data structure). Figure 5-9 In the example, first-level sibling nodes 311-1 and 311-4 are combined into a composite node 311-11 within the same level 320-1 of the data structure 310 (as opposed to node 311 within the second level 320-2 of the data structure 310). The node label 314 of the composite node 311-11 includes multiple values ​​that span the node labels 314 of the merged nodes 311-1 and 311-4 (e.g., including and / or spanning "0x1" to "0x4"). Therefore, the address range defined by the composite node 311-11 and the corresponding merge entry 211-8 spans the subtag set 304-1 "0x1" to "0x4" or {"0x332100", "0x3324FF"}. Figure 5-9 Intra-layer merge operations may result in a more gradual size increase than inter-layer merges. In some aspects, the management logic 226 performs intra-layer merge operations until an internal merge threshold is reached.

[0125] Although specific examples of manipulation operations are described, the present disclosure is not limited thereto. Management logic 226 may be configured to implement any suitable type of manipulation operation. Figure 5-7As shown, the management logic 226 may be configured to implement an inter-layer demotion or split operation, wherein an upper layer node 311 (and corresponding access metadata entry 211) is split into smaller lower layer nodes 311. The management logic 226 may also be configured to implement an intra-layer demotion or split operation, wherein a composite node 311 and corresponding access metadata entry 211 are split into one or more smaller and / or non-composite nodes 311 within the same layer 320 of the data structure 310.

[0126] Figure 6 10. A further example of an apparatus 600 for implementing adaptive address tracking and / or adaptive tracking engine 110 (an example of adaptive address tracking apparatus 600) is illustrated. In some embodiments, access metadata entries 211 of data set 210 are maintained within range management data structure 310. For example, access metadata entries 211 may be contained in corresponding occupied nodes 311 of data structure 310. Conversely, in Figure 6 In the example of , the access metadata entries 211 of the data set 210 are maintained separately from the data structure 310. As shown, the adaptive tracking engine 110 may include and / or be coupled to a range tracking memory (first memory 608), which is configured to store, maintain and / or provide a data set 210 including one or more access metadata entries 211. The first memory 608 may be configured as a range tracking memory and / or configured to store and / or implement the access data set 210, as disclosed herein. More specifically, the first memory 608 is configured to maintain a set of access metadata entries 211, each of which covers a corresponding address range. Figure 6 In the example of , access metadata entry 211 includes range metadata 214 that defines the boundaries of the address range covered by entry 211 (eg, having minimum and maximum address values).

[0127] The adaptive tracking engine 110 may also include and / or be coupled to a scope management memory (second memory 618) that maintains the scope management data structure 310. The second memory 618 may be configured as a scope management memory and / or configured to implement the scope management data structure 310.

[0128] In some aspects, the first memory 608 is separate and / or independent from the second memory 618. The first memory 608 can be implemented and / or implemented by a memory component that is separate and / or independent from the memory component that implements and / or implements the second memory 618.

[0129] As disclosed herein, the access data set 210 may be frequently accessed and / or updated. In addition, access to the data set 210 may be associated with performance-sensitive components such as memory I / O paths. Therefore, the first memory 608 may be implemented, provided and / or realized by high-performance memory resources such as memory circuits, semiconductor memory circuits, memory arrays, memory banks, cache memories, cache lines, SRAM, SDRAM, dedicated memory resources, on-board memory resources, etc. The second memory 618 may not be as performance-sensitive as the first memory 608, and therefore may be implemented, provided and / or realized by other memory resources such as memory resources of the host device 102, main memory, backup memory 108, memory resources of consumers 115 and / or sources 215, DRAM, etc.

[0130] The first memory 608 may include and / or be coupled to a first logic 624. The first logic 624 is coupled to the interface 222 and the first memory 608. The first logic 624 may be configured to provide access to the entry 211 of the data set 210. The first logic 624 may implement an interface to the access metadata 112 (and / or the first memory 608). The first logic 624 may also be configured to update the access metadata of the corresponding entry 211 in response to a command 201 related to an address 202 within the address range covered by the corresponding entry 211 (e.g., may include and / or implement the update logic 224). Figure 6In an example of , the first logic 624 also includes and / or is coupled to a search logic 625 that is configured to find an entry 211 corresponding to a specified address 202 in response to, among other things, a command 201 related to the address 202, a request from a consumer 115 (such as the prefetch logic 515), feedback 204 related to the access metadata 112 covering the address 202, and the like. The search logic 625 may be configured to implement fast, low-overhead search operations within the access data set 210 maintained within the first memory 608. The search logic 625 may be configured to implement search and / or find operations without accessing the data structure 310 and / or the second memory 618. The search and / or find operations implemented by the search logic 625 may involve comparing the address 202 and / or the address tag 302 with the range metadata 214 of the corresponding entry 211. The search logic 625 may implement a direct, single-level comparison as opposed to a hierarchical search operation within the various layers 320 of the data structure 310. The search logic 625 may include comparison logic configured to compare the address 202 (and / or the address tag 302) with the minimum and / or maximum address boundaries covered by the corresponding entry 211 (as defined by the range metadata 214 of the entry 211). The search logic 625 may be configured to compare the address 202 (and / or the address tag 302) with the range metadata 214 of multiple entries 211 at least partially in parallel. The first logic 624 (and / or its search logic 625) may be provided, implemented and / or realized in hardware. The search logic 625 may include a hardware search engine and / or hardware search circuit coupled to the first memory 608. In some examples, the first logic 624 (and / or its search logic 625) is implemented by using on-board logic components (such as PIM circuits, etc.) of the first memory 608. In some embodiments, the search logic 625 is integrated with the first memory 608. The search logic 625 can be implemented within the chip and / or substrate of the first memory 608. Alternatively or additionally, the hardware search engine and / or hardware search circuit of the search logic 625 may be implemented within the same package or module as the first memory 608 or the like.

[0131] The adaptive tracking engine 110 may also include and / or be coupled to a second logic 626. The second logic 626 may be coupled to the first memory 608, the second memory 618, and / or the interface 222. The second logic 626 may include and / or be coupled to a management logic 226 that is configured to manage access to entries 211 of the data set 210, in particular through and / or through the data structure 310 maintained within the second memory 618. In some examples, the second logic 626 (and / or its management logic 226) is included in and / or coupled to the second memory 618. The second logic 626 (and / or its management logic 226) may also be coupled to the first memory 608, and may be configured to create, remove, invalidate, modify, and / or otherwise manage entries 211 of the data set 210. As disclosed in greater detail herein, management logic 226 may be configured to implement modifications performed on data structures 310 within access data sets 210 by, among other things, configuring entries 211 of data sets 210 to cover address ranges defined by corresponding nodes 311 of data structures 310 .

[0132] As disclosed herein, data structure 310 may be constructed based on configuration data 524. Figure 6 In the example of , the management logic 226 constructs a data structure 310 including N layers 320-1 to 320-N, each layer 320 being assigned a corresponding sub-tag 304 and corresponding to a corresponding range size in a plurality of range sizes. The layers 320-1 to 320-N can be organized into a hierarchical structure corresponding to range sizes, wherein the first layer 320-1 corresponds to the smallest range size in the plurality of range sizes at the bottom of the hierarchy and the last layer 320-N corresponds to the largest range size at the top of the hierarchy. The region scheme 322 of each layer 320 of the data structure defines the sub-tag 304, region tag 332 and / or region offset 331 of the layer 320 based on the position of the respective layer 320 within the hierarchy, which, in particular, defines the range size of each layer 320.

[0133] The node 311 of the data structure may include a node label 314, state data 616, an entry reference 621, a sub-reference 631, etc. The state data 616 of the node 311 indicates whether the node 311 references an access metadata entry 211 or a sub-structure 312 within a lower layer 320 of the data structure 310. Therefore, as disclosed herein, the state data 616 may indicate whether the node 311 is occupied or open. The state data 616 may also be configured to indicate whether the node 311 references a valid access metadata entry 211 and / or a valid sub-structure 312. The entry reference 621 of the node 311 may reference an access metadata entry 211 of a data set 210 maintained within the first memory 608. The node 311 maintained within the second memory 618 may reference the entry 211 maintained within the first memory 608 using any suitable information including, but not limited to, a reference value, an index value, a pointer value (a pointer to a location within the first memory 608), a memory address, an address offset, etc. The sub-reference 631 of the node 311 may contain and / or reference the sub-structure 312 within the lower level 320 of the data structure 310. The sub-reference 631 may be omitted from the node 311 within the first level 320-1 of the data structure 310.

[0134] exist Figure 6 In the example of , the node 311 of the data structure 310 also includes a utility metric 213, which can quantify the utility of the address range covered thereby, as disclosed herein. The utility metric 213 of the occupied node 311 can quantify the utility of the entry 211 referenced by the node 311 (or the utility of the access metadata 112 that captures the address range defined by the node 311) based on the prefetch performance. The utility metric 213 of the open node 311 that does not directly reference the entry 211 can be empty. Alternatively, the utility metric 213 of the open node can be configured to quantify the utility of the child nodes of the node 311. The utility metric 213 of the open node 311 may include an average, mean, or other combination of the utility metrics 213 of the occupied child nodes 311 of the open node 311.

[0135] As disclosed herein, the management logic 226 encodes address range relationships within the data structure 310. The management logic 226 encodes address range containment relationships through parent-child relationships between nodes 311, where an address range covered by an upper level parent node 311 contains an address range covered by a lower level child node 311. Sibling relationships between nodes 311 within a layer 320 and sharing the same upper level parent node 311 in an adjacent upper layer 320 of the data structure 310 cover address ranges contained within the upper level address range covered by the parent node 311. More specifically, the sibling nodes 311 (and corresponding entries 211) cover corresponding subsets within the upper level parent address range.

[0136] exist Figure 6In the example of , the management logic 226 requires that the leaf nodes 311 be occupied. Therefore, each node 311 in the lowest level 320-1 references the access metadata entry 211, and nodes that do not reference a valid entry 211 are removed. Similarly, nodes 311 within the upper levels 320 of the data structure 310 that do not reference a valid access metadata entry 211 or a substructure 312 are deleted. In some aspects, the management logic 226 requires that each node 311 within the lower levels 320 (levels 320 other than the top level 320-N) of the data structure 310 have a single unique parent node 311 in the upper adjacent level 320 and be contained in a substructure 312 referenced by the parent node 311. The nodes 311 within the substructure 312 can be indexed and / or referenced by their node labels 314. The nodes 311 within the top level 320-N of the data structure 310 can be indexed and / or referenced by their node labels 314 in a similar manner (e.g., as if contained in the same or common substructure 312). The sibling nodes 311 within each substructure 312 may be uniquely identified by the subtag value recorded in its node tag 314. Thus, the lower sibling nodes 311 of each upper parent node 311 may cover different subsets of the address range covered by the respective upper parent node 311. However, the node tags 314 of nodes 311 having different parent nodes 311 and therefore contained in different substructures 312 may have the same value (the address ranges of such nodes 311 cannot overlap because the nodes 311, in particular, have different parent nodes and are therefore contained in different address ranges).

[0137] The management logic 226 may adjust the address range covered by the access metadata 112 by modifying the data structure 310 and implementing the modification within the access data set 210. As disclosed herein, the management logic 226 may modify the range size of one or more entries 211 of the data set 210 by, among other things, implementing manipulation operations within the data structure 310, which manipulation operations may include, but are not limited to: merge operations, inter-layer merge operations, intra-layer merge operations, split operations, inter-layer split operations, intra-layer split operations, remove operations, promote operations, inter-layer promote operations, intra-layer promote operations, downgrade operations, inter-layer downgrade operations, intra-layer downgrade operations, etc. Implementing the manipulation operations may include propagating the modifications made within the data structure 310 to the access data set 210, which may include, but are not limited to: modifying the address range covered by the one or more access metadata entries 211, increasing the size of the address range covered by the one or more entries 211, decreasing the size of the address range covered by the one or more entries 211, removing and / or invalidating the one or more entries 211, etc. As disclosed herein, management logic 226 may adjust a range size of one or more entries 211 based at least in part on utility metrics 213 of entries 211 .

[0138] The management logic 226 may be configured to evaluate the utility metric 213 and implement corresponding modifications to the address range covered by the access metadata 112 (if any) in background operations. The background operations may be configured to utilize idle resources available to the adaptive tracking engine 110. The background operations may be suspended, paused, and / or terminated during and / or in response to foreground operations. The foreground operations may include, but are not limited to: receiving commands 201 (and / or indications of commands 201) at the interface 222, updating access metadata 112 in response to commands 201, updating utility metrics 213 in response to feedback 204 (and / or commands 201), receiving requests for access metadata 112 from consumers 115, providing access metadata 112 to consumers 115, sending access metadata 112 to consumers 115, etc. The background operations may be resumed and / or restarted when idle resources become available and / or the foreground operations have completed. The management logic 226 may implement background scanning operations to evaluate the utility metrics 213 and implement corresponding modifications to the address ranges covered by the access metadata 112 in background scanning operations that are implemented periodically at specified intervals, during idle periods, etc. The background scanning operations may include traversing the nodes 311 of the data structure 310 (and / or corresponding entries 211 of the data set 210) to identify entries 211 for demotion, promotion, merging (related entries 211), etc.

[0139] The management logic 226 may also be configured to remove and / or invalidate the node 311 of the data structure 310. The node 311 within the first layer 320-1 of the data structure 310 may be removed and / or invalidated in a downgrade and / or split operation. The management logic 226 may remove the first layer node 311 in response to determining that the utility metric 213 of the first layer node 311 is below a threshold (and / or remains below a threshold for a determined time period). Removing the first layer node 311 may also include removing the entry 211 referenced by the first layer node 311 from the data set 210. In some instances, the management logic 226 may determine that the address range covered by the node 311 is not suitable for prefetching. As disclosed herein, some address ranges may not be suitable for prefetching and / or certain prefetching techniques. Inappropriate address ranges may exhibit poor prefetching performance over time and at different range sizes. The management logic 226 may identify the inappropriate address range, and in response, record no tracking metadata 612 identifying the address range is not suitable for prefetching. In some instances, the no-tracking metadata 612 includes one or more entries (no-tracking entries 611) that each identify a corresponding no-tracking address range. The no-tracking metadata 612 may be recorded within the access metadata 112 and / or may be made available to consumers 115 (such as prefetch logic 515). The prefetch logic 515 may use the no-tracking metadata 612 to avoid implementing prefetch operations within an inappropriate address range. Similarly, the management logic 226 may use the no-tracking metadata 612 to prevent tracking of an inappropriate address range in response to a subsequent tracking miss. The no-tracking metadata 612 may be maintained in one or more of the data set 210, the range management data structure 310, and / or other portions of the access metadata 112. Figure 6 In an example of , the management logic 226 is configured to maintain no-track metadata 612 within the access data set 210. The no-track metadata 612 may include one or more no-track entries 611, each of which is configured to identify a corresponding address range. The no-track entry 611 may identify an inappropriate address range by any appropriate mechanism. In some examples, the no-track entry 611 includes a timestamp and / or other information indicating the time when the no-track entry 611 was created. The management logic 226 may clear the no-track entry 611 when one or more conditions are met (when the workload within the address range may have changed), such as after a determined time period, after a restart or shutdown operation, etc. Alternatively or additionally, the management logic 226 may be configured to maintain the no-track metadata 612 within the data structure 310. Management logic 226 may use nodes 311 marked with a no-track indicator (eg, marked as no-track within state data 616 of node 311 , entry reference 621 , child reference 631 , utility metric 213 , and / or other fields) to indicate inappropriate address regions.

[0140] Figure 7A further example of an apparatus 700 for implementing adaptive tracking and / or adaptive tracking engine 110 is illustrated. Figure 7 In an example of , the second logic 626 of the adaptive tracking engine 110 includes and / or is coupled to the adaptation logic 726. The adaptation logic 726 utilizes the management logic 226 to adjust the set of address ranges covered by the access metadata 112 to, among other things, improve prefetch performance. The adaptation logic 726 can determine a modification operation to be implemented within the data set 210 based at least in part on the utility metric 213 of the access metadata 112.

[0141] In some aspects, the adaptation logic 726 is configured to construct the access metadata 112 from an initial or initialized state in which the data set 210 and / or the data structure 310 are substantially empty. The adaptation 726 may construct the access metadata 112 according to the configuration data 524, which may define modification operations implemented in response to a trace miss. In some instances, the configuration data 524 specifies that a trace miss is handled by adding an entry 211 of a minimum size to the access data set 210, which may include configuring the management logic 226 to: modify the data structure 310 to add a node 311 covering the address 202 associated with the trace miss to the lowest level 320-1 of the data structure 310, and implement the modification within the data set 210 by creating an entry 211 that covers the address range defined by the node 311 to the data set 210 maintained within the first memory 608 and configuring the overlay data 316 of the node 311 to reference the entry 211. In another instance, the configuration data 524 may specify that a trace miss is handled by adding a larger sized entry 211 to the data set 210, which may include configuring the management logic 226 to create a node 311 that covers an address 202 within a higher layer 320 of the data structure 310 and implement modifications within the data set 210 as disclosed herein (e.g., configuring the access metadata entry 211 of the data set 210 to cover the address range defined by the node 311).

[0142] The adaptation logic 726 may also be configured to tune, adjust, and / or optimize the set of address ranges covered by the access metadata 112 in background operations. The adaptation logic 726 may adapt the address ranges and / or range sizes covered by the entries 211 of the access data set 210 to, among other things, improve prefetch performance. As disclosed herein, the adaptation logic 726 may implement operations involving manipulating the data structures 310 within the data set 210 by using the management logic 226.

[0143] The adaptation logic 726 may adjust the address range and / or range size of the access metadata 112 according to an adaptation policy of the configuration data 524. In one example, the adaptation policy may configure the adaptation logic 726 to demote entries 211 that are determined to have a utility metric 213 below a threshold (e.g., a specified demote threshold). The adaptation logic 726 may select entries 211 for demote or other modification by, among other things, scanning the access metadata 112, which may include: traversing the nodes 311 of the data structure 310 (and / or the entries 211 referenced thereby), scanning the entries 211 of the data set 210, etc. The adaptation logic 726 may be configured to perform background scan operations (and perform corresponding address range adjustments) periodically, at specified intervals, during idle periods, etc.

[0144] As disclosed herein, demoting a selected entry 211 associated with an upper level node 311 of a data structure 310 may include demoting the upper level node 311 from occupied to open, creating one or more lower level child nodes 311 covering respective subsets of the address range covered by the upper level node 311, assigning an entry 211 of a data set 210 to the lower level child node 311, importing access metadata 112 of the selected entry 211 into the specified entry 211, and removing and / or invalidating the selected entry 211. Demoting an entry 211 within a lowest level 320-1 of the data structure 310 may include removing and / or invalidating the node 311 from the data structure 310, removing and / or invalidating the corresponding entry 211 from the data set 210, etc. The demote operation may also include recording a no trace indication in the access metadata 112, which may prevent the adaptation trace engine 110 from attempting to trace the address range in response to a subsequent trace miss, as disclosed herein.

[0145] In yet another example, the adaptation policy configures the adaptation logic 726 to promote access metadata entries 211 that are determined to have a utility metric 213 that exceeds a threshold (e.g., exceeds a specified promotion threshold). As disclosed herein, upgrading an entry 211 may include increasing the size of an address range covered by the entry 211. The adaptation logic 726 may select an entry 211 (and / or a corresponding node 311) for upgrading during a background scan operation, as disclosed herein. The adaptation logic 726 may implement operations to upgrade an entry 211 by using the management logic 226. The management logic 226 may upgrade the entry 211 by manipulating the data structure 310. The adaptation logic 726 may configure the management logic 226 to implement: an inter-layer upgrade operation in which an entry 211 is upgraded from a lower layer 320 of the data structure 310 to a higher layer 320, an intra-layer upgrade operation (inter-layer merge operation) in which an entry 211 is extended to include an additional address range within the same layer 320 of the data structure 310 (e.g., by manipulating a composite node 311 of the data structure 310), etc. The inter-layer merge operation of merging an entry 211 associated with a lower layer node 311 into a parent node 311 in a higher layer 320 of the data structure 310 may include: merging an entry 211 of a child node 311 of the parent node 311 into a destination entry 211, removing and / or invalidating an entry 211 of the child node 311 from the data set 210, removing the child node 311 from the data structure 310, and configuring the parent node 311 to reference the destination entry 211 (designating the parent node 311 as occupied rather than open).

[0146] In another example, the adaptation logic 726 is configured to merge the selected group of related access metadata entries 211. The adaptation policy may define related entries 211 as entries 211 that: a) cover an address range within a proximity threshold (and / or have the same range size), and b) have a utility metric 213 within a utility threshold. As disclosed herein, the adaptation logic 726 may identify the group of related entries 211 in response to a background scan operation. The adaptation logic 726 may merge the identified group of entries 211 by using the management logic 226 (e.g., by configuring the management logic 226 to implement a merge operation, an inter-layer merge operation, an intra-layer merge operation, etc.).

[0147] The adaptation logic 726 may also be configured to adjust, tune, and / or optimize an access metadata configuration 725 of the adaptive tracing engine 110. As used herein, the access metadata configuration 725 of the adaptive tracing engine 110 refers to information related to the configuration of the access metadata 112 captured and / or maintained by the adaptive tracing engine 110. The access metadata configuration 725 may correspond to a set of address ranges covered by the access metadata 112 and / or a configuration of the data set 210, such as the number of access metadata entries 211 included in the data set 210, the set of address ranges covered by the access metadata entries 211, etc. Alternatively or additionally, the access metadata configuration 725 may include information related to the data structure 310, as disclosed herein, which may define a set of address ranges covered by the access metadata entries 211 of the data set 210. The adaptation logic 726 may adjust the access metadata configuration 725 by a) determining, monitoring, adjusting, and / or otherwise maintaining utility metadata 723 of the access metadata configuration 725, and b) implementing a modification operation to modify the access metadata configuration 725 based at least in part on the utility metadata 723. The utility metadata 723 of the access metadata configuration 725 may be based at least in part on the utility metrics 213 of the access metadata entries 211 of the data set 210 (and / or the utility metrics 213 of the corresponding nodes 311 of the data structure 310). Determining the utility metadata 723 may include, but is not limited to, averaging, weighting, aggregating, merging, and / or otherwise combining the utility metrics 213 of the access metadata entries 211 (and / or the corresponding nodes 311). In some instances, the utility metric 213 may be weighted by address range size, where a utility metric 213 corresponding to a larger address range size is weighted more heavily than a utility metric 213 corresponding to a smaller address range size (e.g., the utility metric 213 associated with the corresponding node 311 may be multiplied by a weighting factor assigned to the layer 320 of the data structure 310 in which the corresponding node 311 is disposed). Alternatively or additionally, the utility metric 213 may be weighted according to activity level, where a utility metric 213 corresponding to an address range with a higher activity level (e.g., higher request frequency, prefetch activity, etc.) is weighted more heavily than a utility metric corresponding to an address range with a lower activity level. The activity level of each access metadata entry 211 may be determined based on the number and / or frequency of commands 201 associated with the addresses 202 covered by the corresponding entry 211 (and / or the corresponding node).

[0148] In some examples, the adaptation logic 726 implements an iterative tuning process, where each iteration may include, but is not limited to: a) determining utility metadata 723 of the access metadata configuration 725 of the adaptive tracking engine 110, b) evaluating an adaptation function or model (e.g., an optimization function or model) to determine a utility quantity of the access metadata configuration 725, and c) determining whether to modify the access metadata configuration 725 based at least in part on the utility quantity. The objective function may be defined by, among other things, an adaptation strategy of the configuration data 524. The objective function can be configured to balance the utility of the access metadata configuration 725 (as quantified by the utility metadata 723) and the cost associated with the access metadata configuration 725, which can be quantified based on memory overhead, computational overhead, latency overhead, complexity, memory overhead of the data set 210, memory overhead of access metadata entries 211 of the data set 210 (e.g., within the first memory 608), the number of entries 211 included in the data set 210, memory overhead of the data structure 310 (e.g., in the second memory 618), the number of nodes 311 and / or substructures 312 included in the data structure 310, the complexity of the data structure 310, etc.

[0149] The adaptation logic 726 may determine modifications to the access metadata configuration 725 that, based on the adaptation function or model, will improve the utility of the address tracking engine 110 (e.g., result in an increase in the utility metric 213 and / or a decrease in cost). The adaptation logic 726 may implement iterations of the optimization process in background operations. The adaptation logic 726 may continue to iterate the optimization process until one or more termination criteria are met, such as convergence to an optimal access metadata configuration 725, convergence to a local optimum, convergence to a stable set of access metadata configurations 725, reaching an iteration threshold, etc. Alternatively or additionally, the adaptation logic 726 may be configured to periodically implement iterations of the optimization process and / or resume the optimization process in response to changing workload conditions, which may, among other things, result in a decrease in the utility metric 213 within one or more address ranges of the access metadata configuration 725. The adaptation logic 726 can be configured to implement any suitable optimization process, algorithm, technique or model, including but not limited to: gradient descent, steepest descent, conditional gradient, stochastic gradient descent, heuristic algorithms (e.g., memetic algorithms, evolutionary algorithms, differential evolution algorithms, genetic algorithms, dynamic relaxation algorithms, hill climbing algorithms, particle swarm algorithms, etc.), ML optimization algorithms, etc.

[0150] although Figure 7 The adaptation logic 726 is illustrated as being implemented in an example device 600 in which the access data set 210 and the entries 211 of the data structure 310 are maintained in separate memory resources, but the present disclosure is not limited thereto, and the adaptation logic 726 and / or its functionality may be incorporated into other embodiments, such as in which the access metadata entries 211 of the data set 210 are contained in a separate memory resource. Figure 3 An implementation in a corresponding node 311 of the data structure 310 is shown.

[0151] Figure 8 A further example of an apparatus 800 for implementing adaptive address tracking is illustrated. Figure 8 In an example of , the adaptive tracking engine 110 is coupled to and / or included within the cache memory 106, which includes, in particular, cache logic 802 and a memory array 806. The adaptive tracking engine 110 includes and / or is coupled to a first memory 608 configured to access metadata 112 and / or access data set 210. In some examples, the first memory 608 is implemented by and / or within the memory array 806. The first memory 608 can be implemented in a dedicated area of ​​the memory array 806. The search logic 625 can also be implemented by and / or within the memory array 806 (as a PIM circuit, etc.).

[0152] The adaptive tracing engine 110 also includes a second memory 618 configured as a range management data structure 310 and management logic 226. In some examples, the second memory 618 is implemented by and / or within the memory array 806. Alternatively, the second memory 618 may be implemented by and / or within other memory resources, such as the backing memory 108, on-board memory, DRAM, etc. The management logic 226 configures the data structure 310 to define a plurality of range sizes, each corresponding to a respective one of the layers 320 of the data structure 310. As disclosed herein, the adaptive tracing engine 110 captures access metadata 112 related to the address region covered by the respective entry 211 of the data set 210. The entry 211 may be updated in response to a cache request such as a cache hit, a cache miss, etc.

[0153] The cache memory 106 may be configured to cache addresses associated with the backing memory 108 within the memory array 806. The cache logic 802 may be configured to load addresses into the memory array 806, in particular in response to a cache miss. The cache logic 802 may also be configured to prefetch addresses within the corresponding address range based at least in part on the access metadata 112 covering the corresponding address range maintained within the entry 211 of the data set 210. The cache logic 802 may implement any suitable prefetching technique and / or prefetcher type, including but not limited to: a stride prefetcher, a correlation prefetcher, an ML prefetcher, etc. In some embodiments, the stride prefetcher implemented by the cache logic 802 uses the access metadata 112 covering the corresponding address range to, in particular, detect a stride pattern within the corresponding address range. In other embodiments, the correlation prefetcher implemented by the cache logic 802 uses the access metadata 112 covering the corresponding address range to, in particular, detect delta correlation and / or delta sequence within the corresponding address range. Alternatively or additionally, an ML prefetcher such as an LSTM prefetcher uses the access metadata 112 to develop an ML model in the covered corresponding address range and / or applies the access metadata 112 covering the corresponding address range to an ML model corresponding to the corresponding address range.

[0154] The cache logic 802 may also be configured to provide feedback regarding prefetch performance within the address range of the corresponding entry 211. The management logic 226 uses the feedback to determine the utility metric 213 for the corresponding entry 211 (and / or the corresponding node 311 of the data structure 310). As disclosed herein, the device 800 further includes an adaptation logic 726 that adjusts the range size and / or address range covered by the entry 211 to improve prefetch performance.

[0155] Instance methods for adaptive address tracking

[0156] References in this section Figures 9 to 15 The flowcharts and process diagrams of the present invention describe example methods. These descriptions refer to the components, entities and other aspects depicted in Figures 1 to 8 by way of example only. Fig. 9An example method for implementing an apparatus for adaptive address tracking is illustrated in flowchart 900. Flowchart 900 includes blocks 902 through 906. In some embodiments, host device 102 (and / or components thereof) may perform one or more operations of flowchart 900. Alternatively or additionally, one or more operations may be performed by a memory, a memory controller, PIM logic, a cache memory, cache logic, prefetch logic, an embedded processor, etc. At 902, adaptive tracking engine 110 receives a command 201 (and / or an indication of a command 201) related to an address of a memory address space, such as a command 201 to retrieve, modify, manipulate, and / or otherwise access data associated with address 202. Command 201 may be received and / or obtained from a source 215, such as processor 103, memory controller 104, interconnect 105, cache memory 106, cache prefetch logic, prefetcher, etc. For example, commands 201 may correspond to a memory I / O workload generated by a program running on processor 103 of host 102 as the program accesses various regions of a memory address space.

[0157] At 904, access metadata 112 related to the command 201 received at 902 is stored in a memory (e.g., the memory 208, the first memory 608, etc.). The access metadata 112 may be stored in a data set 210 including one or more entries 211 in response to the command 201, wherein each entry 211 of the data set 210 covers an address range of a memory address space and includes access metadata 112 related to addresses within the covered address range. The access metadata 112 maintained within the entry 211 may include any information related to the address range covered by the entry 211, which may include, but is not limited to: information related to accesses within the covered address range, access statistics, access pattern statistics, access history, access sequence, access frequency metadata, access time metadata, access pattern metadata, stride pattern, correlation pattern, increment sequence, access modeling metadata, ML modeling metadata, ML feature data, etc. The access metadata 112 may be maintained and / or updated in response to any suitable type of command 201 including, but not limited to, data access requests, read requests, write requests, copy requests, clone requests, fine-tune requests, erase requests, delete requests, cache misses, cache hits, and the like.

[0158] At 906, the management logic 226 adjusts the size of the address range covered by at least one entry 211 of the data set 210 based at least in part on one or more metrics 214 representing prefetch performance within the address range covered by the one or more entries 211 of the data set 210. In some examples, the adaptive tracking engine 110 provides the access metadata 112 to the prefetch logic 515, which uses the access metadata 112 to inform prefetch operations within the address range covered by the access metadata 112. The prefetch logic 515 may also be configured to provide feedback 204 about prefetch performance within the address range, such as the number of available prefetches performed within the address range, the ratio of available prefetches to poor prefetches, etc. At 906, the address range covered by the entries 211 with relatively high prefetch performance may be increased, while the address range covered by the entries 211 with relatively low prefetch performance may be reduced (and / or the low-performing entries 211 may be removed). At 906, the set of address ranges defined by the data structure 310 may be modified, in particular by manipulating one or more nodes 311 thereof. The entry 211 of the data set 210 may be configured to implement the modified set of address ranges. The address range covered by the entry 211 may be modified by writing one or more bits to the first memory 608 (writing bits to modify the range metadata 214 of the entry 211).

[0159] Fig.10 A further example of a method of an apparatus for implementing adaptive address tracking is illustrated in flowchart 1000. At 1002, the management logic 226 of the adaptive tracking engine 110 represents an address range of a memory address space through nodes 311 within each layer 320 of a data structure 310, each layer 320 corresponding to one of a plurality of address range sizes. The management logic 226 may also be configured to encode parent-child relationships within the data structure 310, wherein the parent-child relationships between nodes 311 at different layers 320 of the data structure represent address range inclusion relationships between the nodes 311. The management logic 226 may also encode corresponding sibling relationships within the data structure 310, wherein nodes 311 having the same corresponding parent node 311 in an upper layer 320 of the data structure 310 represent a subset of the same corresponding larger upper layer address range represented by the corresponding parent node 311. The sibling nodes 311 of the same parent node 311 may be organized within a substructure 312, wherein the sibling nodes 311 are indexed by child tag values ​​(e.g., by the contents of the node tag 314). As disclosed herein, the management logic 226 may also be configured to implement a set of address ranges defined by the data structure 310 within the data set 210 including the access metadata entry 211 .

[0160] At 1004, the update logic 224 of the adaptive tracking engine 110 captures and / or maintains access metadata 112 within corresponding entries 211 of the data set 210, each entry 211 of the data set 210 being associated with a corresponding node 311 of the data structure 310 and covering an address range represented by the associated node 311. The update logic 224 may be configured to update the access metadata 112 in response to a command 201 associated with an address 202 of the address space. At 1004, the command 201 is received, and in response, the update logic 224 maps the address 202 associated with the command 201 to the entry 211 of the data set 210 and updates the access metadata of the entry 211 accordingly. At 1004, the adaptive tracking engine 110 may also be configured to provide access metadata 112 related to the specified address range to consumers 115 (such as caches, cache memories, cache control logic, cache prefetch logic, prefetch logic, prefetchers, etc.), which may use the access metadata 112 to implement prefetch operations within the specified address range and provide feedback related to prefetch performance and / or utility within the specified address range. As disclosed herein, the feedback may be used to determine a prefetch utility metric (utility metric 213) for each access metadata entry 211 of the data set 210.

[0161] At 1006, the management logic 226 modifies the data structure 310 based at least in part on the prefetch utility metrics of the corresponding address ranges of the access metadata entries 211, nodes 311, and / or data sets 210. The management logic 226 may implement the modifications to: modify the size of one or more address ranges, increase the size of one or more address ranges, promote one or more entries 211 to a higher layer 320 of the data structure, demote one or more entries 211 to a lower layer 320 of the data structure, merge one or more entries 211 (and / or corresponding nodes 311), split one or more entries 211 (and / or corresponding nodes 311), and the like. The modifications to the data structure 310 may be suitable for improving prefetch performance. The modifications may include reducing the size of an entry 211 having a utility metric 213 below a reduction threshold, increasing the size of an entry 211 having a utility metric 213 above an increase threshold, combining sibling entries 211 having a utility metric 213 within a proximity threshold, and the like. Management logic 226 may implement the modifications of 1006 by, inter alia, manipulating nodes 311 of data structure 310. These manipulations may be implemented according to the hierarchical address containment relationships of data structure 310 such that the modified sets of address ranges defined by the modified data structure 310 are different from one another.

[0162] At 1008, the management logic 226 updates the address range covered by at least one of the entries 211 of the data set 210 in response to modifying the data structure 310. The management logic 226 may be configured to propagate the modification implemented within the data structure 310 at 1006 within the access metadata entries 211 of the data set 210. More specifically, the management logic 226 may link the entry 211 of the data set 210 with an occupied node or leaf node 311 of the data structure 310 and configure the entry 211 to cover the address range defined by the associated node 311 after the modification.

[0163] Fig.11 A further example of a method of an apparatus for implementing adaptive address tracking is illustrated in flowchart 1100. At 1102, management logic 226 maintains a data set 210 including access metadata entries 211, each entry 211 being configured to cover an address range of a set of address ranges defined by a data structure 310. Management logic 226 may be configured to construct data structure 310 and corresponding data set 210 from an initialization state in which data structure 310 and data set 210 are substantially empty. Management logic 226 may also be configured to add a node 311 to data structure 310 and a corresponding entry 211 to data set 210 in response to a tracking miss (e.g., in response to command 201 and / or a request for access metadata 112 related to an address 202 not covered by an entry 211 of the access data set 210). In some embodiments, access data set 210 is maintained in first memory 608 and data structure 310 is maintained in second memory 618 separate and / or independent from first memory 608.

[0164] At 1104, the update logic 224 of the adaptive tracing engine 110 captures the access metadata 112 within the entry 211 of the data set 210. The access metadata 112 may be captured in response to the command 201 associated with the address 202 of the address space. At 1104, the corresponding entry 211 of the data set 210 is updated in response to the command 201 associated with the address 202 within the address range covered by the corresponding entry 211.

[0165] At 1106, the interface 222 of the adaptive tracing engine 110 provides the access metadata 112 (and / or portions thereof) to the prefetch logic 515. The prefetch logic 515 may utilize the access metadata 112 to inform prefetch operations within the address range covered by the access metadata 112. The prefetch logic 515 may implement prefetch operations within the address range covered by the corresponding entry 211 based on and / or by using the access metadata 112 of the entry 211. The prefetch logic 515 may also be configured to return feedback 204 regarding the utility of prefetches with the corresponding address range, which may be used to determine, update, and / or modify the utility metric 213 of the corresponding entry 211 of the data set 210.

[0166] At 1108, the update logic 224 evaluates the prefetch utility of each access metadata entry 211 of the data set 210. The prefetch utility of an entry 211 may indicate whether the size of the address range covered by the entry 211 is appropriate to capture the access metadata 112 from which access patterns may be derived. A low prefetch utility may indicate that the address range is inappropriately sized and / or should be downgraded to a smaller size, while a high prefetch utility may indicate that the address range is appropriately sized and / or should be upgraded to a larger size.

[0167] At 1110, the management logic 226 (or its adaptation logic 726) determines whether to modify the set of address ranges defined by the data structure 310 (and implemented by the entries 211 of the data set 210). At 1110, the prefetch utility (e.g., the utility metric 213) of the entry 211 can be compared to one or more thresholds: entries 211 with a utility metric 213 below a first threshold can be selected for demoting, entries 211 with a utility metric 213 above a second threshold can be selected for upgrading, related nodes 311 with utility metrics 213 within a threshold can be selected for merging operations, and so on. In some embodiments, the adaptation logic 726 evaluates an adaptation function (e.g., an objective function of an optimization model) to determine, among other things, whether to modify the set of address ranges covered by the access metadata 112. The evaluation can include determining a suitable metric configured to balance the prefetch performance provided by the access metadata 112 captured within the set of address ranges and the cost associated with the access metadata 112. The cost can be quantified in terms of overhead, resource consumption, prefetch cost, and so on. The evaluation may include determining the set of modified address ranges according to an optimization algorithm, such as gradient descent or the like.

[0168] If the determination at 1110 is to modify the address range set, the flow continues at 1112; otherwise, the flow continues at 1102. At 1112, the management logic 226 adjusts the data structure 310 to define a modified address range set. The management logic 226 may define the modified address range set by implementing one or more manipulation operations within the data structure 310, and the manipulation operations may include but are not limited to: a merge operation, an inter-layer merge operation, an intra-layer merge operation, a split operation, an inter-layer split operation, an intra-layer split operation, a remove operation, an upgrade operation, an inter-layer upgrade operation, an intra-layer upgrade operation, a downgrade operation, an inter-layer downgrade operation, an intra-layer downgrade operation, etc. The manipulation operations may be configured to improve the prefetch utility of accessing the data set 210 by downgrading the entries 211 with relatively lower utility metrics 213 and upgrading the entries 211 with relatively higher utility metrics 213.

[0169] At 1114, the management logic 226 reconfigures the access metadata entries 211 of the data set 210 to cover the modified set of address ranges defined by the data structure 310, and the process can continue at 1102. In some embodiments, portions of 1108 to 1114 can be implemented in background operations. The background operations can be implemented during idle periods and / or by using idle resources available to the adaptive tracing engine 110. As disclosed herein, the management logic 226 can suspend, pause, and / or terminate the background operations when resources are needed to implement the foreground operations.

[0170] Figure 12-1 An example of a method for increasing the size of one or more address ranges covered by access metadata entries 211 of a data set 210 (e.g., upgrading entries 211 of a data set 210) as disclosed herein is illustrated in flowchart 1200. At 1202, an access metadata entry 211 of a data set 210 is selected for upgrading. The entry 211 may be selected for upgrading based on a utility metric 213 of the entry 211, which may indicate a relatively high prefetch performance within an address range covered by the entry 211. The entry 211 may be selected in response to determining that the utility metric 213 of the entry 211 exceeds one or more thresholds.

[0171] At 1204, the management logic 226 of the adaptive tracking engine 110 determines whether the node 311 associated with the selected entry 211 has a parent node within a higher layer of the data structure 310. The management logic 226 can determine whether the node 311 is set within the last, highest layer 320-N of the data structure 310 or within a lower layer 320 of the data structure (e.g., within one of layers 320-N-1 through 320-1). If the selected entry 211 is associated with the node 311 within the highest layer 320 of the data structure 310, the process continues at 1206; otherwise, the process continues at 1208. At 1206, the current address range of the selected entry 211 can be retained (not changed). Alternatively, the address range of the selected entry 211 can be increased by an intra-layer upgrade operation (in conjunction with Figure 12-2 to expand upon (an example of an intra-layer upgrade operation disclosed in more detail).

[0172] At 1208, the management logic 226 configures the designated entry 211 of the data set 210 to cover the address range defined by the upper node 311 identified at 1204 (the parent node of the node 311 associated with the selected entry 1202). The designated entry 211 may be configured to cover an address space larger than the address space covered by the selected entry 211. The address space covered by the designated entry 211 may include the address space covered by the selected entry 211.

[0173] At 1210, the access metadata 112 of the designated entry 211 is populated with the access metadata 112 of the selected entry 211 and the access metadata 112 of the sibling entries of the selected entry 211, if any. The sibling entry 211 may be identified as the entry 211 associated with the sibling node 311 in the node 311 associated with the selected entry. The management logic 226 may merge the selected entry 211 and the sibling entry 211, if any, into the designated entry 211 associated with the higher-level node 311 (e.g., effectively upgrading the lower-level address range covered by the selected entry 211 to a larger higher-level address range).

[0174] At 1212, the management logic 226 removes the child nodes of the upper node 311 from the data structure 310. At 1214, the management logic 226 invalidates and / or removes the entry associated with the child node 311 from the data set 210.

[0175] Figure 12-2A further example of a method for increasing the size of one or more address ranges covered by an access metadata entry 211 of a data set 210 (e.g., upgrading an entry 211) is illustrated in flowchart 1201. At 1202, an access metadata entry 211 of a data set 210 is selected for upgrading, as disclosed herein. At 1207, the management logic 226 configures a composite node 311 that combines a node 311 associated with the selected entry 211 with one or more sibling nodes 311 within the same layer 320 as the node 311 within the data structure 310. The composite node 311 may be configured to cover an address range corresponding to multiple subtag values ​​of a layer. Therefore, the node label 314 of the composite node 311 may include multiple subtag values ​​(as opposed to a single subtag value for a non-composite node 311). In some embodiments, the management logic 226 assigns consecutive subtag values ​​to the composite node 311.

[0176] At 1209, the management logic 226 configures the selected entry 211 to cover the address range defined by the composite node 311. At 1211, the management logic 226 merges the access metadata (if any) of the entry associated with the sibling node 311 merged into the composite node 311 at 1207 into the access metadata 112 of the selected entry 211. At 1213, the child nodes of the sibling node (if any) 311 are removed from the data structure. At 1215, the entry 211 associated with the sibling node 311 (if any) is invalidated and / or removed from the data set 210.

[0177] Figure 13-1 An example of a method for reducing the size of an address range covered by access metadata 112 is illustrated in flowchart 1300 . Figure 13-1 An example of an inter-set demotion or split operation is illustrated. At 1302, an access metadata entry 211 of a data set 210 is selected for demotion. The entry 211 may be selected for demotion based on a utility metric 213 of the entry 211, which may indicate poor prefetch performance within an address range covered by the entry 211. In response to determining that the utility metric 213 of the entry fails to satisfy one or more thresholds, the entry 211 may be selected for demotion.

[0178] At 1304, the management logic 226 determines whether the identified node 311 currently associated with the selected entry 211 is disposed within the first or lowest level 320-1 of the data structure 310. If so, the process continues at 1306; otherwise, the process continues at 1308. At 1306, the identified node 311 is removed from the data structure 310, and the corresponding entry 211 is invalidated and / or removed from the data set 210. At 1306, the management logic 226 may also be configured to designate the address range covered by the entry 211 as a no-trace address range, which may prevent the adaptive tracing engine 110 from tracing the address range in response to a subsequent trace miss. The no-trace designation may be included in the access metadata 112 provided to the consumer 115 (such as the prefetch logic 515), which may prevent the prefetch logic 515 from attempting to implement a prefetch operation within the address range.

[0179] At 1308, the management logic 226 performs a manipulation operation to reduce the size of the covered address range. Figure 13-1 In the example shown, the management logic 226 implements an inter-tier demotion operation that includes splitting the identified node 311 into a group of one or more nodes 311 (child nodes 311) within the lower layer 320 of the data structure 310 at 1310, each node in the group being configured to cover a corresponding subset of the address range covered by the identified node 311. In some embodiments, the node group 311 is configured to cover the address range of the selected entry 211. Alternatively, the node group 311 may be configured to cover a selected portion of the address range based, inter alia, on access metadata of the selected entry 211. The node group 311 may be configured to cover a portion of the address range that is determined to be relatively more active and / or corresponds to a relatively higher utility metric 213 than other portions of the address range. The node group 311 may be organized into a substructure 312 referenced by the identified node 311. Thus, the identified node 311 may be transitioned from being occupied to being open.

[0180] At 1312, the management logic 226 configures the access metadata entry 211 of the data set 210 to cover the address range defined by the corresponding node 311 of the node group 311 (and associates the configured entry 211 with the corresponding node 311 of the group). At 1314, the management logic 226 populates the access metadata 112 of the configured entry 211 with the access metadata 112 of the selected entry 211. At 1316, the selected entry 211 is invalidated and / or removed from the data set 210.

[0181] Figure 13-2 An example of a method for reducing the size of an address range covered by an access metadata entry 211 associated with a composite node 311 of a data structure 310 is illustrated in flowchart 1301. More specifically, Figure 13-2An example of an intra-set downgrade or split operation is illustrated. At 1302, as disclosed herein, an access metadata entry 211 of a data set 210 is selected for downgrade. At 1303, the management logic 226 determines whether the selected entry 211 is associated with a composite node 311. If not, the process continues at 1305, where an inter-tier downgrade is performed; otherwise, the process continues at 1311.

[0182] At 1311, the management logic 226 splits the address ranges covered by the composite node 311 into a first group and a second group, the first group comprising a subset of the address ranges to be covered by the access metadata 112, and the second group comprising a subset of the address ranges to be excluded from coverage within the access metadata 112. The first group and the second group can be distinguished based at least in part on the access metadata of the selected entry 211. The first group can include address ranges having a relatively higher activity level and / or being associated with a relatively higher utility metric 213 compared to the second group of address ranges. The management logic 226 can also be configured to create a node 311 that is configured to represent the corresponding address ranges of the first group within the same layer 320 of the data structure 310 as the composite node 311.

[0183] At 1313, the management logic 226 configures the entries 211 of the data set 210 to cover the corresponding address ranges of the first set of address ranges (and corresponding nodes 311). At 1315, the configured entries 211 are populated with the access metadata of the selected entries 211. At 1317, the management logic 226 invalidates and / or removes the entries 211 corresponding to the second set of address ranges from the data set 210. The management logic 226 may also be configured to remove the composite node 311 from the data structure 310, and invalidate and / or remove the selected entries 211 from the data set 210.

[0184] Fig.14 An example flow chart describing operations for merging related access metadata entries of an adaptive tracking engine is illustrated. At 1402, the management logic 226 of the adaptive tracking engine 110 identifies related entries 211 of a data set 210 suitable for merging. As disclosed herein, a related entry 211 refers to an entry 211 that is a sibling node. More specifically, a sibling or related entry 211 includes an entry 211 associated with a node 311 that a) is disposed within the same layer 320 of the data structure 310 and b) has the same upper parent node 311. Related entries 211 suitable for merging refer to related entries 211 that have utility metrics 213 that are similar to each other (e.g., have utility metrics 213 that differ by less than a threshold). The related entries 211 can be identified in a background scanning operation, as disclosed herein.

[0185] At 1404, the management logic 226 configures the destination entry 211 to cover the address range defined by the upper parent node 311 of the identified entry 211. At 1406, the access metadata of the related entry 211 is merged into the access metadata of the destination entry 211 (e.g., by averaging, aggregating, and / or otherwise combining the access metadata of the related entry 211 into the destination entry 211). At 1408, the management logic 226 removes the child nodes of the upper parent node 311 from the data structure 310, including the node 311 associated with the related entry 211 identified at 1402 (and the child nodes of the related entry 211, if any). At 1410, the entry 211 associated with the child node of the upper parent node 311 is invalidated and / or removed from the data set 210, as disclosed herein.

[0186] Fig.15 A further example of a method of an apparatus for implementing adaptive address tracking is illustrated in flowchart 1500 At 1502 , the first logic 624 of the adaptive tracking engine 110 configures the first memory 608 to store access metadata 112 related to an address space within an entry 211 of a data set 210 .

[0187] At 1504, the first logic 624 updates the access metadata of the corresponding entry 211 of the data set 210 in response to the command 201 related to the address covered by the address range of the corresponding entry 211. In response to the command 201 related to the address 202, the first logic 624 can use the search logic 625 to find the access metadata entry 211. The search logic 625 can be implemented in hardware and can compare the address 202 (and / or portions thereof) to multiple entries 211 of the data set 210 at least partially in parallel. At 1504, the first logic 624 can also be configured to provide the access metadata 112 and / or portions thereof to consumers 115 such as prefetch logic 515. The prefetch logic 515 can use the access metadata 112 to notify prefetch operations within the address range covered by the access metadata 112 and return feedback 204 indicating the effectiveness of the prefetch operations performed within the corresponding address range.

[0188] At 1506, the second logic 626 of the adaptive tracing engine 110 maintains a data structure 310 within the second memory 618, the data structure 310 being configured to define a set of address ranges covered by entries 211 of a data set 210 maintained within the first memory 608, each entry 211 of the data set 210 being associated with a corresponding node 311 of the data structure 310 defining an address range covered by the entry 211 within the access data set 210.

[0189] At 1508, the second logic 626 modifies the set of address ranges covered by the access data set 210 maintained within the first memory 608 based at least in part on the utility metrics of the corresponding entries 211 of the data set 210. The second logic 626 may include management logic 226 that changes the data structure 310 within the second memory 618 to, among other things, modify the address ranges defined thereby, and propagates the modification to the access data set 210 maintained within the first memory 608. The management logic 226 may reconfigure the access metadata entries 211 of the data set 210 to cover the corresponding address ranges of the modified set of address ranges defined by the changed data structure 310. The process can continue with the first logic 624 updating the access metadata 211 (at 1504) in response to the command 201 regarding the address 202 covered by the corresponding address range of the modified address range set, and the interface 222 providing the access metadata 112 (and / or portions thereof) to a consumer 115, such as the prefetch logic 515, which utilizes the access metadata 112 to implement prefetch operations within the address range covered by the respective access metadata entries 211 and provides feedback regarding the prefetch utility of the corresponding entries 211.

[0190] Fig.16Operations of adapting the size of an address range covered by access metadata by an example implementation of the adaptive tracking engine 110 are illustrated in flowchart 1600. Adjusting the address range size may include adjusting the set of address ranges covered by the access metadata 112 (and / or the corresponding entry 211 of the data set 210). At 1602, the adaptive tracking engine 110 implements address tracking as disclosed herein. At 1602, the update logic 224 of the adaptive tracking engine 110 captures, updates, and / or otherwise maintains the access metadata 112 within the corresponding entry of the data set 210 in response to, among other things, a command 201 related to an address 202 covered by the corresponding entry 211. As disclosed herein, the set of address ranges covered by the access metadata entry 211 may be defined by the data structure 310. At 1602, the management logic 226 of the adaptive tracing engine 110 creates a node 311 within the data structure 310 in response to a trace miss, and encodes the relationship between the respective nodes 311 to represent the relationship between the address ranges covered by the respective nodes 311. In some embodiments, the utility metric 213 of the respective entry 211 of the data set 210 (and / or the corresponding node 311 of the data structure 310) is determined, updated and / or modified based at least in part on the feedback 204 regarding the prefetch performance within the address range covered by the respective entry 211. Thus, at 1602, the adaptive tracing engine 110 may develop an access metadata configuration 725 that defines, among other things, the set of address ranges covered by the access metadata 112 captured and / or maintained thereby. In some embodiments, the data structure 310 and the data set 210 are maintained within separate structures and / or memory components. In some instances, the access metadata entries 211 of the data set 210 are maintained in the first memory 608, while the data structure 310 is maintained in the second memory 618.

[0191] At 1604, the management logic 226 (and / or the adaptation logic 726) of the adaptive tracing engine 110 determines whether to evaluate the access metadata configuration 725. The determination may be based on whether the adaptive tracing engine 110 can implement one or more background operations, based in particular on the availability of free resources, whether the adaptive tracing engine 110 has received and / or is implementing one or more foreground operations, etc. Alternatively or additionally, the determination may be based on a time interval and / or other criteria (e.g., operations to evaluate and / or adjust the access metadata configuration 725 may be implemented periodically, even if not in a background operation). In some embodiments, the adaptation logic 726 may determine at 1604 whether to implement an iteration of the optimization process, which may be based on whether one or more termination criteria of the optimization process have been met, as disclosed herein. If the determination at 1604 is to evaluate the access metadata configuration 725 (e.g., implement an optimization operation), the flow continues at 1606; otherwise, the flow continues at 1602.

[0192] At 1606, the adaptation logic 726 quantifies the utility of the access metadata configuration 725 of the adaptive tracking engine 110. The utility of the access metadata configuration 725 may be quantified by and / or within the utility metadata 723, as disclosed herein. The utility metadata 723 may be combined with the utility metrics 213 of the respective access metadata entries 211 of the data set 210 (and / or the corresponding nodes 311 of the data structure 310). In some embodiments, the utility metrics 213 may be weighted and / or adjusted based on one or more criteria such as address range size, activity level, etc.

[0193] At 1608, the adaptation logic 726 determines whether to modify the access metadata configuration 725 implemented by the adaptive tracing engine 110. The adaptation logic 726 may determine whether to modify the access metadata configuration 725 based on and / or by using an adaptation policy. As disclosed herein, an adaptation policy may define conditions that trigger modification of one or more address ranges covered by the access metadata 112. In some embodiments, the first metric 213 is monitored while the access metadata 112 is configured to cover a first set of address ranges defined by the data structure 310, the second metric 213 is monitored after the access metadata 112 is adapted to cover a second set of address ranges different from the first set of address ranges (e.g., after the data structure 310 is modified to define the second set of address ranges), and based at least in part on the first metric 213 and the second metric 213, 1608 may include one of: adjusting the set of address ranges covered by the access metadata 112 so that the access metadata 112 is restored to cover the first set of address ranges (e.g., modifying the data structure 310 to restore to define the first set of address ranges), continuing to operate with the access metadata 112 configured to cover the second set of address ranges, or adjusting the set of address ranges covered by the access metadata 112 so that the access metadata 112 covers a third set of address ranges different from the first set of address ranges and the second set of address ranges (e.g., modifying the data structure 310 to define the third set of address ranges).

[0194] Alternatively or additionally, the determination at 1608 may be based on an optimization model defined by and / or within the configuration data 524 of the adaptive tracking engine 110. The optimization model may implement an optimization algorithm or technique configured to balance the utility of each access metadata configuration 725 with a corresponding cost, which may be quantified in terms of resource utilization, as disclosed herein. The optimization model may be configured to iteratively converge to an optimal access metadata configuration 725 (and / or a local or near-optimal access metadata configuration 725) that produces the best utility at a minimum cost. The adaptation logic 726 may be configured to iteratively modify the access metadata configuration 725 via the optimization model (based on the determinations at 1604 and 1608) until the optimal access metadata configuration 725 is obtained or other termination criteria of the optimization process are met. If the determination at 1608 is to modify the access metadata configuration 725, then the flow continues at 1610; otherwise, the flow continues back at 1602.

[0195] At 1610, the adaptation logic 726 modifies the access metadata configuration 725 according to the optimization model (and determined at 1608). The modification may include, but is not limited to: upgrading one or more access metadata entries 211 (extending the address range covered by the entry 221), demoting one or more entries 211 (reducing the address range covered by the entry 211), removing one or more entries 211, etc. The management logic 226 implements the modification determined by the adaptation logic 726 within the data structure 310, which may include modifying the set of address ranges defined by the data structure 310. Upgrading the address range of the selected entry 211 may include an inter-layer merge operation, wherein: a) entry 211 of the data set 210 is configured to cover the address range defined by the upper parent node 311 of the selected entry 211 (the destination entry 211 for the inter-layer merge), b) access metadata of the entry 211 associated with the child node 311 of the upper parent node 311 containing the selected entry 211 is merged into the destination entry 211, c) the child node 311 is removed from the data structure 310, and d) the entry 211 associated with the child node 311 is invalidated and / or removed from the data set 210. Alternatively or additionally, upgrading the address range of the selected entry 211 may include an intra-layer merge operation in which a) the node 311 associated with the selected entry 211 is converted to a composite node 311 that combines one or more sibling nodes 311 and / or address ranges within the same layer 320 of the data structure, b) the selected entry 211 is configured to cover an extended address range defined by the composite node 311, c) the sibling node 311 is removed from the data structure 310, and d) the entry 211 associated with the sibling node 311 is invalidated and / or removed from the data set 210. Demoting the address range of the selected entry 211 may include an inter-layer split operation, wherein: a) one or more child nodes 311 of the node 311 associated with the selected entry 211 are created within the next lower layer 320 of the data structure 310, b) the entry 211 of the data set 210 is configured to cover the address range defined by the child nodes 311, c) the access metadata 112 of the selected entry 211 is copied within the entry 211 associated with the child nodes 311, and d) the selected entry 211 is invalidated and / or removed from the data set 210. Demoting the address range of a selected entry 211 in an intra-layer split operation may include: a) splitting a composite node 311 associated with the selected entry 211 into one or more non-composite nodes 311 within the same layer 320 of the data structure 310 as the composite node 311, b) importing access metadata 112 of the selected entry 211 into the entry 211 associated with the non-composite node 311, c) removing the composite node 311 from the data structure 310, and d) invalidating the selected entry 211 and / or removing it from the data set 210.Demoting the address range of the selected entry 211 associated with the non-composite node 311 within the lowest level 320-1 of the data structure 310 may include: a) removing the node 311 from the data structure 310, and b) invalidating and / or removing the selected entry 211 from the data set 210. In some embodiments, demoting the address range further includes designating the address range as no-tracking within the access metadata 112, which may prevent the adaptive tracing engine 110 from tracing the address range in response to a subsequent tracing miss and / or prevent the prefetch logic 515 from attempting to implement a prefetch operation within the no-tracking address range. After implementing the modification at 1610, the flow may continue at 1602, where the adaptive tracing engine 110 may implement an address tracing operation according to the modified access metadata configuration 725.

[0196] Example system for adaptive address tracking

[0197] Fig.17 An example system 1700 for implementing adaptive address tracking is illustrated. The system 1700 includes a device 1710, which can include an adaptive tracing engine 110 and / or means for implementing the adaptive tracing engine 110, as disclosed herein. Fig.17 The description of FIG. 1 relates to the above aspects, such as the adaptive tracking engine 110, which is described in various other figures (e.g., Figures 1-1 to 5-1 and 6 to 8). System 1700 may include interface 1722, in particular for receiving command 201 and / or an indication of command 201 to access data corresponding to address 202 of memory address space. Interface 1722 may include circuits, logic circuits, interface circuits, interface logic, switch circuits, switch logic, routing circuits, routing logic, interconnect circuits, interconnect logic, I / O circuits, analog circuits, digital circuits, logic gates, registers, switches, multiplexers, ALUs, state machines, microprocessors, embedded processors, PIM circuits, logic 220, interface 222, first logic 624, interconnect 105, etc.

[0198] System 1700 may also include a memory 1708, which may include but is not limited to: a memory, a memory device, a memory component, a memory circuit, a memory array, a semiconductor memory, a memory group, a memory chip, a volatile memory, RAM, DRAM, SRAM, SDRAM, DDR memory, non-volatile memory, solid-state memory, memory 208, a first memory 608, a second memory 618, etc.

[0199] In some aspects, the system 1700 includes a first component 1720 for storing access metadata 112 within the memory 1708 in response to the command 201. The access metadata 112 can be stored in an entry 211 of the data set 210, each entry 211 of the data set 210 being configured to cover a corresponding address range of the address range set and including access metadata 112 related to the address 202 within the covered address range. The first component 1720 can include, but is not limited to, a circuit, a logic circuit, a memory interface circuit, a memory interface logic, a switch circuit, a switch logic, a routing circuit, a routing logic, a memory interconnect circuit, a memory interconnect logic, an I / O circuit, an analog circuit, a digital circuit, a logic gate, a register, a switch, a multiplexer, an ALU, a state machine, a microprocessor, an embedded processor, a PIM circuit, a logic 220, an update logic 224, a first logic 624, a search logic 625, a hardware search logic, a hardware search engine, etc.

[0200] In some embodiments, the first component 1720 includes and / or is coupled to a second component 1730 for determining, adjusting, tuning, and / or otherwise managing a set of address ranges covered by the access metadata 112. The second component 1730 can adjust the size of an address range covered by at least one of the entries 211 of the data set 210 based at least in part on one or more metrics 213 indicating prefetch performance within one or more address ranges of the set of address ranges. The second component 1730 can write one or more bits to the memory 1708 to adjust the size of the address range covered by the entry 211 of the data set 211 (e.g., one or more bits can be written within the range metadata 214 of the entry 211). The second component 1730 may include but is not limited to: circuits, logic circuits, memory interface circuits, memory interface logic, switching circuits, switching logic, routing circuits, routing logic, memory interconnect circuits, memory interconnect logic, I / O circuits, analog circuits, digital circuits, logic gates, registers, switches, multiplexers, ALUs, state machines, microprocessors, embedded processors, PIM circuits, logic 220, management logic 226, second logic 626, adaptation logic 726, etc.

[0201] In some aspects, the system 1700 includes a prefetcher 1740 configured to determine an access pattern within an address range covered by a corresponding entry 211 of the data set 210 based at least in part on the access metadata 112 of the corresponding entry 211. The prefetcher 1740 may also be configured to prefetch data based at least in part on the determined access pattern. The prefetcher 1740 may be configured to predict an address 202 of an upcoming command 201 and prefetch data corresponding to the predicted address 202. Prefetcher 1740 may include but is not limited to: circuits, logic circuits, memory interface circuits, memory interface logic, switching circuits, switching logic, routing circuits, routing logic, memory interconnect circuits, memory interconnect logic, I / O circuits, analog circuits, digital circuits, logic gates, registers, switches, multiplexers, ALUs, state machines, microprocessors, embedded processors, PIM circuits, hardware prefetchers, prefetch circuits, prefetch logic, cache logic, stride prefetchers, correlation prefetchers, ML prefetchers, LSTM prefetchers, logic 220, etc.

[0202] The first component 1720 may be configured to provide access metadata 112 for entries 211 of the data set 210 to a consumer 115, such as a prefetcher 1740. Metrics 213 associated with the entries 211 and / or the address ranges covered by the entries 211 may be set, determined, and / or monitored based at least in part on prefetch performance within the address ranges covered by the entries 211. In some embodiments, the second component 1730 sets, determines, and / or monitors metrics 213 indicative of prefetch performance within the address ranges covered by the access metadata 112 maintained within the corresponding entries 211 of the data set 210. The metrics 213 may be based at least in part on feedback 204 from one or more consumers 115 of the access metadata 112, such as the prefetcher 1740, etc.

[0203] The second component 1730 may be configured to adjust the size of the address range covered by the entry 211 of the data set 210 based at least in part on the prefetch performance within the address range. The second component 1730 may increase the size of the address range covered by the first entry 211 of the data set 210 in response to the metric 213 of the first entry 211 exceeding a first threshold. Conversely, the second component 1730 may decrease the size of the address range covered by the first entry 211 of the data set 210 in response to the metric 213 of the first entry 211 being below a second threshold.

[0204] In some embodiments, the second component 1730 is configured to modify the set of address ranges covered by the entry 211 of the data set 210 by, inter alia, manipulating the nodes 311 associated with the entry 211 within the data structure 310. The second component 1730 may be configured to combine the first entry 211 of the data set 210 with the second entry 211 of the data set 210 in response to determining that the metric 213 of the first entry 211 is within a threshold of the metric 213 of the second entry 211. The second component 1730 may be configured to split the selected entry 211 of the data set 210 into two or more entries 211, each of the two or more entries 211 covering an address range that is smaller than the address range covered by the selected entry 211, in response to determining that the metric 213 of the selected entry 211 is below a threshold. Alternatively or additionally, the second component 1730 may invalidate the entry 211 of the data set 210 in response to the metric 213 of the entry 211 failing to satisfy the threshold.

[0205] In some aspects, the data structure 310 includes a plurality of layers 320, each layer 320 may correspond to a respective range size in a plurality of range sizes. The data structure 310 may include a first layer 320-1 corresponding to an entry 211 having a first range size and a second layer 320-2 corresponding to an entry 211 having a second range size greater than the first range size. The first component 1720 (and / or the second component 1730) may be configured to map the address 202 to the entry 211 covering the address 202 through the data structure 310. The second component 1730 may map the address 202 to the entry 211 (and / or the node 311 of the data structure 310) through the plurality of layers 320 of the data structure 310, for example, from the top layer 320-N to the bottom layer 320-1. The data structure 310 may include one or more of a lookup table, a mapping table, a multi-level mapping table, a dictionary tree, a tree, a prefix tree, or a radix tree.

[0206] In some embodiments, entries 211 of a data set 210 are maintained within nodes 311 of a data structure 310. Each node 311 within a first layer 320-1 of the data structure 310 may contain entries 211 of a first range size. Each node 311 in a second layer 320-2 may include: a) entries 211 of a second range size, or b) a reference to a substructure 312 that includes one or more nodes 311 within the first layer 320-1 of the data structure 310. The interface 1722 may be configured to receive an indication of a command 201 associated with an address 202, and in response, the first component 1720 (and / or the second component 1730) may search the second layer 320-2 of the data structure 310 to select a node 311 of the second layer 320-2 having second tag data that matches the address 202. If the selected node 311 contains an entry 211 of the data set 210, the access metadata 122 of the entry 211 may be updated in response to the command 201. Alternatively, if the selected node 311 references a substructure 312 , the substructure 312 may be searched to identify a node 311 of the first level 320 - 1 having first tag data that matches the address 202 .

[0207] The second component 1730 may determine that the specified address 202 is outside the address range covered by the data set 210, and in response, map a first node 311 of the first level 320-1 of the data structure 310 to a first label corresponding to a first portion of the specified address 202, the first node 311 defining a first address range covering the first range size of the specified address. A second node 311 of the second level 320-2 of the data structure 310 may be mapped to a second label corresponding to a second portion of the specified address 202, the second node 311 referencing the first node 311. The second component may associate a specified entry 211 of the data set 210 with the first node 311, and configure the specified entry 211 to cover the first address range defined by the first node 311.

[0208] In some embodiments, the second component 1730 is also configured to combine or merge the entry groups 211 of the data set 210. The second component 1730 may select an entry 211 having a first range size of a metric 213 that satisfies a threshold. The selected entry 211 may be associated with a first node 311 within a first layer 320-1 of the data structure 310, the first node 311 having the same parent node 311 within a second layer 320-2 (second node 311) of the data structure 310. Combining the selected entry 211 may include associating the second node 311 with a specified entry 211 of the data set 210, configuring the specified entry 211 to cover an address range defined by the second node 311, merging the access metadata 112 of the selected entry 211 into the access metadata 112 of the specified entry 211, removing the first node 311 from the data structure 310, and / or invalidating the selected entry 211.

[0209] The second component 1730 may also be configured to identify entries 211 of the data set 210 having a metric 213 below a threshold, the identified entries 211 covering an address range of a second range size and referenced by a specified node 311 within the second layer 320-2 of the data structure 310. In response, the second component 1730 may create a group of nodes 311 within the first layer 320 of the data structure 310, each node 311 of the group covering a respective portion of the address range covered by the specified node 311, replicate access metadata 112 of the identified entries 211 within entries 211 corresponding to respective nodes 311 of the group, and / or configure the specified node 311 to reference the group of nodes 311 created within the first layer 320 of the data structure 310. Alternatively or additionally, the second component 1730 may identify entries 211 of the data set 210 having a metric 213 below a threshold and covering an address range defined by the nodes 311 within the first layer 320 of the data structure 310. In response, the second component 1730 can be configured to invalidate the identified entry 211 and / or remove the corresponding node 311 from the data structure 310.

[0210] In some embodiments, the first component 1720 stores the access metadata 112 (e.g., the data set 210) in the first memory 608, while the second component 1730 maintains the data structure 310 in the second memory 618. The first memory 608 can be different and / or separate from the second memory 618. Alternatively, the access metadata 112 (e.g., the data set 210) and the data structure 310 can be stored in the same memory (such as Figure 2 In some aspects, the data set 210 can be stored with and / or within the data structure 310. For example, the entry 211 of the data set 210 can be maintained in a corresponding node 311 of the data structure 310.

[0211] Fig.18 An example system 1800 for implementing adaptive address tracking is illustrated. System 1800 can include a device 1810 that can include an adaptive tracing engine 110 and / or means for implementing the adaptive tracing engine 110, as disclosed herein. Fig.18 The description of FIG. 1 relates to the above aspects, such as the adaptive tracking engine 110, which is described in various other figures (e.g., Figures 1-1 to 5-1 and 6 to 8). The system 1800 may include a component 1812 configured to represent an address range of a memory address space by a node 311 within a plurality of layers 320 of a data structure 310, each layer 310 of the plurality of layers 320 of the data structure 310 corresponding to an address range size in a plurality of address range sizes. The component 1812 may maintain access metadata 112 within entries 211 of a data set 210, each entry 211 of the data set 210 being associated with a corresponding node 311 of the data structure 310 and covering an address range represented by the associated node 311. In some aspects, the component 1812 is further configured to modify the data structure 310 based at least in part on a metric 213 related to prefetch performance, and to update at least one address range covered by at least one of the entries 211 of the data set 210 in response to modifying the data structure 310. Component 1812 may include but is not limited to: circuit, logic circuit, memory interface circuit, memory interface logic, switch circuit, switch logic, routing circuit, routing logic, memory interconnect circuit, memory interconnect logic, I / O circuit, analog circuit, digital circuit, logic gate, register, switch, multiplexer, ALU, state machine, microprocessor, embedded processor, PIM circuit, logic 220, update logic 224, management logic 226, first logic 624, second logic 626, search logic 625, hardware search logic, hardware search circuit, hardware search engine, adaptation logic 726, memory 208, memory 1708, first memory 608, second memory 618, etc.

[0212] In some aspects, the system 1800 includes an interface 1722 for receiving information about commands 201 associated with a memory address space (and / or indications of commands 201), providing access metadata 112 to one or more consumers 115 (such as a prefetcher 1740), and / or receiving feedback 204 related to prefetch performance within an address range covered by the provided access metadata 112, as disclosed herein. The component 1812 may also be configured to determine a metric 213 related to prefetch performance based at least in part on the feedback 204. In some embodiments, the component 1812 sets, determines, and / or monitors the metric 213 related to prefetch performance within an address range represented by a corresponding node 311 of the data structure 310 (and / or within an address range covered by a corresponding entry 211 of the data set 210).

[0213] In some embodiments, the component 1812 includes and / or is coupled to a first component 1820 for storing, updating, and / or maintaining a data set 210 including access metadata 112 within the first memory 608. The first component 1820 may be configured to store and / or update the access metadata 112 of a corresponding entry 211 of the data set 210 in response to a command 201 (and / or in response to an indication and / or information related to the command 201) related to an address 202 within an address range covered by the corresponding entry 211. The first component 1820 may also be configured to map the address 202 to an entry 211 of the data set 210 (e.g., lookup entry 211 of the data set 210 corresponding to the specified address 202). The first component 1820 may include but is not limited to: circuits, logic circuits, memory interface circuits, memory interface logic, switching circuits, switching logic, routing circuits, routing logic, memory interconnect circuits, memory interconnect logic, I / O circuits, analog circuits, digital circuits, logic gates, registers, switches, multiplexers, ALUs, state machines, microprocessors, embedded processors, PIM circuits, logic 220, update logic 224, first logic 624, search logic 625, hardware search logic, hardware search circuits, hardware search engines, etc.

[0214] In some aspects, the component 1812 includes and / or is coupled to a second component 1830 for maintaining the data structure 310 within the second memory 618, modifying the set of address ranges represented by the nodes 311 of the data structure 310, and / or configuring the entries 211 of the data set 210 stored within the first memory 608 to cover the modified set of address ranges represented by the nodes 311 of the data structure 310. The second component 1830 may be configured to modify the set of address ranges based at least in part on the metrics 213 related to prefetch performance. The second component 1830 may be configured to determine and / or monitor the metrics 213 related to prefetch performance within the address ranges represented by the corresponding nodes 311 of the data structure 310 (and / or covered by the access metadata 112 maintained within the corresponding entries 211 of the data set 210), and modify the set of address ranges based at least in part on the metrics 213 for one or more address ranges. The second component 1830 may include but is not limited to: circuits, logic circuits, memory interface circuits, memory interface logic, switching circuits, switching logic, routing circuits, routing logic, memory interconnect circuits, memory interconnect logic, I / O circuits, analog circuits, digital circuits, logic gates, registers, switches, multiplexers, ALUs, state machines, microprocessors, embedded processors, PIM circuits, logic 220, management logic 226, second logic 626, adaptation logic 726, etc.

[0215] In some aspects, component 1812 (and / or component 1830) is configured to merge selected nodes 311 of data structure 310. Merging selected nodes 311 may include configuring target nodes 311 of data structure 310 to represent an address range that spans the address range represented by each of selected nodes 311, configuring entries 211 of data set 210 to cover the address range represented by target nodes 311, and / or invalidating entries 211 associated with selected nodes 311 within data set 210. In some embodiments, access metadata 112 of entries 211 associated with selected nodes 311 may be combined into access metadata 112 of entries 211 associated with target nodes 311.

[0216] In some examples, component 1812 (and / or component 1830) merges selected nodes 311 within a first level 320-1 of a data structure 310. The node 311 may be selected based at least in part on prefetch performance within an address range covered by the selected node 311. The selected node 311 may be merged into a parent node 311 within a second level 320-2 of the data structure 310, the second level 320-2 being higher than the first level 320-1 in a hierarchy defined by the data structure 310. Merging the selected node 311 may include configuring an entry 211 of a data set 210 associated with the parent node 311 to cover the address range represented by the parent node 311, merging access metadata 112 of the entry 211 associated with the selected node 311 into the configured entry 211, and / or invalidating an entry 211 of a data set 210 associated with a child node 311 of the parent node 311 within the data structure 310.

[0217] The component 1812 (and / or the component 1830) may also be configured to split a node 311 of the data structure 310 into a group of two or more nodes 311. The node 311 may be selected based at least in part on prefetch performance within the address range represented by the node 311. Splitting the selected node 311 may include configuring a group of two or more nodes 311 to represent respective subsets of the address range represented by the selected node, configuring the entry 211 of the data set 210 to cover the address range represented by each node 311 in the group of two or more nodes 311, and / or invalidating the entry 211 associated with the selected node 311 within the data set 210. Furthermore, the access metadata 112 of the entry 211 associated with the selected node 311 may be replicated within the entry 211 associated with each node 311 in the group of two or more nodes 311. In some embodiments, a group of two or more nodes 311 may be created within a substructure 312 disposed within a lower layer 320 of the data structure 310, the lower layer 320 corresponding to an address range size that is smaller than an address range size of an upper layer 320 of the data structure 310 including the selected node 310. The selected node 311 may be designated as the parent node 311 of each node 311 in the group of two or more nodes 311 within the data structure 310. Alternatively, a group of two or more nodes 311 may be created within the same layer 320 of the data structure 310 as the selected node 311, and the parent node 311 of the selected node 311 may be designated as the parent node 311 of each node 311 in the group of two or more nodes 311 within the data structure 310.

[0218] In some aspects, the component 1812 (and / or the second component 1830) is further configured to remove the selected node 311 from the data structure 310 based at least in part on prefetch performance within the address range represented by the selected node 311. Removing the selected node 311 may include invalidating the entry 211 of the data set 310 associated with the selected node 311. In some embodiments, removing the selected node 311 also includes associating the address range represented by the selected node 311 with a no-tracking indicator that is configured to prevent subsequent creation of one or more nodes 311 representing the address range within the data structure 310 (and / or prevent creation of an entry 211 including access metadata 112 that covers the address range within the data set 210).

[0219] In some embodiments, the component 1812 (and / or the second component 1830) is configured to add a node 311 to the first layer 320-1 of the data structure 310 in response to determining that the specified address 202 is not covered by the entry 211 of the data set 210. The node 311 can be configured to represent an address range that includes the specified address 202. Adding the node 311 can also include configuring the first entry 211 of the data set 210 to cover the address range represented by the node 311. Adding the node 311 can also include establishing one or more parent-child relationships between the node 311 and one or more parent nodes 311 within at least one upper layer 320 of the data structure 310. The data structure 310 can be configured to establish parent-child relationships between the nodes 310 within each layer 320 of the data structure 310. The parent-child relationship between the nodes 311 can define and / or correspond to a relationship between the address ranges represented by the nodes 311. In some aspects, each child node 311 of the parent node 311 may be configured to represent a corresponding subset of the address range represented by the parent node 311. Adding the node 311 to the first level 320-1 of the data structure 310 may include establishing a parent-child relationship between the node 311 and the parent node 311 (the designated node 311) within the second level 320-2 of the data structure 310. In the hierarchical structure defined by the data structure 320, the second level 320-2 may be adjacent to the first level 320-1. The second level 320-2 may correspond to an address range size that is larger than the address range size of the first level 320-1. The address range represented by the node 311 may be a subset of the address range represented by the designated node 311.

[0220] In some aspects, component 1812 (and / or second component 1830) is also configured to upgrade node 311 from first layer 320-1 of data structure 310 to second layer 320-1. Node 311 may be selected for upgrading based at least in part on prefetch performance within the address range represented by node 311. Upgrading node 311 may include configuring entry 211 of data set 210 to cover the address range represented by designated node 311 and / or associating entry 211 with designated node 311 (parent node of node 311 within second layer 320-2 of data structure 310). In some embodiments, upgrading node 311 includes modifying first entry 211 to cover the larger address range represented by designated node 311. Alternatively, second entry 211 of data set 210 may be configured to cover the address range represented by designated node 311. Upgrading the node 311 may also include merging the access metadata 112 of the first entry 211 into the access metadata 112 of the second entry 211 and / or invalidating the first entry 211 within the data set 210 .

[0221] in conclusion

[0222] Although embodiments for adaptive address tracking are described in language specific to certain features and / or methods, the subject matter of the appended claims is not necessarily limited to the specific features or methods described. Rather, the specific features and methods are disclosed as example embodiments for adaptive address tracking.

Claims

1. A method for adaptive address tracking, the method comprising: receiving an indication of a command to access data associated with an address in a memory address space; storing access metadata in at least one memory in response to the command, the access metadata being stored in entries of a data set, each entry of the data set covering an address range of the memory address space and including access metadata relating to addresses within the covered address range; writing one or more bits to the at least one memory to adjust a size of an address range covered by at least one of the entries of the data set based at least in part on one or more metrics indicative of prefetch performance within the address range covered by one or more of the entries of the data set; as well as An address is mapped to an entry covering the address by a data structure comprising multiple layers, each layer corresponding to an entry having a corresponding range size among multiple range sizes, including a first layer and a second layer, the first layer corresponding to entries having a first range size, the second layer corresponding to entries having a second range size larger than the first range size, each entry of the data set is associated with a corresponding node of the data structure, the data structure defines the address range covered by the access metadata of the entry within the data set, and each node of the data structure associated with a corresponding entry of the data set contains a reference to the corresponding entry.

2. The method according to claim 1, further comprising: determining an access pattern within an address range covered by the corresponding entry of the data set based at least in part on access metadata of the corresponding entry; as well as Data within the address range covered by the corresponding entry is prefetched based at least in part on the determined access pattern.

3. The method according to claim 1, further comprising: providing access metadata for an entry of the data set to a prefetcher, the prefetcher configured to prefetch data within an address range covered by the entry into a cache memory based at least in part on the provided access metadata; as well as A metric for the entry is set based at least in part on prefetch performance within the address range covered by the entry.

4. The method according to claim 1, further comprising one of the following: In response to a metric of a first entry exceeding a first threshold, increasing a size of an address range covered by the first entry of the data set; or In response to the metric of the first entry being below a second threshold, the size of the address range covered by the first entry is reduced. 5 . The method of claim 1 , further comprising combining the first entry of the data set with the second entry of the data set in response to determining that a metric of the first entry is within a threshold of a metric of the second entry.

6. The method of claim 1 , further comprising splitting the selected entry of the data set into two or more entries in response to determining that a metric of the selected entry is below a threshold, each of the two or more entries covering an address range smaller than an address range covered by the selected entry. 7 . The method of claim 1 , further comprising invalidating the selected entry of the data set in response to a metric of the selected entry failing to satisfy a threshold.

8. The method of claim 1, wherein the data structure comprises one or more of a lookup table, a mapping table, a multi-level mapping table, a dictionary tree, a tree, a prefix tree, or a radix tree.

9. The method according to claim 1, further comprising: determining that a specified address is outside the range of addresses covered by the data set; mapping a first node of the first layer of the data structure to a first label corresponding to a first portion of the specified address, the first node defining a first address range covering the first range size of the specified address; mapping a second node of the second layer of the data structure to a second label corresponding to a second portion of the specified address, the second node referencing the first node; as well as A designated entry of the data set is associated with the first node, the designated entry being configured to cover the first address range.

10. The method according to claim 9, further comprising: In response to a metric of a selected entry satisfying a threshold, forming a combined entry of the data set of the second range size from the selected entries of the first range size, the selected entries including the specified entry; removing the first node from the first level of the data structure; as well as The second node of the second level of the data structure is configured to reference the combined entry.

11. The method according to claim 1, further comprising: identifying entries of the data set having a metric below a threshold, the identified entries covering an address range of the second range size and being referenced by a specified node within the second layer of the data structure; creating a set of nodes within the first layer of the data structure, each node of the set of nodes covering a respective portion of the address range covered by the designated node; replicating access metadata of the identified entry within an entry corresponding to a corresponding node of the node group; as well as The designated node is configured to reference the node group created within the first layer of the data structure.

12. The method according to claim 1, further comprising: identifying entries of the data set having a metric below a threshold, the identified entries covering an address range of the first range size and being referenced by nodes within the first layer of the data structure; invalidate the entry identified by said identifier; as well as The node is removed from the data structure.

13. The method of claim 1, further comprising maintaining a copy of the entry of the data set within a node of the data structure, wherein: each node in the first layer of the data structure comprises a copy of an entry of the first range size; as well as Each node of the second layer of the data structure includes one of the following: a copy of the entries of the second range size, or A reference to a substructure comprising one or more nodes within the first level of the data structure.

14. The method according to claim 13, further comprising: receiving, via the interconnect, an indication of a command associated with the address; searching the second layer of the data structure to select a node of the second layer having second tag data matching the address; In response to determining that the selected node corresponds to a copy of an entry of the data set, updating the copy of the entry of the selected node; as well as In response to determining that the selected node does not correspond to a copy of an entry of the data set, a substructure referenced by the selected node is searched to identify a node of the first layer having first tag data matching the address.

15. An electronic device, comprising: a first memory configured to store access metadata related to an address space, the access metadata being maintained within entries of a data set, each entry of the data set covering a respective address range of a set of address ranges covered by the access metadata; first logic coupled to the first memory, the first logic configured to update the access metadata in response to an indication of a command associated with an address within the set of address ranges covered by the access metadata; as well as A second logic is configured to: maintaining a data structure including a plurality of layers in the second memory to define the set of address ranges covered by the access metadata in the second memory, each layer corresponding to entries having a respective range size from a plurality of range sizes, including a first layer corresponding to entries having a first range size and a second layer corresponding to entries having a second range size greater than the first range size, each entry of the data set being associated with a respective node of the data structure, the data structure defining the respective address range covered by the access metadata of the entry in the data set, each node of the data structure associated with a respective entry of the data set containing a reference to the respective entry, adjusting an address range of the set of address ranges defined by the data structure based at least in part on one or more metrics associated with the access metadata, the one or more metrics indicating prefetch performance within the set of address ranges covered by the access metadata, and One or more bits are written to the first memory to configure entries of the data set to cover the adjusted address range.

16. The electronic device of claim 15, wherein the first memory comprises a first memory array separate from memory resources comprising the second memory.

17. The electronic device of claim 16, wherein the first logic is configured to update the access metadata within an entry of the data set stored in the first memory in response to the indication of a command associated with an address within the set of address ranges covered by the access metadata.

18. The electronic device according to claim 15, further comprising: hardware search logic coupled to the first memory, the hardware search logic configured to map an address of the address space to an entry of the data set covering an address range including the address, Wherein the first logic is further configured to update the access metadata stored within the selected entry of the data set in response to the hardware search logic mapping an address of a command to the selected entry.

19. The electronic device of claim 18, wherein the hardware search logic is integrated with the first memory.

20. The electronic device of claim 15, further comprising an interface configured to provide access metadata stored within an entry of the data set to a consumer, the consumer configured to implement one or more pre-fetch operations within an address range covered by the entry based at least in part on the provided access metadata, The consumer comprises one or more of a cache, a cache memory, a cache control logic, a cache prefetch logic, a prefetch logic, or a prefetcher.

21. The electronic device of claim 20, wherein the first logic is further configured to determine a metric indicative of prefetch performance within the address range covered by the entry of the data set based at least in part on feedback from the consumer.

22. The electronic device of claim 15, wherein the second logic is further configured to: modifying the set of address ranges defined by the data structure maintained within the second memory based at least in part on the one or more metrics; and Entries of the data set stored in the first memory are configured so that the access metadata covers a modified set of address ranges defined by the data structure.

23. The electronic device of claim 15, wherein the second logic is further configured to: monitoring the one or more metrics associated with the access metadata; and The set of address ranges covered by the access metadata is adjusted based at least in part on the one or more metrics.

24. The electronic device of claim 23, wherein: The second logic is configured to monitor: a first metric when the access metadata is configured to cover a first set of address ranges, and a second metric after adjusting the set of address ranges covered by the access metadata such that the access metadata covers a second set of address ranges different from the first set of address ranges; as well as Based at least in part on the first metric and the second metric, the second logic is further configured to: adjusting the set of address ranges covered by the access metadata so that the access metadata covers the first set of address ranges, continue to operate with said access metadata covering said second set of address ranges, or The set of address ranges covered by the access metadata is adjusted so that the access metadata covers a third set of address ranges that is different from the first set of address ranges and the second set of address ranges.

25. The electronic device of claim 15, wherein the second logic is further configured to: selecting the first entry of the data set based at least in part on at least one metric associated with the first entry, the first entry configured to cover an address range of the set of address ranges defined by the data structure; modifying the data structure maintained in the second memory to adjust the address range covered by the first entry; as well as One or more entries of the data set stored in the first memory are configured to cover the adjusted address range.

26. The electronic device of claim 15, wherein the second logic is further configured to: splitting a first node of the data structure into a set of one or more nodes, each node in the set of one or more nodes defining a respective subset of a first address range defined by the first node and being referenced within the data structure as a child of the first node; configuring entries of the data set stored in the first memory to cover respective address ranges defined by respective nodes in the set of one or more nodes of the data structure; as well as Access metadata of entries of the data set associated with the first node are merged into access metadata of configuration entries.

27. The electronic device of claim 15, wherein the second logic is further configured to: selecting the first node of the data structure based at least in part on at least one metric indicative of prefetch performance within a first address range defined by the first node; identifying a parent node of the first node within the data structure, the parent node comprising a second node of the data structure, the second node defining a second address range that is greater than and includes the first address range defined by the first node; configuring entries of the data set associated with the second node to cover the second address range defined by the second node; identifying a child node of the second node within the data structure, the child node defining an address range contained within the second address range; merging access metadata of an entry associated with the identified child node into access metadata of the configured entry associated with the second node; removing the identified child node from the data structure; as well as The entry associated with the identified child node within the data set is invalidated.

28. A system for adaptive address tracking, the system comprising: means for receiving information relating to a command to access data associated with an address in a memory address space; means for storing, in response to the command, in at least one memory, access metadata within entries of a data set, each entry of the data set being configured to cover a respective address range of the set of address ranges and including access metadata relating to addresses within the covered address range; means for adjusting a size of an address range covered by at least one entry of the data set based at least in part on one or more metrics indicative of prefetch performance within one or more address ranges of the set of address ranges; as well as A means for maintaining a data structure within the at least one memory, the data structure being configured to define the set of address ranges covered by entries of the data set, the data structure comprising a plurality of layers, each layer corresponding to a respective range size of a plurality of range sizes, including a first layer and a second layer, the first layer corresponding to entries having a first address range size, the second layer corresponding to entries having a second address range size greater than the first address range size, each entry of the data set being associated with a respective node of the data structure, the data structure defining the address range covered by the access metadata of the entries within the data set, each node of the data structure associated with a respective entry of the data set containing a reference to the respective entry.

29. The system of claim 28, further comprising means for writing one or more bits to the at least one memory to adjust the size of the address range covered by the at least one entry of the data set.

30. The system of claim 28, further comprising: means for storing said data set including said access metadata in a first memory; means for maintaining said data structure in a second memory different from said first memory; means for modifying the set of address ranges defined by the data structure based at least in part on the one or more metrics; as well as Means for configuring entries of the data set stored in the first memory to cover a modified set of address ranges defined by the data structure maintained in the second memory.

Citation Information

Patent Citations

  • Pre-fetching in a storage system that maintains a mapping tree

    US20120278560A1

  • Adaptive value range profiling for enhanced system performance

    US20170212837A1