AI-enabled management of access to storage media
Predict host system behavior through the artificial intelligence engine and media access manager, optimize the internal and external I/O operations of the storage drive, solve the conflict problem between internal operations and data access requests in traditional storage drives, and improve the access of storage media efficiency and performance.
Patent Information
- Application Number
- CN201980072116.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-10-25
- Filing Date
- 2019-10-26
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2039-10-26
AI Technical Summary
Traditional storage drives are prone to conflicts between internal operations and data access requests, resulting in performance degradation and reduced data throughput.
Adopts an artificial intelligence engine and media access manager to schedule storage media access by predicting host system behavior, optimizing internal and external I/O operations, avoiding conflicts and improving storage drive performance.
Through intelligent prediction and scheduling, the performance of storage drives is optimized, conflicts between internal operations and data access requests are avoided, and the access efficiency and performance of storage media are improved.
Smart Images

Figure CN112997138B_ABST
Abstract
Description
Background Art
[0001] Many computing and electronic devices include non-volatile memory for software, applications or data of storage devices. In addition, most users utilize their devices to transmit data or access services, such as multimedia content or social media applications, through data networks from various locations or on the move. Along with the increasing demand of users for data and services, storage providers have expanded the capacity and performance of storage drivers to support data access associated with these activities of users and other data storage clients. Usually, the storage driver of the device includes a storage medium, and the data of the device is written to the storage medium and read from the storage medium. For this reason, the device can send a data access request to the storage driver, and the storage driver then writes data to the storage medium or reads data from the storage medium as specified by each request. Therefore, the storage driver performance overall depends on a rate, and the storage driver can complete the data access request of the device or storage client at this rate.
[0002] The storage medium of the storage drive is not accessed solely based on data access requests received from the device. The storage drive itself may implement various internal operations related to the health or maintenance of the storage medium. In traditional storage drives, access to the storage medium associated with these internal drive operations is not planned and may conflict with access to the storage medium used to service the data request of the device. Therefore, when the internal operation of the storage drive causes a conflicting access, and the conflicting access interferes with the data write operation or data read operation of the device, the overall storage drive performance may be degraded as the data request latency increases and the data throughput of the storage drive decreases. Summary of the invention
[0003] This summary is provided to introduce the subject matter that is further described in the detailed description and drawings. Therefore, this summary should not be considered to describe essential features, nor should it be used to limit the scope of the claimed subject matter.
[0004] In some aspects, a media access manager of a storage media system implements a method that receives host input / output (I / O) for access to storage media of the storage system from a host system and via a host interface of the storage system. The media access manager provides information describing the host I / O received from the host system to an artificial intelligence engine associated with the storage system. The media access manager receives a prediction of host system behavior from the artificial intelligence engine, the prediction of host system behavior being related to subsequent access to the storage media by the host system. Based on the prediction of the host system behavior, the media access manager schedules the host I / O for access to the storage media of the storage system.
[0005] In other aspects, a device includes: a host interface configured to communicate with a host system; a storage medium for storing data of the host system; and a media interface configured to support access to the storage medium. The device also includes: an artificial intelligence engine; and a media access manager configured to receive host input / output (I / O) for access to the storage medium of the device from the host system via the host interface. The media access manager provides information describing the host I / O received from the host system to the artificial intelligence engine. The media access manager receives a prediction of host system behavior from the artificial intelligence engine, and the prediction of host system behavior is related to subsequent access to the storage medium by the host system. Based at least on the prediction of host system behavior, the media access manager schedules host I / O for access to the storage medium of the storage system.
[0006] In yet other aspects, a system on chip (SoC) is described, the SoC comprising: a media interface for accessing a storage medium of a storage system; a host interface for communicating with a host system; and an artificial intelligence engine. The SoC also comprises: a hardware-based processor; and a memory storing processor-executable instructions, the processor-executable instructions implementing a media access manager in response to being executed by the hardware-based processor to: receive host input / output (I / O) for access to a storage medium of the storage system from the host system via the host interface. The media access manager provides information describing the host I / O received from the host system to the artificial intelligence engine. The media access manager receives a prediction of host system behavior from the artificial intelligence engine, the prediction of host system behavior being related to subsequent access to the storage medium by the host system. Based at least on the prediction of host system behavior, the media access manager schedules host I / O for access to the storage medium of the storage system.
[0007] The details of one or more implementations are set forth in the accompanying drawings and the description below. Other features and advantages will be apparent from the description and drawings, and from the claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Details of one or more implementations of artificial intelligence-enabled (AI-enabled) management of storage media access are set forth in the accompanying drawings and the following detailed description. In the drawings, the left-most digit of a reference number identifies the drawing in which the reference number first appears. Like reference numbers are used in different instances in the specification and drawings to represent like elements:
[0009] Figure 1 An example operating environment is shown for a device having an AI-enabled storage media controller implemented therein in accordance with one or more aspects of the present disclosure.
[0010] Figure 2 Shows Figure 1An example configuration of a storage controller's media access manager and AI engine is shown.
[0011] Figure 3 An example configuration of various hardware and firmware components for implementing an AI engine of a storage media controller is shown.
[0012] Figure 4 An example configuration of an AI engine and persistent storage for implementing multiple AI models is shown.
[0013] Figure 5 Example configurations of cache memory and storage memory are shown, through which aspects of AI-enabled management of access to storage media may be implemented.
[0014] Figure 6 An example of predictive garbage collection implemented using an AI engine of a storage system controller is shown.
[0015] Figure 7 An example of internal I / O operations scheduled by an AI engine according to one or more aspects of the present disclosure is shown.
[0016] Figure 8 Example host I / O event types useful for an AI model predicting host system behavior according to one or more aspects of the present disclosure are shown.
[0017] Fig. 9 An example implementation of an AI model configured to predict aspects of host I / O behavior is shown.
[0018] Fig.10 Examples of predicted host behaviors including various I / O or idle times are shown.
[0019] Fig.11 An example implementation of an AI model that supports multi-stage predictions of host behavior is shown.
[0020] Fig.12 An example beam search that may be used to determine paths that predict host behavior based on event probabilities is shown.
[0021] Fig.13 An example timeline of operations for online retraining or online refinement of an AI model is shown.
[0022] Fig.14 Depicted are example methods for AI-enabled management of storage media access in accordance with one or more aspects of the present disclosure.
[0023] Fig.15 An example method of delaying internal operations of a storage system based on predictions of host system behavior is depicted.
[0024] Fig.16 An example method for preempting internal operations of a storage system based on predictions of host system behavior is depicted.
[0025] Fig.17 Depicted are example methods for changing thresholds for device-level management based on predictions of host system behavior.
[0026] Fig.18 Depicted are example methods for running inference using multiple instances of an AI model to enable online retraining or refinement.
[0027] Fig.19 An example system-on-chip (SoC) environment is shown in which aspects of AI-enabled management of storage media access may be implemented.
[0028] Fig. 20 An example storage system controller is shown in which an AI engine according to one or more aspects of the present disclosure may be implemented. DETAILED DESCRIPTION
[0029] Conventional techniques for managing access to storage media often result in conflicting or inefficient storage media access, which can degrade storage drive performance. Typically, storage drive firmware is used to manage the data path of the storage drive in an end-to-end manner, such as by converting data commands received from the device, which request access to data on the storage medium. During operation, if storage media health or storage media maintenance issues arise, the firmware of the storage drive typically schedules storage media access to facilitate these internal tasks relative to storage media access associated with the data commands of the device. Data commands of devices that utilize storage media resources can also further affect any ongoing health or maintenance issues of the storage media. In other words, conventional techniques often schedule access to storage media based on the current state of storage media health or storage media maintenance, which is a short-term or narrow perspective on storage drive demand and performance. Therefore, conventional techniques for managing access often result in conflicting or inefficient access to storage media, which can degrade or reduce the performance of the storage drive.
[0030] The present disclosure describes apparatus and techniques for AI-enabled management of storage media access. Compared to traditional storage media access techniques, the described apparatus and techniques can implement AI-enabled management of storage media access for efficient and coordinated scheduling of host input / output (I / O) or internal I / O for optimized storage drive performance. In some aspects, the firmware of a storage controller (media access manager) can use an artificial intelligence (AI) model for prediction or prophecy of activities useful for managing storage media access by firmware and improving storage drive performance, the AI model running on native or dedicated AI hardware and / or firmware. For example, an AI engine using an AI model can predict relevant external events (e.g., host system activity) for the internal firmware / software of the storage controller. An AI-enabled storage controller can determine when to perform tasks related to the internal storage controller based on predicted external events, rather than just the current device state or the history of past events.
[0031] In general, aspects of AI-enabled management of storage media access can enable intelligent predictive and adaptive scheduling of host I / O and / or internal I / O by predicting host system behavior of the storage system (e.g., storage drives). In some cases, this can enable optimization of internal I / O scheduling through AI-assisted prediction of events. In other cases, the media access manager can preempt, suspend, or ignore thresholds (e.g., garbage collection or thermal limits) to allow host I / O to be performed based on upcoming idle time or expected reductions in host system activity. The media access manager and AI engine can also optimize various flash translation layer (FTL) management operations (e.g., caching, migration, or garbage collection) as well as device-level tasks, including thermal management or power management for storage media devices.
[0032] In various aspects, the AI engine and AI models of the storage controller can predict specific idle-related events of the host system (e.g., time to next idle, next idle duration), as well as host system I / O behavior (e.g., write density) or other parameters of storage media access. Typically, the AI engine of the storage controller can implement or manage multiple AI models, which can be loaded into AI hardware or AI firmware based on various internal tasks of the storage system that will benefit from AI assistance. In some cases, these multiple or different AI models run or execute concurrently on native hardware or AI hardware to provide simultaneous AI assistance for multiple internal tasks. Alternatively or additionally, the AI engine can perform retraining or refinement of the AI model online (at runtime), thereby supporting dynamic adaptation to user-specific or host system-specific I / O workloads.
[0033] In various aspects of AI-enabled management of storage media access, a media access manager of a storage media system receives host I / O for access to storage media of the storage media system from a host system. The media access manager provides information describing the host I / O received from the host system to an artificial intelligence engine. The media access manager then receives a prediction of host system behavior from the artificial intelligence engine, the prediction of host system behavior being relevant to subsequent access to the storage media. The media access manager then schedules host I / O for access to storage media of the storage system based on the prediction of host system behavior. In doing so, the host I / O can be scheduled to optimize host system access to the storage media, such as to avoid conflicts with internal I / O of the storage system, or to preempt various thresholds or parameters based on upcoming idle time.
[0034] The following discussion describes an operating environment, technologies that may be employed in the operating environment, and a system on a chip (SoC) in which components of the operating environment may be implemented.In the context of the present disclosure, reference is made to an operating environment by way of example only.
[0035] Operating Environment
[0036] Figure 1 An example operating environment 100 is shown, with a host system 102 capable of storing or accessing various forms of data or information. Examples of host systems 102 may include laptop computers 104, desktop computers 106, and servers 108, any of which may be configured as a user device, a computing device, or part of a storage network or cloud storage. Additional examples (not shown) of host systems 102 may include tablet computers, set-top boxes, data storage appliances, wearable smart devices, televisions, content streaming devices, high-definition multimedia interface (HDMI) media sticks, smart appliances, home automation controllers, smart thermostats, Internet of Things (IoT) devices, mobile Internet devices (MIDs), network attached storage (NAS) drives, aggregate storage systems, game consoles, vehicle entertainment devices, vehicle computing systems, vehicle control modules (e.g., engine or transmission control modules), and the like. In general, host systems 102 may transmit or store data for any appropriate purpose, such as to support the functionality of a particular type of device, provide a user interface, support network access, implement game applications, playback media, provide navigation, edit content, provide data storage, and the like.
[0037] The host system 102 includes a processor 110 and a computer readable medium 112. The processor 110 may be implemented as any suitable type or number of processors (single core or multi-core) for executing instructions or commands of an operating system or other application of the host system 102. The computer readable medium 112 (CRM 112) includes a memory (not shown) and a storage system 114 of the host system 102. The memory of the host system 102 may include any suitable type or combination of volatile memory or non-volatile memory. For example, the volatile memory of the host system 102 may include various types of random access memory (RAM), dynamic RAM (DRAM), static RAM (SRAM), etc. The non-volatile memory may include a read-only memory (ROM), an electrically erasable programmable ROM (EEPROM), or a flash memory (e.g., NAND flash). Individually or in combination, these memories may store data associated with the operating system, users, and / or applications of the host system 102.
[0038] The storage system 114 of the host system 102 may be configured as any suitable type of data storage system, such as a storage device, a storage drive, a storage array, a storage volume, etc. Although described with reference to the host system 102, the storage system 114 may also be implemented separately as a standalone device or as part of a larger storage collection, such as a network attached storage device, an external storage drive, a data center, a server farm, or a virtualized storage system (e.g., for cloud-based storage or services). Examples of the storage system 114 include a non-volatile memory express (NVMe) solid-state drive 116, a peripheral component interconnect express (PCIe) solid-state drive 118, a solid-state drive 120 (SSD 120), and a storage array 122, which may be implemented using any combination of storage devices or storage drives.
[0039] The storage system 114 includes a storage medium 124 and a storage medium controller 126 (storage controller 126) for managing various operations or functions of the storage system 114. The storage medium 124 may include or be formed of a non-volatile storage device having data 128 or information of the host system 102 stored thereon. The storage medium 124 may be implemented using any type of solid-state storage medium or combination thereof, such as flash memory, NAND flash memory, RAM, DRAM (e.g., for cache), SRAM, etc. In some cases, the data 128 stored to the storage medium 124 is organized into files of data (e.g., content) or data objects, which are stored to the storage system 114 and accessed by the host system 102. The file type, size, or format of the data 128 may vary depending on the corresponding source, use, or application associated with the file. For example, the data 128 stored to the storage system 114 may include audio files, video files, text files, image files, multimedia files, spreadsheets, and the like. Although described with reference to solid-state memory, aspects of the AI-enabled management of storage media access may also be implemented utilizing magnetic-based or optical-based media types.
[0040] In general, the storage controller 126 manages the operation of the storage system 114 and enables the host system 102 to access the storage medium 124 for data storage. The storage controller 126 may be implemented by any suitable combination of hardware, firmware, or software to provide various functionality of the storage system 114. The storage controller 126 may also manage or oversee internal tasks or operations associated with the storage medium 124, such as data caching, data migration, garbage collection, thermal management (e.g., throttling), power management, etc. In this way, the storage controller 126 may receive host I / O from the host system 102 for data access and queue (or generate) internal I / O associated with internal operations of the storage medium 124. In general, the storage controller 126 may perform media I / O for access to the storage medium 124, which corresponds to scheduled host I / O for data access, and / or internal I / O for internal operations or tasks associated with the storage medium 124.
[0041] In this example, the storage controller 126 also includes a storage media access manager 130 (media access manager 130), an artificial intelligence engine 132 (AI engine 132), and an artificial intelligence model 134 (AI model 134). In other configurations, the storage controller 126 may have access to the AI engine 132 or the AI model 134, which is implemented separately from the storage controller 126. In various aspects, the media access manager 130 uses the AI engine 132 and the AI model 134 to obtain predictions or predictions of activities (e.g., host activity or inactivity) that are useful for managing storage media access, performing internal tasks, and improving storage drive performance. In general, the media access manager 130 can implement intelligent predictive and adaptive scheduling (e.g., advance or delay) of host I / O and / or internal I / O through predicted host system behavior of the storage system (e.g., storage drive). In some cases, this can support optimized internal I / O scheduling through AI-assisted prediction of events.
[0042] For example, the media access manager 130 may provide an indication of host I / O for storage media access to the AI engine 132. The AI engine 132 may use the indication of host I / O activity as an input to the AI model 134 to predict or predict subsequent host system behavior. Based on this prediction of host system behavior, the media access manager may schedule host I / O and / or internal I / O of the storage system 114, as well as adapt to user-specific workloads to improve the performance of the storage system. The AI model 134 may include any suitable type of model, such as an AI model based on a recurrent neural network (RNN) architecture. AI models with RNN-type architectures may be configured with a memory for processing input history, making these models well suited for predicting host system behavior or future activity. The AI model 134 may predict host behavior by any suitable parameters, such as idle-related parameters (e.g., time to next idle or next idle duration) or write density parameters (e.g., the amount of data that the host system expects to write in a given duration). How the media access manager 130, the AI engine 132, and the AI model 134 are implemented and used will vary and are described throughout the disclosure.
[0043] The host system 102 may also include an I / O port 136, a graphics processing unit 138 (GPU 138), and a data interface 140. In general, the I / O port 136 allows the host system 102 to interact with other devices, peripherals, or users. For example, the I / O port 136 may include or be coupled to a universal serial bus, a human interface device, audio input, audio output, etc. The GPU 138 processes and draws graphics-related data for the host system 102, such as user interface elements of an operating system, applications, etc. In some cases, the GPU 138 accesses a portion of local memory to draw graphics, or includes dedicated memory (e.g., video RAM) for drawing graphics for the host system 102.
[0044] The data interface 140 of the host system 102 provides connectivity to one or more networks and other devices connected to these networks. The data interface 140 may include a wired interface, such as an Ethernet or fiber optic interface, for communicating over a local area network, an intranet, or the Internet. Alternatively or additionally, the data interface 140 may include a wireless interface that facilitates communication over a wireless network, such as a wireless LAN, a wide area wireless network (e.g., a cellular network), and / or a wireless personal area network (WPAN). In accordance with one or more aspects of the AI-enabled management of storage media access, any data transmitted through the I / O port 136 or the data interface 140 can be written to or read from the storage system 114 of the host system 102.
[0045] Figure 2 An example configuration of a media access manager 130 and an AI engine 132 is generally illustrated at 200, which is implemented according to one or more aspects of AI-enabled management of storage media access. In this example, the media access manager 130 and the AI engine 132 are shown in the context of a storage system 114 implemented as a solid-state storage drive (SSD) 202. The SSD 202 can be coupled to any suitable host system 102 and is embedded with a storage medium 124, which includes a plurality of NAND flash memory devices 204-1 to 204-n, where n is any suitable integer. In some cases, the NAND flash memory device 204 includes a plurality of flash memory channels of a memory device, die, or chip, which can be accessible or managed at the channel level (device group) or the device level (individual device). Although shown as components of the SSD 202, the media access manager 130 and / or the AI engine 132 can be implemented separately from the storage system 114 or external to the storage system 114. In some cases, the media access manager 130 or the AI engine 132 is implemented as part of a storage media accelerator or a converged storage controller that is coupled between the host system 102 and the one or more storage systems 114 .
[0046] Typically, the operation of the SSD 202 is supported or managed by an instance of the storage controller 126, which in this example includes a host interface 206 to support communication with the host system 102, and a media interface 208 to support access to the storage medium 124. The host interface 206 can be configured to implement any suitable type of storage interface or protocol, such as Serial Advanced Technology Attachment (SATA), Universal Serial Bus (USB), PCIe, Advanced Host Controller Interface (AHCI), NVMe, NVM-over Fabric (NVM-OF), NVM Host Controller Interface Specification (NVMHCIS), Small Computer System Interface (SCSI), Serial Attached SCSI (SAS), Secure Digital I / O (SDIO), Fibre Channel, any combination thereof (e.g., M.2 or Next Generation Form Factor (NGFF) combination interface), etc. Alternatively or additionally, the media interface 208 can implement any suitable type of storage media interface, such as a flash memory interface, a flash bus channel interface, a NAND channel interface, a physical page addressing (PPA) interface, etc.
[0047] In various aspects, the components of the SSD 202 or storage controller 126 provide a data path between the host interface 206 to the host system 102, and the media interface 208 to the storage medium 124. In this example, the storage controller 126 includes a processor core 210 for executing a kernel, firmware, or driver to implement the functions of the storage controller 126. In some cases, the processor core 210 can also execute processor-executable instructions to implement the media access manager 130 or AI engine 132 of the storage controller 126. Alternatively or additionally, the media access manager 130 or AI engine 132 can be executed according to or run on AI-specific hardware or processor cores.
[0048] like Figure 2 As shown, the structure 212 of the storage controller 126 may include a control and data bus that operably couples and supports communication between components of the storage controller 126. For example, the media access manager 130 or the AI engine 132 may communicate with the host interface 206, the processor core 210 (e.g., firmware), or the media interface 208 to exchange data, information, or I / O within the storage controller 126. The static random access memory 214 of the storage controller 126 may store processor-executable instructions or code for the firmware or drivers of the storage controller, which may be executed by the processor core 210. The storage controller 126 may also be a dynamic random access memory (DRAM) controller 216 and associated DRAM 218 for storing or caching various data as the storage controller 126 moves data between the host system 102, the storage medium 124, or other components of the storage controller.
[0049] Figure 3 An example configuration of various hardware and firmware components for implementing the AI engine of the storage media controller is illustrated at 300. In this example, the components of the storage controller 126 are shown as abstract entities that can be implemented in the firmware 302 or hardware 304 of the storage controller. This is just one example implementation of the various components, any of which can be implemented separately from or in combination with other components described herein. Alternatively or additionally, reference may be made to Figure 2 or Figure 3 Any component described may be implemented as an intellectual property block (IP block) or IP core, which is configured as a logical unit, unit and / or integrated circuit (IC) that provides the various described features of the component. For example, a component of the storage controller 126 (e.g., the AI engine 132) may be implemented as an IP core or IP block including a combination of hardware, firmware, or software to provide the corresponding functionality or implement the corresponding operation of the component.
[0050] In this example, the hardware 304 of the storage controller 126 includes a NAND flash memory device 204, a host interface 206, a media interface 208, and a processor 210, which may be described with reference to FIG. Figure 2 In some aspects, the AI engine 132 is implemented as part of an AI block 306 (e.g., an AI IP block), which includes a processor core 308 on which the AI engine 132 executes or runs. The AI engine 132 may also run one or more of the AI models 134 and provide an AI engine driver 310 through which the AI engine 132 interacts with the firmware 302 of the storage controller 126. Alternatively or additionally, the AI engine 132 (e.g., a lightweight AI engine 132 and models 134) may execute on the processor core 210 of the storage controller 126 to provide the AI engine driver 310.
[0051] Typically, the firmware 302 of the storage controller 126 assists the hardware 304 in managing the data path between the host system 102 and the storage medium 124. In other words, the firmware 302 can convert commands or requests for data received from the host system 102 to support access to the storage medium 124. Figure 3 As shown, the firmware 302 includes a host interface driver 312 for implementing a host command processor 314, and a media interface driver 316 for implementing a media command manager 318. Figure 3As shown, a host input / output command 320 (host I / O 320) is received by the host command processor 314 and sent to an I / O scheduler 322 of a flash translation layer 324 (FTL 324) of the storage controller 126. The FTL 324 and / or the I / O scheduler 322 may process and schedule the host I / O 320, which may then be executed as a corresponding media input / output command 326 (media I / O 326) for storage media access via the media command manager 318.
[0052] In various aspects, the FTL 324 manages command processing (e.g., host I / O 320 conversion and scheduling) to facilitate the movement of host system data within the storage system 114 and / or through the storage controller 126, such as to the storage media 124. The FTL 324 can also monitor the resources or health of the storage media 124 or storage media devices. For example, the FTL 324 can monitor the amount of free space, capacity, free blocks, bad blocks, write / program cycle counts, device / block wear patterns, power consumption, temperature, etc. of the storage media 124 or cache DRAM 218. In some cases, the FTL 324 includes internal FTL tasks 328 (internal tasks 328) for managing storage media health and resources. These internal tasks 328 of the FTL 324 or storage controller 126 can include tasks or operations to access the storage media, such as data migration, garbage collection, wear leveling, etc. To implement internal tasks 328 , FTL 324 may generate internal I / O for storage media access, which may then be executed as corresponding media I / O 326 for storage media access through media command manager 318 .
[0053] In this example, the firmware 302 of the storage controller 126 also includes a device-level management 330 component to manage device-level aspects of the storage medium 124. For example, the device-level management 330 component can monitor or manage parameters of individual items of the following items: NAND flash memory devices 204, NAND channels, memory chips, memory dies, physical memory blocks, etc. In some cases, the device-level management 330 component monitors temperature conditions (e.g., die or device temperature) of the storage medium 124 and implements thermal control (e.g., throttling) based on predefined or adaptive temperature thresholds. For example, the device-level management 330 component can delay or limit access to a particular NAND device or NAND channel in response to the temperature of the NAND device or NAND channel exceeding a temperature threshold. Alternatively or additionally, the device-level management 330 component can implement similar forms of power management (e.g., based on consumption) or other device-level monitoring and control of the storage medium 124.
[0054] In terms of AI-enabled management of storage media access, the media access manager 130 may interact with the AI engine 132 to optimize the processing and scheduling of various I / Os for access to the storage media 124. In some aspects, the media access manager 130 provides or forwards the host I / O 320 as input 332 to the AI model 134 of the AI engine 132. The input 332 may include any suitable type of data or information describing the host I / O 320 (host system activity), such as an event type of the host I / O, an event duration of the host I / O, an event size of data associated with the host I / O, etc. Based on the input 332, the AI model 134 generates or derives a prediction of the host system behavior as output 334. The output 334 or prediction of the host may include any suitable type of data or information, such as an indication of the duration until the host system becomes idle, the duration that the host system will remain idle, parameters related to the next host I / O issued by the host system, etc. Output 334 may be received by media access manager 130 directly, or through another entity such as I / O scheduler 322 of storage controller 126 or FTL 324. Using predictions of host behavior, such as predicted host events (e.g., write density or idle time) or predicted host behavior information, media access manager 130 may alter or modify how host I / O 320 and internal I / O are processed, scheduled, or executed as media I / O for storage media access.
[0055] For example, in the context of internal tasks 328, the media access manager 130 may provide information describing the host I / O 320 to the AI model 134 and receive from the AI model 134 a prediction of host system behavior that is relevant to subsequent access to the storage medium 124. The media access manager 130 and the I / O scheduler 322 may then use the indication of storage medium health and resources, and the prediction of host system behavior, to process and schedule the host I / O 320 (e.g., current and subsequently received host I / O) and internal I / O for the internal tasks 328 to optimize access to the storage medium 124. By doing so, I / O scheduling may be improved by avoiding or reducing conflicts between host I / O and internal I / O that compete for access to the same storage medium resources.
[0056] As another example, consider AI-enabled management of storage media access in the context of device-level management operations, such as thermal-based throttling of storage media access. In addition to using the current I / O workload or memory device state to determine the degree or amount of thermal throttling, the media access manager 130 may also use predictions of host system behavior provided by the AI model 134 of the AI engine 132. In some cases, the media access manager 130 may change or preempt (e.g., temporarily suspend) the thermal threshold of the memory device based on a predicted upcoming idle time during which the temperature of the memory device will cool during inactivity. Alternatively or additionally, the media access manager 130 may reduce the degree to which storage media access is throttled based on the prediction of host system behavior. Thus, having the ability to use such predictions of host system behavior may result in less throttling of storage media access, which in turn may improve host I / O performance. These are just a few examples of AI-enabled management of storage media access, and other examples are implemented and described throughout this disclosure.
[0057] Figure 4 An example configuration of an AI engine and persistent storage for implementing multiple AI models is shown at 400. In some aspects, the AI engine 132 may include, or may have access to, multiple AI models 134 that are configured or trained to assist or optimize different corresponding operations or tasks of the storage media controller. The AI models 134 may be stored in a persistent storage medium of the storage system, such as the storage medium 124 or an internal memory (not shown) of the storage controller 126. In this example, the AI models 134 are stored on the NAND flash memory device 204, such as by Figure 2 202 implemented by the SSD 202. Here, the AI model 134 includes a plurality of AI models, which are shown as AI model A 134-1 to AI model N 134-n, where n is any suitable integer. Each of the AI models 134 can be configured or trained for a corresponding internal task 328 of the storage controller or a device-level operation, such as data migration, garbage collection, wear leveling, thermal control, etc. Alternatively or additionally, the AI model 134 can be configured or trained to assist the FTL 324 storage controller 126 with a plurality of internal tasks 328.
[0058] As shown at 402, the media access manager 130 or the AI engine 132 may load a plurality of AI models 134 to assist and / or optimize the internal tasks 328 of the storage system 114. In some cases, the plurality of AI models 134 are loaded in response to the storage system 114 booting up or powering up. In other cases, one or more of the AI models 134 may be loaded on demand or as requested by the AI engine 132. In general, the AI models 134 may be loaded to assist or support the optimization of the corresponding internal tasks 328 of the storage system 114 or the storage controller 126. In this example, it is assumed that the media access manager 130 or the FTL 324 is running a first internal task A 328-1 (e.g., data migration) and a second internal task B 328-2 (e.g., garbage collection). Here, it is assumed that the AI engine 132 loads both the AI model A 134-1 and the AI model B 134-2 via the media interface 208 when the storage system 114 boots up.
[0059] In the context of this example, AI Model A 134-1 and AI Model B 134-2 may run sequentially or concurrently to assist the storage controller's internal Task A and / or internal Task B. Figure 4 As shown, the AI engine driver 310 can provide a first set of inputs 332-1 to the AI model A 134-1 and a second set of inputs 332-2 to the AI model B 134-2. The first set of inputs 332-1 can be the same, similar, or different from the second set of inputs 332-2, such as being configured differently for each internal task 328. To assist the internal tasks, the AI model A provides a first set of outputs 334-1 to the I / O scheduler 322 or the media access manager 130, and the AI model B 134-2 provides a second set of outputs 334-2 to the I / O scheduler 322 or the media access manager 130. The first set of outputs 334-1 can be the same, similar, or different from the second set of outputs 334-2, such as being configured differently for each internal task 328.
[0060] Figure 5An example configuration of cache memory and storage device memory is shown at 500, and various aspects of AI-enabled management of storage media access can be implemented through cache memory and storage device memory. In this example, the cache memory is shown as a single-level cell (SLC) flash memory cache 502, although other flash memory or memory types can be used to cache data before writing to multi-level cell (MLC) flash memory 504. MLC storage 504 can also be implemented using other flash memory or memory types, such as triple-level cell (TLC) flash memory, quad-level cell flash memory (QLC), XLC flash memory, NOR flash memory, etc. Typically, the storage system 114 can be implemented using an SLC cache 502 to improve burst write performance or reduce wear on the MLC storage medium 504. However, SLC flash memory or other types of cache memory may be more expensive than the storage medium, so that the SLC cache 502 is implemented using less capacity than the main storage area of the MLC flash memory.
[0061] like Figure 5 As shown, the host I / O 320 of the host system 102 can cause data to be written to the free space 506 of the SLC cache 502 (for the sake of clarity, the transition from host I / O to media I / O is omitted here). The data of the host I / O 320 can fill or occupy non-contiguous areas (e.g., partial pages or blocks) of the SLC cache 502 as valid data 508 or trimmed data 510. In some cases, the valid data 508 is organized and moved within the SLC cache 502 to form the trimmed data 510. As the SLC cache 502 is filled with data, the storage controller 126 migrates the valid data 508 or the trimmed data 510 to the MLC memory 504, as shown at 512. Alternatively or additionally, the host I / O 320 can also bypass the SLC cache 502 and write data directly to the MLC memory 504.
[0062] As the MLC storage 504 is filled with data, the storage controller 126 may implement garbage collection of partially valid MLC blocks to free these MLC blocks for reuse (e.g., as free MLC blocks to support data writes), as shown at 514. In this way, the host I / O 320 for data writes to the storage medium may result in internal I / O corresponding to the data migration 512 and garbage collection 514 performed by the storage controller 126 or FTL 324. In some cases, the internal I / O for data migration 512 and garbage collection 514 occurs concurrently with the host I / O 320 received from the host system 102. When the internal I / O is allowed to compete for access to the storage medium (e.g., as a corresponding media I / O), the host I / O performance, and thus the overall host system performance, may be greatly impaired or degraded.
[0063] In terms of AI-enabled management of storage media access, the media access manager 130 can use the AI engine 132 in scheduling host I / O 320 and internal I / O to optimize host I / O performance and reduce or eliminate contention between host I / O and internal I / O for access to storage media 124. In general, the media access manager 130 can use predictions of host-related events and behaviors to implement adaptive or optimized scheduling of host I / O and internal I / O. In other words, if future host I / O events or activities are predicted based on past host system activities, the scheduling of internal FTL operations can be optimized for the predicted opportunities to avoid or reduce as many concurrent host I / O and internal I / O as possible. In various aspects, the media access manager 130 and / or AI engine 132 of the storage controller can implement predictive or adaptive internal task, or device-level management for the storage system.
[0064] In some aspects, the media access manager 130 provides information about current or past activity of the host system to the AI engine 132, such as information or descriptive data for read or write commands (e.g., logical block address (LBA), size, timestamp) or idle time (e.g., interval, duty cycle, periodicity, frequency, duration, etc.). Based on the current or past host activity, using the AI model 134, the AI engine 132 can provide predictions of subsequent or future host activity, such as storage media access or idle time. The prediction of storage media access can include the type of access, the amount of data that the host system will write or read, how long the write or read will take to complete, or which data may be invalidated or overwritten in the future. Based on the prediction of future host system behavior, the media access manager 130 can change the scheduling of host I / O or internal I / O by advancing or delaying various I / Os to avoid or reduce contention for access to the storage media. By doing so, host I / O performance may be improved by effectively shielding or hiding the execution of internal I / O and taking advantage of host system idle time perceived from the host system (eg, a desktop or laptop computing device).
[0065] Figure 6An example of predictive garbage collection implemented by the media access manager 130 and utilizing the AI engine 132 of the storage system controller is shown. As shown at 600, host performance is degraded by throttling or pausing that occurs with traditional garbage collection. Without AI-enabled management, garbage collection is typically run whenever a host's write burst 602 exceeds a level of free space 604 of the storage medium. Incoming data associated with the write burst 602 causes the level of free space to fall below a garbage collection threshold 606, thereby triggering garbage collection that results in reduced host I / O performance 608 because the internal I / O used for garbage collection competes with the host I / O of the write burst 602 for storage medium access.
[0066] An example of predictive garbage collection supported by the AI engine 132 and the model 134, as compared to conventional techniques, is shown at 610. In some aspects, a volume of a storage medium is configured with corresponding thresholds and free space to support predictive garbage collection 612, which can support adaptive garbage collection operations that mitigate or avoid host I / O performance degradation (e.g., prevent host I / O throttling). Using the AI engine 132, the media access manager 130 can receive information related to a predicted write burst 614 of the host system. The media access manager 130 can determine that the predicted write burst 614 exceeds the level of free space 616, and implement predictive garbage collection 612 internal I / O before the predicted write burst 614 is expected to occur. By doing so, the predictive garbage collection 612 provides a new level of free space 618, which can receive (or absorb) data of the predicted write burst 614 or other write bursts without triggering a conventional garbage collection internal I / O that would interfere with the host I / O of the write burst.
[0067] Figure 7 An example of internal I / O operations scheduled by an AI engine according to one or more aspects is shown. In this example, the media access manager 130 can delay garbage collection and / or data migration to improve host I / O performance. As shown at 700, without AI-enabled management, a host write 702 can trigger data migration at 704 and then trigger garbage collection at 706 when each corresponding threshold is encountered (e.g., when available free space decreases). As shown at 708, when data migration and garbage collection are performed to free blocks of storage media, internal I / O contends with host I / O for access to the storage media interface and degrades host access.
[0068] An example of delayed garbage collection and / or data migration supported by the AI engine 132 and the IA model 134, as compared to conventional techniques, is shown at 710. In some aspects, the media access manager 130 monitors host I / O of the host system, which here includes host I / O for host writes 712 to storage media. Based on the host writes 712, the media access manager 130 may provide an indication 714 of the event type or duration to the AI model 134 of the AI engine driver 310. Based on the indication 714 of host activity, at 716, the AI model 134 provides a prediction of host system behavior. The prediction of host system behavior may include information describing the following items: time to next idle, duration of next idle, write density of host writes until next idle of the host system, etc. Based on the prediction 718 of the upcoming idle time, the media access manager 130 may delay internal tasks of the storage controller, as shown at 720. Full host performance is supported at 722 without competing for the internal I / O of the FTL 324, whereas with a conventional storage controller, the internal tasks of the storage controller would degrade the host I / O performance. Using the prediction of the idle time of the host system, the media access manager 130 can then implement delayed data migration 724 and delayed garbage collection 726 without conflicting with the host I / O of the host system.
[0069] Alternatively or additionally, according to one or more aspects, the media access manager 130 can implement adaptive cache management and dynamic bypass. Similar to adaptive garbage collection and data migration, the media access manager 130 can use predictions of host system behavior related to "write density" to manage the use of cache (e.g., SLC flash cache) through preemptive (e.g., early) data migration to storage media (e.g., xLC flash storage devices) or dynamic bypass of cache. For example, based on the prediction of large write bursts, the media access manager 130 can perform early data migration from cache memory to storage media to free up enough space to absorb the write burst. In other cases, the media access manager 130 can determine that the current idle time is insufficient for data migration, and instead cause the large write burst to bypass the cache memory to write directly to the storage media. Such bypass data writes may be slower than using a sufficiently sized cache memory, but avoids data migration from the cache memory, which, if unable to absorb the entire write burst, would significantly degrade host I / O performance (e.g., much slower than bypass data writes) when concurrent data migration is triggered.
[0070] Various aspects described throughout this disclosure may be implemented by the media access manager 130 or the FTL 324, which interacts with an AI engine, AI model, or AI driver of the storage system or associated with the storage system. With regard to processing various information of the storage system, the AI engine 132 and / or the AI model 134 may be implemented using machine learning, which is based on one or more neural networks for host system activity or behavior prediction. Each AI model, AI algorithm, or neural network of the AI engine 132 may include a set of connected nodes, such as neurons or perceptrons, organized into one or more layers.
[0071] By way of example, the AI model 134 (e.g., a machine learning model) of the AI engine 132 can be implemented using a deep neural network, which includes an input layer, an output layer, and one or more hidden intermediate layers, one or more hidden intermediate layers being positioned between the input layer and the output layer of the neural network. Each node of the deep neural network can then be fully or partially connected between the layers of the neural network. The AI model or AI algorithm can be any deep neural network (DNN), such as a convolutional neural network (CNN), including one of AlexNet, ResNet, GoogleNet, MobileNet, etc. Alternatively or additionally, the AI model can include any suitable recurrent neural network (RNN) or any variant thereof. Typically, the AI model or AI algorithm adopted by the AI engine 132 can also include any other supervised learning, unsupervised learning, reinforcement learning algorithm, etc.
[0072] In various aspects, the AI model 134 of the AI engine 132 may be implemented as a recurrent neural network having connections between nodes that form a loop to retain information from a previous portion of the input data sequence for a subsequent portion of the input data sequence (e.g., host I / O or event description). Alternatively, the AI model may be implemented as a feedforward neural network having connections between nodes that do not form a loop between input data sequences. In other cases, the AI model 134 of the AI engine 132 may include a convolutional neural network (CNN) with a multilayer perceptron, wherein each neuron in a given layer is connected to all neurons in an adjacent layer. In some aspects, the AI model 134 based on a convolutional neural network may be applied to previous host system activities to predict or predict some form of subsequent or future host system behavior or activity. Alternatively or additionally, the AI engine 132 may include or utilize various regression models, such as multiple linear regression models, a single linear regression model, a logistic regression model, a stepwise regression model, a multivariate adaptive regression model, a scatter plot model of local estimation, and the like.
[0073] Figure 8At 800, example host I / O event types useful for AI models in predicting host system behavior according to one or more aspects are shown. In this example, the flash translation layer 324 is shown processing host I / O 320 to generate corresponding media I / O 326 for accessing the storage medium 124. These host I / O 320 may include or correspond to host I / O events 802-0 to 802-t for corresponding storage media access operations. Based on the host I / O 320, the media access manager 130 provides input 332 to one or more models in the AI model 134 of the AI engine 132. As shown in FIG. Figure 8 As shown, input 332 may include an event descriptor or description, which includes event type, event size, event duration, event timestamp, etc. Based on input 332 (e.g., host I / O events), AI model 134 may generate output 334 or provide output 334 to media access manager 130 for predicted host behavior. Figure 8 As shown, output 334 for predicted host behavior may include time to next idle, duration of next idle, write density (of subsequent host system accesses), and the like.
[0074] In some aspects, the media access manager 130 or FTL 324 forwards descriptions or descriptors of these I / O events to the AI model 134 for processing using a neural network configured to enable prediction of future host behavior or activity. In the context of this example, the host I / O event 802 can be described or classified as shown in Equation 1, where x t is the event type, d t is the duration of the event.
[0075] E t =[x t , d t ]
[0076] Equation 1: Host I / O Event Descriptor Structure
[0077] Typically, an event type or I / O command can be described with reference to the type of access (e.g., read / write) and the size of the access (e.g., 4KB, 8KB, or 16KB). t) can be defined as the time from the arrival of an event or I / O command to the arrival of the next or subsequent I / O command. With respect to idle events and idle time, if the duration associated with an event is longer than a predefined idle duration threshold (D), the event can be classified as "idle" and the associated duration is classified as "idle time". As shown at 804, the input sequence for the AI model 134 can be formed by a plurality of event descriptors 806, where the history of host I / O events at any step (t) can be defined as shown in Equation 2.
[0078] E t-w+1 , E t-w+2 , ...E t-1 , E t
[0079] Equation 2: Host I / O event history
[0080] Using an input sequence of host I / O events, the trained AI model 134 can be provided with an idle duration threshold that is used to predict the time to the next idle Next idle duration and write intensity By way of example, consider Fig. 9 , which illustrates an example implementation of an AI model 900 configured to predict host I / O behavior. In various aspects, the AI model 134 can be based on a recurrent neural network (RNN) architecture, which can prove advantageous in utilizing memory to process inputs such as the history of the host system's I / O activity.
[0081] like Fig. 9 As shown, the AI model 900 includes an embedding layer 902, a recurrent layer 904, and corresponding prediction and classification layers 906 to 910 for “time to next idle”, “duration of next idle”, and “amount of writes until next idle”. In this example, the input weights 912 of the AI model include duration input 914 and event input 916, which can be generated and formatted by the media access manager 130 as described herein. In some cases, embedding weights 918 are applied to the event input 916 at the embedding layer 902 before the recurrent layer 904. The recurrent layer 904 can also include hidden weights 920, which can be applied to connect an instance of the AI model 900 with a previous step or run of the AI model 900.
[0082] like Fig. 9As shown, the AI model 900 also includes corresponding weights 922 to 926 for predicting "time to next idle", "duration of next idle", and "amount of writes until next idle". Similarly, any or all of the prediction layers or classification layers 906 to 910 provide corresponding predictions 928 to 932 of the number of host I / O activities for "time to next idle", "duration of next idle", and "amount of writes until next idle". Typically, regression loss functions 934 and 936 and classification loss function 938 are used to train the model weights using backpropagation. Alternatively or additionally, the AI model 900 may include an attention layer to enable the AI model to learn which weights or layers to pay attention to based on the history of previous hidden states.
[0083] As another example of predicted host behavior, consider Fig.10 , which shows an example of host behavior including predictions of various I / O or idle times. In some aspects, a multi-stage approach can be implemented by the AI model 134 to predict the time to the next idle, the duration of the next idle, and / or the write density of the host I / O activity. As shown at 1000, the AI model 134 takes a history of w events as an input sequence to predict the next event 1002 Here, it is assumed that the AI model 134 predicts a 4KB read operation with a 95% probability (shown as the next event 1002), and an 8KB write operation with a 5% probability. Based on the input sequence, the AI model 134 can also predict the duration for the next event 1002 (e.g., for the 4KB read operation).
[0084] This intermediate result, event 1002, can be provided back to the AI model 134 at 1004 as the next event of the input sequence in order to predict the next event 1006. Here, it is assumed that the next event 1006 can be predicted by probability to be most likely to be of duration 8KB written. This recursive approach of the AI model 134 may be executed and / or repeated until an idle time event is predicted. For example, the recursive method repeats as shown at 1008 until step t+T 1010, where the predicted duration is longer than a predefined idle duration threshold D, at which point an idle event is predicted, or step t+T reaches a predefined antecedent step S. If the recursive method produces a prediction of an idle event, subsequent prediction stages can be used to predict other I / O-related quantities for host system activity, as shown in equations 3 to 5 below.
[0085] [3] Predicted
[0086] [4] Predicted
[0087] [5] Predicted
[0088] where j = t+1, ... t+T, so that Is a write event
[0089] Equation 3-5: Quantity of host system behavior related to predicted idle events
[0090] By way of example, consider Fig.11 , which shows an example implementation of an AI model 1100 configured for multi-stage prediction of host I / O behavior. Fig.11 As shown, the AI model 1100 includes an embedding layer 1102, a recurrent layer 1104, a prediction layer 1106, and a classification layer 1108. In this example, the input weights 1110 of the AI model 1100 include a duration input 1112 and an event input 1114, which may be generated and formatted by the media access manager 130 as described herein. In some cases, the embedding weights 1116 are applied to the event input 1114 at the embedding layer 1102 before the recurrent layer 1104. The recurrent layer 1104 may also include hidden weights 1118, which may be applied to connect an instance of the AI model 1100 with a previous step or run of the AI model 1100.
[0091] like Fig.11 As shown, the AI model 1100 also includes an "event duration" weight 1120 for predicting the duration of various events and an "event type" weight 1122 for classifying events, which can be provided to the prediction layer 1106. The prediction layer 1106 and the classification layer 1108 can provide corresponding event predictions 1124 and event classifications 1126 for the next or intermediate event. Typically, the regression loss function 1128 and the classification loss function 1130 are used to train the model weights using backpropagation. Alternatively or additionally, the AI model 1100 can include an attention layer to enable the AI model to learn which weights or layers to pay attention to based on the history of previous hidden states.
[0092] Fig.12An example beam search is shown at 1200 that is useful for determining a path of predicted host behavior based on event probabilities. In some aspects, the beam search can be used to reduce or mitigate error propagation through predictions of host system behavior. Generally, at each time step, the beam search implemented by the media access manager 130 or the AI engine 132 can retain the K events with the highest connection or combination probability. By doing so, the beam search can increase the probability that the AI engine 132 selects the best path of events from time step t+1 to time step t+T. Fig.12 As shown, for K=3 events, based on the probability of assignment to each next event, the beam search can be performed along the path from event 1202 to event 1204. Based on the path from the beam search to the idle event For the selected path of 1206 , the AI engine 132 may use the AI model 134 as described herein to predict “time to next idle event,” “duration of next idle,” or “write density.”
[0093] Fig.13 An example timeline of operations for online retraining or online refinement of an AI model is shown at 1300, which can enable the AI model to adapt to user-specific or device-specific I / O workloads. Typically, an AI model for predicting host system I / O events or behaviors can be trained offline using a large data set that is common to a given type of device or application before the storage system is deployed to the user. Once the device is used by the user, the various applications and daily usage patterns typically vary from one user to the next. In this way, the effectiveness or accuracy of the AI model can be improved based on actual use by the end user using online (e.g., runtime) refinement or retraining.
[0094] With respect to refining or retraining AI models, the following discussion may apply to either item, as these operations may be implemented using the same or similar operations. For example, an AI model may be refined when it is robust or has been trained for a sufficiently long time on data that is meaningful to the corresponding user. In other cases, if the AI model is inaccurate for the optimal parameters of a particular user of the device, the AI model may be retrained. Refining the AI model may include partial updates to model parameters, such as multiple layers in the model or modifying parameters in a given layer of the DNN. With respect to retraining, most or all of the AI models may be adjusted, such as by introducing, extending, or removing various parameters, weights, or layers of the DNN. In various aspects, the firmware of the storage controller 126, the AI engine 132, or the AI engine driver 310 may retrain or refine one or more of the AI models 134.
[0095] In some aspects, the reasoning process and online training on the AI model are performed concurrently or in parallel. The output provided by the reasoning process can be used to predict host system behavior and can also be used for online training purposes. To this end, the firmware of the storage controller or AI engine 132 can synchronize or coordinate the steps of the reasoning process and online training to ensure that a correct or optimal set of model weights are used during the concurrent online training process. Typically, online training (or refinement) includes a forward step and a backward step, which can be performed or repeated as needed. The forward step can be similar or identical to the reasoning step. The backward step updates the weights or parameters of the AI model being retrained by backward propagation. In some cases, backward propagation includes calculating the amount or degree to which one or more model weights in the model weights are modified. For example, the AI engine can calculate the weight modification amount (Δw) for each model weight, and then add or subtract the weight modification amount from the corresponding weight.
[0096] like Fig.13 As shown, two models or instances of an AI model can operate in parallel while the AI model is being trained or refined. In this example, the reasoning process 1302 runs concurrently or in parallel with the online training 1304 of the AI model. Typically, one AI model can be designated as the "current model" and another AI model can be designated as the "update model," which provides retrained or improved model weights. Instances of an AI model can be implemented concurrently or in parallel using multiple buffers that store corresponding versions of the AI model parameters. Fig.13 , these buffers are labeled as buffer A 1306 and buffer B 1308. Fig.13 As shown, the inference process 1302 can run continuously, and the online training process 1304 can also run continuously except when the weights are updated.
[0097] In some aspects, the inference process 1302 and the online training 1304 are executed on the same hardware (not shown) to run the inference step and the online training process. In other words, the inference part (or forward part) of the online training 1304 and the inference process 1302 can be performed on the same hardware (not shown) as described herein. Figures 1 to 4 The hardware and / or other systems shown (e.g., Fig.19 ) or a controller (e.g. Fig. 20 ). For example, a single instance of the inference hardware can be implemented to execute Fig.13 Both the reasoning process 1302 and the online training 1304. Fig.13 As shown, when the weight of buffer A 1306 is updated, the reasoning process 1302 can continue to run using the weight of buffer B 1308. Similarly, when the weight of buffer B 1308 is updated, the reasoning process 1302 can continue to run using the weight of buffer A 1306.
[0098] In the context of this example, online training 1304 can be run based on the current AI model 134 in buffer A 1306. The AI engine 132 runs reasoning for one or more instances (steps) as a batch 1310 (e.g., batch 1 1310-1) using the current AI model 134 or the model weights in buffer A 1306. When batch 1310 is completed, the AI model 134 is updated through backpropagation 1312, which can be implemented by the AI engine 132 or the processor core of the storage controller 126. Updating the model weights or AI model 134 in buffer B 1308 takes time, during which the reasoning process 1302 can continue to run through another instance of the AI model 134. When the weight modification amount 1314-1 of batch 1 1310-1 is updated in buffer B, the online training process 1304 can be locked (model parameter adjustment is paused) while the reasoning process 1302 continues to run on buffer A. By doing so, the online training process 1304 can be implemented without degrading the performance of the inference process 1302, while supporting fast and efficient training of the AI model.
[0099] After the back propagation is completed and the model weights or AI model 134 in buffer B 1308 are updated, the buffer becomes the "current" buffer for the next batch of online training 1304 and for the inference process 1302. In other words, batch 2 1310-2 is run using the model weights or AI model 134 stored in buffer B 1308, and buffer A 1306 becomes the "updated" buffer. Fig.13 As shown, in an alternating manner, buffer 1306A holds the "current" model or model weights, while buffer B 1308 is used as the "updated" model or model weights. When the model update is completed, the buffers then swap roles, i.e., buffer 1308B holds the "current" model or model weights, while buffer A 1306 is used as the "updated" model or model weights. In other words, online training utilizes "back and forth" between buffers for each batch (e.g., batch 3, batch 4, and so on) to achieve a continuous online training process. During online or runtime training, the inference process 1302 can use the model weights or model of the "current" buffer to provide adaptive predictions of the host system behavior. In other aspects, retrained AI model refinement can be performed such that AI model training is achieved during a first set of time intervals, while inference is performed in a second, different set of time intervals.
[0100] Technology for AI-enabled management of access to storage media
[0101] The following discussion describes techniques for AI-enabled management of storage media access that can schedule host I / O or internal I / O to optimize the performance of storage drives. These techniques can be implemented using any of the environments and entities described herein, such as the media access manager 130, the AI engine 132, and / or the AI model 134. These techniques include Figures 14 to 18 , each of the various methods is shown as a set of operations that can be performed by one or more entities.
[0102] The methods are not necessarily limited to the order of operations shown in the associated figures. Rather, any of the operations may be repeated, skipped, replaced, or reordered to implement the various aspects described herein. Furthermore, the methods may be used in conjunction with one another, in whole or in part, whether performed by the same entity, separate entities, or any combination thereof. For example, the methods may be combined to implement AI-enabled management of storage media to schedule host I / O and / or internal I / O of a storage media system based on predictions of host system behavior to optimize host system performance related to storage media access (e.g., latency or throughput). In the sections discussed below, reference will be made by way of example to the methods described herein. Figure 1 The operating environment is 100 and Figures 2 to 13 Such references should not be construed as limiting the described aspects to the operating environment 100, entities, or configurations, but rather as an illustration of one example among various examples. Alternatively or additionally, the operations of these methods may also be performed by or with reference to Fig.19 System on Chip and / or Fig. 20 The storage system controller describes the entity to achieve.
[0103] Fig.14 An example method 1400 for AI-enabled management of storage media access is depicted, including operations performed by or utilizing a media access manager 130 or an AI engine 132 of a media storage controller.
[0104] At 1402, a host I / O for accessing a storage medium is received from a host system. The host I / O may be received from the host system via a host system interface of a storage system or storage controller. In some cases, the host I / O includes or corresponds to a write or read command of the host system, the write or read command including a corresponding logical block address, size, or timestamp.
[0105] At 1404, information describing a host I / O of the host system is provided to the AI engine. The AI engine may be associated with the storage system as part of a storage controller or accessible by a storage controller of the storage system. In some cases, the information describing the host I / O or a descriptor of the host I / O includes an event type of the host I / O, an event duration of the host I / O, or an event size of data associated with the host I / O.
[0106] At 1406, a prediction of host system behavior is received from the AI engine. The prediction of host system behavior may include information describing host system activity related to subsequent accesses of the storage medium by the host system. In some cases, the prediction of host system behavior includes an indication of a duration until the host system becomes idle, a duration that the host system will remain idle, or a parameter related to the next host I / O issued by the host system.
[0107] At 1408, host I / O for accessing the storage media is scheduled based on the prediction of the host system behavior. The host I / O may be scheduled to preempt other I / O for internal tasks of the storage system. In some cases, the host I / O is scheduled or executed using modified parameters or thresholds for garbage collection, caching, data migration, or thermal throttling. For example, the media access manager may suspend or preempt one or more thresholds to prevent triggering of internal storage system operations to achieve completion of the host I / O.
[0108] Optionally, internal I / O of the storage system is scheduled based on the prediction of host system behavior at 1410. In some cases, the media access manager determines that the storage system has pending internal I / O. Scheduling of the internal I / O may include advancing or delaying the internal I / O of the storage system based on the prediction of host system behavior, such as to mitigate contention between the internal I / O for access to the storage medium and the host I / O or subsequent host I / O.
[0109] At 1412, a media I / O is performed, and the media I / O corresponds to the internal I / O of the storage system and / or the scheduled host I / O. The FTL of the storage controller may generate a corresponding media I / O, which corresponds to the internal I / O of the storage system and the scheduled host I / O. In response to the media I / O, the storage system may return the read data to the host system, or store the data of the host system to the storage system.
[0110] Fig.15 An example method 1500 for delaying internal operations of a storage system based on predictions of host system behavior is depicted. In some aspects, the operations of method 1500 are performed by a media access manager 130 or an AI engine 132 of a media storage controller.
[0111] At 1502, information describing a respective type and duration of a host I / O event is provided to an AI model of an AI engine. The host I / O event may specify or request access to a storage medium of a storage system with which the AI engine is associated. In some cases, the information describing the host I / O event (or a descriptor thereof) includes an event type of the host I / O, an event duration of the host I / O, or an event size of data associated with the host I / O.
[0112] At 1504, a prediction of an upcoming idle time for the host system is received from the AI model of the AI engine. The prediction of the upcoming idle time may include an indication of a duration until the host system becomes idle, a duration that the host system will remain idle, or a parameter related to the next host I / O issued by the host system. In some cases, the prediction includes an indication of expected host I / O activity that may occur prior to the next idle time for the host system.
[0113] At 1506, internal operations or internal tasks of the storage system are delayed based on the prediction of upcoming idle time of the host system. The internal operations may include garbage collection, data migration, or other tasks involving access to the storage medium. In some cases, the internal operations are triggered by corresponding thresholds, and when the internal operations are delayed, the corresponding thresholds may be suspended or preempted.
[0114] At 1508, a media I / O is performed while internal operations of the storage system are delayed, the media I / O corresponding to a host I / O of the host system. The performed media I / O may correspond to a write command or a read command of the host system. Although the internal operations of the storage system are delayed, the media I / O may be performed without competing or vying with the internal I / O of the storage system. In this way, host I / O performance may be optimized by granting the host system full access to the storage medium (e.g., without throttling or pausing).
[0115] At 1510, during the upcoming idle time, other media I / O corresponding to the internal I / O of the delayed internal operation is performed. The internal I / O may correspond to delayed data migration or delayed garbage collection, which is performed during the idle time of the host system. In some cases, the delay effectively prevents the data migration or garbage collection from degrading the performance of the host I / O, so that the host system's access to the storage medium is optimized.
[0116] Fig.16 An example method 1600 for anticipating internal operations of a storage system based on predictions of host system behavior is depicted. In some aspects, the operations of method 1600 are performed by a media access manager 130 or an AI engine 132 of a media storage controller.
[0117] At 1602, information describing a host I / O of a host system is provided to an AI model of an AI engine. The host I / O may include an I / O command or an I / O operation for accessing a storage medium of a storage system with which the AI engine is associated. In some cases, the information describing a host I / O event (or a descriptor thereof) includes an event type of the host I / O, an event duration of the host I / O, or an event size of data associated with the host I / O.
[0118] At 1604, a prediction of access activity of the host system is received from the AI model of the AI engine. The prediction of access activity may include a write density of the host system, an amount of data to be written to the storage medium, or an expected duration of the write activity. In some cases, the prediction also includes an amount of time until the write activity occurs so that the media access manager can determine whether other internal tasks can be performed before the predicted activity of the host system begins.
[0119] At 1606, internal operations of the storage system are advanced based on the prediction of access activity of the host system. The internal operations may include garbage collection or data migration, such as to free up space in cache memory or to increase the amount of free space to exceed a nominal threshold of free space in cache memory or storage media. For example, the internal operations may be advanced and configured to free up enough cache space to prevent the predicted activity of the host system from triggering the internal operations when the activity occurs.
[0120] At 1608, a media I / O is performed, the media I / O corresponding to the internal I / O of the proactive internal operation. The media I / O may correspond to proactive or preparatory garbage collection or data migration for the cache memory or storage medium. In at least some cases, the proactive or preemptive internal operation creates sufficient free space in the cache memory or storage medium to support host system activity without causing the activity to trigger a threshold for additional internal operations.
[0121] At 1610, other media I / Os are performed, the other media I / Os corresponding to the host I / Os of the predicted access activity of the host system. After at least part of the media I / Os of the internal operation are performed, the media I / Os for the host I / Os are performed for storage media access. In some cases, the free space provided by the advanced internal operation enables the media I / Os corresponding to the host I / Os to be performed at the full level of access by the host system. In this way, by advancing the internal operation of the storage system, the host system's access to the storage medium can be optimized by preventing the internal I / Os from competing with the host I / Os for access to the storage medium.
[0122] Fig.17An example method 1700 is depicted for changing parameters for device-level management of storage media based on predictions of host system behavior. In some aspects, the operations of method 1700 are performed by a media access manager 130 or an AI engine 132 of a media storage controller.
[0123] At 1702, a host I / O for accessing a storage medium is received from a host system. The host I / O may be received from the host system via a host system interface of a storage system or storage controller. In some cases, the host I / O includes or corresponds to a write or read command of the host system, the write or read command including a corresponding logical block address, size, or timestamp.
[0124] At 1704, information describing the host I / O is provided to an artificial intelligence engine. The AI engine can be associated with the storage system as part of a storage controller or accessible by a storage controller of the storage system. In some cases, the information describing the host I / O, or a descriptor thereof, includes an event type of the host I / O, an event duration of the host I / O, or an event size of data associated with the host I / O.
[0125] At 1706, a prediction of host behavior is received from the artificial intelligence engine. The prediction of host system behavior may include information describing host system activity related to subsequent accesses of the storage medium by the host system. In some cases, the prediction of host system behavior includes an indication of a duration until the host system becomes idle, a duration that the host system will remain idle, or a parameter related to the next host I / O issued by the host system (e.g., write intensity).
[0126] At 1708, parameters for device-level management of the storage media are changed based on predictions of host system behavior. The parameters may include thresholds for thermal management of the storage media device. For example, based on upcoming idle time, the media access manager may preempt or suspend thermal limits to allow host I / O for data writes to complete at full performance without thermal throttling access to the storage media. Alternatively or additionally, thresholds for garbage collection or data migration may be preempted or suspended to allow full host I / O performance for access operations.
[0127] Based on predictions of upcoming idle time (no host system activity), the host system can be provided with full performance access knowing that the storage media device will have ample time to cool after the operation is complete. In other cases, the media access manager can determine that even if garbage collection or data migration is delayed until after the write operation (e.g., changing or suspending the threshold for either), the write operation is likely to complete without exhausting the free space.
[0128] At 1710, media I / O corresponding to the host I / O of the host system is performed according to the modified parameters for device level management. The FTL of the storage controller can generate corresponding media I / O corresponding to the internal I / O of the storage system and the scheduled host I / O. The media I / O can be performed according to the modified or suspended thermal limit for the storage medium or storage media device. Alternatively or additionally, the media I / O can be performed according to the modified or suspended threshold for data migration or garbage collection.
[0129] Fig.18 An example method 1800 for running inference utilizing multiple instances of an AI model to achieve online retraining or refinement is depicted, including operations performed by or utilizing a media access manager 130 of a storage system.
[0130] At 1802, inference is run via hardware of an AI engine using first parameters (e.g., corresponding weights or parameters) of a first instance of an AI model. The first parameters may be stored in a first buffer or memory area. In some cases, the first instance of the AI model is a "current" instance of the AI model for running inference. Inference may be run in parallel with an online training process running on the same hardware of the AI engine.
[0131] At 1804, a second parameter of the second instance of the AI model is updated based on the first parameter of the first instance of the AI model. The second parameter may be stored to a second buffer or memory area. In some cases, the second instance of the AI model is an "updated" instance of the AI model that is updated from a "current" instance running on the hardware. During the updating of the second parameter of the second instance of the AI model, the online retraining process may be paused. At 1806, while the second parameter of the second instance is being updated, reasoning continues to run using the first parameter of the first instance of the AI model.
[0132] At 1808, inference is run via the hardware of the AI engine using the second parameters of the second instance of the AI model. The second instance of the AI model may become the "current" instance of the AI model used to run inference. The first instance of the AI model may become the "updated" instance of the AI model, which is updated from the "current" instance running on the hardware. Inference may run in parallel with an online training process running on the same hardware of the AI engine.
[0133] At 1810, a first parameter of a first instance of the AI model is updated based on a second parameter of a second instance of the AI model. During the updating of the first parameter of the first instance of the AI model, the online retraining process may be paused. At 1812, while the first parameter of the first instance is updated, reasoning continues to run using the second parameter of the second instance of the AI model. From operation 1812, method 1800 may return to operation 1802 to begin another iteration of the online training process.
[0134] System on Chip
[0135] Fig.19 An exemplary system on chip (SoC) 1900 is shown that can implement various aspects of AI-enabled management of storage media access. SoC 1900 can be implemented in any suitable system or device, such as a smartphone, a netbook, a tablet computer, an access point, a network-attached storage device, a camera, a smart appliance, a printer, a set-top box, a server, a data center, a solid-state drive (SSD), a hard disk drive (HDD), a storage drive array, a memory module, a vehicle computing system, or any other suitable type of device (e.g., other devices described herein). Although described with reference to a SoC, Fig.19 The entity may also be implemented as other types of integrated circuits or embedded systems, such as an application specific integrated circuit (ASIC), a memory controller, a storage controller, a communication controller, an application specific standard product (ASSP), a digital signal processor (DSP), a programmable SoC (PSoC), a system-in-package (SIP), or a field programmable gate array (FPGA).
[0136] The SoC 1900 may be integrated with electronic circuits, microprocessors, memory, input-output (I / O) control logic, communication interfaces, firmware, and / or software that may be used to provide functionality of a computing device, a host system, or a storage system, such as any device or component described herein (e.g., a storage drive or storage array). The SoC 1900 may also include an integrated data bus or interconnect structure (not shown) that couples various components of the SoC for control signaling, data communication, and / or routing between components. The integrated data bus, interconnect structure, or other components of the SoC 1900 may be exposed or accessed through an external port, a parallel data interface, a serial data interface, a structure-based interface, a peripheral component interface, or any other appropriate data interface. For example, a component of the SoC 1900 may access or control an external storage medium, an AI engine, an AI model, or an AI network through an external interface or an off-chip data interface.
[0137] In this example, SoC 1900 includes various components, such as input-output (I / O) control logic 1902 and a hardware-based processor 1904 (processor 1904), such as a microprocessor, a processor core, an application processor, a DSP, etc. SoC 1900 also includes a memory 1906, which may include any type and / or combination of the following items: RAM, SRAM, DRAM, non-volatile memory, ROM, one-time programmable (OTP) memory, multi-time programmable (MTP) memory, flash memory, and / or other suitable electronic data storage. In some aspects, processor 1904 and code stored on memory 1906 are implemented as a storage system controller or storage aggregator to provide various functionalities associated with AI-enabled management of access to storage media. In the context of the present disclosure, memory 1906 stores data, code, instructions, or other information via non-transient signals and does not include carrier waves or transient signals. Alternatively or additionally, SoC 1900 may include a data interface (not shown) for accessing additional or expandable off-chip storage media, such as solid-state memory (e.g., flash memory or NAND memory), magnetic-based storage media, or optical-based storage media.
[0138] SoC 1900 may also include firmware 1908, applications, programs, software and / or operating systems, which may be implemented as processor executable instructions maintained on memory 1906 for execution by processor 1904 to implement the functionality of SoC 1900. SoC 1900 may also include other communication interfaces, such as transceiver interfaces, for controlling or communicating with off-chip communication transceivers or components on a local chip (not shown). Alternatively or additionally, the transceiver interface may also include or implement a signal interface for transmitting radio frequency (RF), intermediate frequency (IF) or baseband frequency signals off-chip to facilitate wired or wireless communication through a transceiver, physical layer transceiver (PHY) or media access controller (MAC) coupled to SoC 1900. For example, SoC 1900 may include a transceiver interface configured to support storage over a wired or wireless network, such as to provide a network attached storage (NAS) volume with AI-enabled management for access to storage media.
[0139] SoC 1900 also includes a media access manager 130, an AI engine 132, and an AI model 134, which can be implemented separately as shown or combined with storage components, data interfaces, or can be accessed through an off-chip interface (e.g., an AI model stored to external memory). According to various aspects of AI-enabled management of storage media access, the media access manager 130 can interact with the AI engine 132 to generate predictions of host behavior regarding future storage media accesses and schedule internal operations (e.g., internal task I / O) based on the predictions to optimize storage media performance. Alternatively or additionally, the AI engine 132 can implement multiple AI models 134 to predict host behavior, which can be executed concurrently and / or in conjunction with online refinement or retraining for improved predictions of host-specific behavior. Any of these entities can be implemented as different or combined components, as described with reference to the various aspects presented herein. Examples of these components and / or entities or corresponding functionality refer to Figure 1 corresponding components or entities of the environment 100, or Figures 2 to 13 The media access manager 130 or AI engine 132 may be implemented in whole or in part as processor executable instructions maintained by the memory 1906 and executed by the processor 1904 to implement various aspects and / or features of AI-enabled management of storage media access.
[0140] The media access manager 130 may be implemented independently or in combination with any suitable components or circuits to implement the various aspects described herein. For example, the media access manager 130 or the AI engine 132 may be implemented as part of a DSP, a processor / memory bridge, an I / O bridge, a graphics processing unit, a memory controller, a storage controller, an arithmetic logic unit (ALU), etc. The media access manager 130 may also be provided integrated with other entities of the SoC 1900, such as with the processor 1904, the memory 1906, the storage medium interface, or the firmware 1908 of the SoC 1900. Alternatively or additionally, the media access manager 130, the AI engine 132, and / or other components of the SoC 1900 may be implemented as hardware, firmware, fixed logic circuits, or any combination thereof.
[0141] As another example, consider Fig. 20 , which illustrates an example storage system controller 2000 according to one or more aspects of AI-enabled management of storage media access. In various aspects, the storage system controller 2000 or any combination of its components can be implemented as a storage drive controller, a storage media controller, a NAS controller, a fabric interface, an NVMe target, or a storage aggregation controller for solid-state storage media. In some cases, as described with reference to Fig.19As described, the storage system controller 2000 is implemented similarly to or using components of the SoC 1900. In other words, an instance of the SoC 1900 may be configured as a storage system controller, such as the storage system controller 2000, to manage solid-state (e.g., NAND flash-based) media with AI assistance.
[0142] In this example, the storage system controller 2000 includes input-output (I / O) control logic 2002 and a processor 2004, such as a microprocessor, a processor core, an application processor, a DSP, etc. In some aspects, the processor 2004 and firmware of the storage system controller 2000 can be implemented to provide various functionalities associated with AI-enabled management of storage media access, such as those described in any of the methods 1400 to 1800. The storage system controller 2000 also includes a host interface 2006 (e.g., a SATA, PCIe, NVMe, or fabric interface) and a storage medium interface 2008 (e.g., a NAND interface), which respectively implement access to a host system and storage media. The storage system controller 2000 also includes a flash translation layer 2010 (FTL 2010), a device level manager 2012, and an I / O scheduler 322. In some aspects of AI-enabled management of storage media access, the FTL 2010 and / or the device level manager 2012 generates a storage system controller or manages internal I / O of the storage media device through the storage media interface 2008 .
[0143] The storage system controller 2000 also includes instances of the media access manager 130, the AI engine 132, and the AI model 134. Any or all of these components may be implemented separately as shown, or in combination with the processor 2004, the host interface 2006, the storage media interface 2008, the flash translation layer 2010, the device level manager 2012, and / or the I / O scheduler 322. Figure 1 corresponding components or entities of the environment 100, or Figures 2 to 13Examples of these components and / or entities or corresponding functions are described with reference to the corresponding configurations shown. According to various aspects of AI-enabled management of storage media access, the media access manager 130 can interact with the AI engine 132 of the storage system controller 2000 to generate predictions of host behavior regarding future storage media access, and schedule internal operations (e.g., internal task I / O) based on the predictions to optimize storage media performance. Alternatively or additionally, the AI engine 132 can implement multiple AI models 134 to predict host behavior, which can be executed concurrently and / or with online refinement or retraining for improved predictions of host-specific behavior. The media access manager 130 can be implemented in whole or in part as processor-executable instructions, which are maintained by the controller's memory and executed by the processor 2004 to implement various aspects and / or features of AI-enabled management of storage media access.
[0144] Although the subject matter has been described in language specific to structural features and / or methodological operations, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific examples, features, or operations described herein, including the order of performance.
[0145] Some examples are described below:
[0146] Example 1: A method for storage medium access management supporting artificial intelligence, comprising:
[0147] receiving host input / output (I / O) from a host system and via a host interface of a storage system for access to a storage medium of the storage system;
[0148] providing information describing the host I / O received from the host system to an artificial intelligence engine associated with the storage system;
[0149] receiving, from the artificial intelligence engine, a prediction of host system behavior, the prediction of host system behavior being relevant to subsequent access of the storage medium by the host system; and
[0150] The host I / O for accessing a storage medium of the storage system is scheduled based on the prediction of host system behavior.
[0151] Example 2: The method according to claim 1, further comprising:
[0152] Determining that the storage system has pending internal I / O, and wherein the scheduling comprises:
[0153] The host I / O of the host system and the internal I / O of the storage system for accessing the storage medium of the storage system are scheduled based on the prediction of host system behavior.
[0154] Example 3: The method according to claim 2, wherein scheduling the internal I / O of the storage system includes: based on the prediction of the host system behavior, advancing or delaying the internal I / O of the storage system to alleviate the contention between the internal I / O and the host I / O or subsequent host I / O for access to the storage medium.
[0155] Example 4: The method of claim 2, wherein the internal I / O corresponds to one or more tasks of a flash translation layer of the storage system, the one or more tasks comprising one of garbage collection, data migration, or wear leveling.
[0156] Example 5: The method of claim 1, wherein the prediction of host system behavior received from the artificial intelligence engine includes an indication of:
[0157] a duration until the host system becomes idle;
[0158] The duration for which the host system will remain idle; or
[0159] Parameters related to the next host I / O issued by the host system.
[0160] Example 6: The method of claim 1, wherein the information describing the host I / Os comprises: an indication of the following for at least one of the host I / Os:
[0161] The event type of the host I / O;
[0162] the event duration of the host I / O; or
[0163] The event size of the data associated with the host I / O.
[0164] Example 7: The method of claim 1, wherein the scheduling of the host I / O is based on the prediction of host system behavior received from the artificial intelligence engine and device-level parameters of the storage medium for thermal management of the storage medium.
[0165] Example 8: The method of claim 1, wherein:
[0166] The artificial intelligence engine executes a plurality of artificial intelligence models;
[0167] At least two of the plurality of artificial intelligence models are associated with respective internal tasks implemented by a device level manager or a flash translation layer of the storage system; and
[0168] The method further includes: before providing the information to the artificial intelligence engine, loading at least one of the plurality of intelligent models into the artificial intelligence engine to enable prediction of the host system behavior.
[0169] Example 9: The method according to claim 8 also includes: concurrently executing at least two of the multiple artificial intelligence models via the artificial intelligence engine to implement at least two artificial intelligence-assisted internal tasks of the storage system.
[0170] Example 10: The method according to claim 8 also includes: executing two instances of one of the multiple artificial intelligence models in parallel via the artificial intelligence engine to enable online retraining or refinement of the artificial intelligence model.
[0171] Example 11: An apparatus comprising:
[0172] a host interface configured for communicating with a host system;
[0173] A storage medium for storing data of the host system;
[0174] a medium interface configured to support access to the storage medium;
[0175] Artificial intelligence engine; and
[0176] The Media Access Manager is configured to:
[0177] receiving, via the host interface, a host input / output (I / O) from the host system for access to the storage medium of the device;
[0178] providing information describing the host I / O received from the host system to the artificial intelligence engine;
[0179] receiving, from the artificial intelligence engine, a prediction of host system behavior, the prediction of host system behavior being relevant to subsequent access of the storage medium by the host system; and
[0180] The host I / O for accessing the storage medium of the storage system is scheduled based at least on the prediction of host system behavior.
[0181] Example 12: The apparatus of claim 11, wherein the media access manager is further configured to:
[0182] determining that the device has an internal I / O for accessing the storage medium, the internal I / O being pending; and
[0183] The host I / O of the host system and the internal I / O of the device are scheduled for access of the storage medium of the device based on the prediction of host system behavior.
[0184] Example 13: The apparatus of claim 11, wherein:
[0185] The prediction of host system behavior received from the artificial intelligence engine includes an indication of at least one of: a duration until the host system becomes idle, a duration for which the host system will remain idle, or a parameter associated with a next host I / O issued by the host system; or
[0186] The information describing the host I / Os includes an indication of, for at least one of the host I / Os, an event type for the host I / O, an event duration for the host I / O, or an event size of data associated with the host I / O.
[0187] Example 14: The apparatus of claim 11, wherein:
[0188] The artificial intelligence engine executes a plurality of artificial intelligence models, including at least two of the plurality of artificial intelligence models being associated with respective internal tasks implemented by a device level manager or a flash translation layer of the apparatus; and
[0189] The media access manager is also configured to load at least one of the plurality of intelligent models into the artificial intelligence engine before providing the information to the artificial intelligence engine to enable prediction of the host system behavior.
[0190] Example 15: The apparatus of claim 14, wherein the media access manager is further configured to:
[0191] causing the artificial intelligence engine to concurrently execute the at least two artificial intelligence models among the plurality of artificial intelligence models to implement at least two artificial intelligence-assisted internal tasks of the device; or
[0192] The artificial intelligence engine is caused to execute two instances of an artificial intelligence model from the multiple artificial intelligence models in parallel to enable online retraining or refinement of the artificial intelligence model.
[0193] Example 16: A system on a chip (SoC), comprising:
[0194] A media interface for accessing the storage media of the storage system;
[0195] A host interface for communicating with a host system;
[0196] Artificial intelligence engine;
[0197] Hardware-based processors;
[0198] A memory storing processor-executable instructions that, in response to being executed by the hardware-based processor, implement a media access manager to:
[0199] receiving, via the host interface, a host input / output (I / O) from the host system for accessing a storage medium of the storage system;
[0200] providing information describing the host I / O received from the host system to the artificial intelligence engine;
[0201] receiving, from the artificial intelligence engine, a prediction of host system behavior, the prediction of host system behavior being relevant to subsequent access of the storage medium by the host system; and
[0202] The host I / O for accessing the storage medium of the storage system is scheduled based at least on the prediction of host system behavior.
[0203] Example 17: The SoC of claim 16, wherein the media access manager is further configured to determine that the SoC has an internal I / O for access to the storage medium, the internal I / O being pending; and
[0204] Based on the prediction of the host system behavior, the host I / O of the host system and the internal I / O of the SoC for accessing the storage medium of the SoC are scheduled, and the scheduling of the internal I / O includes: advancing or delaying the internal I / O of the SoC to alleviate contention between the internal I / O and the host I / O.
[0205] Example 18: The SoC of claim 16, wherein:
[0206] The prediction of host system behavior received from the artificial intelligence engine includes an indication of at least one of: a duration until the host system becomes idle, a duration for which the host system will remain idle, or a parameter related to a next host I / O issued by the host system; or
[0207] The information describing the host I / Os includes an indication of, for at least one of the host I / Os, an event type of the host I / O, an event duration of the host I / O, or an event size of data associated with the host I / O.
[0208] Example 19: The SoC of claim 16, the media access manager further configured to schedule the host I / O based on the prediction of host system behavior and device-level parameters of the storage medium for thermal management of the storage medium.
[0209] Example 20: The SoC of claim 16, wherein:
[0210] The artificial intelligence engine of the SoC executes a plurality of artificial intelligence models, including at least two of the plurality of artificial intelligence models associated with respective internal tasks implemented by a device level manager or a flash translation layer of the SoC; and
[0211] The media access manager is further configured to:
[0212] causing the artificial intelligence engine to concurrently execute the at least two artificial intelligence models among the plurality of artificial intelligence models to implement at least two artificial intelligence-assisted internal tasks of the SoC; or
[0213] The artificial intelligence engine is caused to execute two instances of an artificial intelligence model from the multiple artificial intelligence models in parallel to enable online retraining or refinement of the artificial intelligence model.
Claims
1. A method for artificial intelligence-enabled management of access to a storage medium, comprising: receiving a host input / output (I / O) for accessing a storage medium from a host system via a host interface of a storage medium controller, the storage medium being coupled to the storage medium interface of the storage medium controller; providing information describing the host I / O received from the host system to an artificial intelligence engine associated with the storage media controller; receiving, from the artificial intelligence engine, a prediction of future host system I / O activity regarding subsequent accesses to the storage medium by the host system; determining that the storage medium controller has a pending internal I / O for accessing the storage medium; Scheduling a first media I / O for accessing a storage medium, wherein the first media I / O corresponds to the host I / O for accessing the storage medium; as well as Based on the prediction of future host system I / O activity, a second media I / O for storage medium access corresponding to the internal I / O for accessing the storage medium is scheduled, the second media I / O corresponding to the internal I / O being scheduled to avoid contention with: (i) the first media I / O corresponding to the host I / O or (ii) a third media I / O corresponding to a next host I / O issued by the host system.
2. The method of claim 1 , wherein scheduling the second media I / O corresponding to the internal I / O of the storage media controller comprises: The scheduling performance of the second media I / O is advanced or delayed based on the prediction of future host system I / O activity to alleviate contention between the second media corresponding to the internal I / O and at least one of the following: the first media I / O corresponding to the host I / O, or the third media I / O corresponding to the next host I / O issued by the host system.
3. The method according to claim 1, wherein the internal I / O of the storage medium controller corresponds to one or more tasks of a flash translation layer of the storage medium controller, and the one or more tasks include one of garbage collection, data migration or wear leveling for the storage medium.
4. The method of claim 1 , wherein the prediction of future host system I / O activity received from the artificial intelligence engine includes an indication of: a duration until the host system becomes idle; The duration for which the host system will remain idle; or Parameters related to the next host I / O issued by the host system.
5. The method of claim 1 , wherein the information describing the host I / O comprises: An indication of the following for at least one of the host I / Os: The event type of the host I / O; the event duration of the host I / O; or The event size of the data associated with the host I / O.
6. The method of claim 1, wherein the scheduling of the second media I / O corresponding to the internal I / O is based on: the prediction of future host system I / O activity received from the artificial intelligence engine; and Device level parameters of the storage medium for thermal management of the storage medium.
7. The method according to claim 1, wherein: The artificial intelligence engine executes a plurality of artificial intelligence models; At least two of the plurality of artificial intelligence models are associated with respective internal tasks implemented by a device level manager or a flash translation layer of the storage medium; and The method also includes: before providing the information to the artificial intelligence engine, loading at least one artificial intelligence model from the plurality of artificial intelligence models into the artificial intelligence engine to support the prediction of the future host system I / O activity.
8. The method according to claim 7, further comprising: Via the artificial intelligence engine, at least two of the multiple artificial intelligence models are concurrently executed to implement at least two artificial intelligence-assisted internal tasks of the storage medium controller.
9. The method according to claim 7, further comprising: Via the artificial intelligence engine, two instances of an artificial intelligence model among the multiple artificial intelligence models are executed in parallel to support online retraining or refinement of the artificial intelligence model.
10. An apparatus comprising: a host interface configured for communicating with a host system; A storage medium for storing data of the host system; a medium interface configured to support access to the storage medium; Artificial intelligence engine; as well as A storage media controller is configured as follows: receiving, via the host interface, a host input / output (I / O) from the host system for accessing the storage medium of the device; providing information describing the host I / O received from the host system to the artificial intelligence engine; receiving, from the artificial intelligence engine, a prediction of future host system I / O activity regarding subsequent accesses to the storage medium by the host system; determining that the device has pending internal I / O for accessing the storage medium; Scheduling a first media I / O for accessing a storage medium, wherein the first media I / O corresponds to the host I / O for accessing the storage medium; as well as Based on the prediction of future host system I / O activity, a second media I / O for storage medium access corresponding to the internal I / O for accessing the storage medium is scheduled, the second media I / O corresponding to the internal I / O being scheduled to avoid contention with: (i) the first media I / O corresponding to the host I / O or (ii) a third media I / O corresponding to a next host I / O issued by the host system.
11. The apparatus of claim 10, wherein the prediction of host system behavior received from the artificial intelligence engine comprises an indication of at least one of: a duration until the host system becomes idle; The duration for which the host system will remain idle; or Parameters related to the next host I / O issued by the host system.
12. The device according to claim 10, wherein: The artificial intelligence engine executes a plurality of artificial intelligence models, the plurality of artificial intelligence models including at least two artificial intelligence models of the plurality of artificial intelligence models, the at least two artificial intelligence models being associated with respective internal tasks implemented by a device-level manager or a flash translation layer of the storage medium; and The storage media controller is also configured to load at least one of the plurality of artificial intelligence models into the artificial intelligence engine before providing the information to the artificial intelligence engine to support the prediction of the future host system I / O activity.
13. The apparatus according to claim 12, wherein the storage medium controller is further configured to: causing the artificial intelligence engine to concurrently execute the at least two artificial intelligence models among the plurality of artificial intelligence models to implement at least two artificial intelligence-assisted internal tasks of the device; or The artificial intelligence engine is caused to execute two instances of an artificial intelligence model among the multiple artificial intelligence models in parallel to support online retraining or refinement of the artificial intelligence model.
14. The apparatus of claim 10, wherein the information describing the host I / O comprises: An indication of the following for at least one of the host I / Os: The event type of the host I / O; the event duration of the host I / O; or The event size of the data associated with the host I / O.
15. A system on chip (SoC), comprising: A media interface for accessing the storage media of the storage system; A host interface for communicating with a host system; Artificial intelligence engine; Hardware-based processors; A memory storing processor-executable instructions that, in response to being executed by the hardware-based processor, implement a storage medium controller to: receiving, via the host interface, a host input / output (I / O) from the host system for accessing a storage medium of the storage system; providing information describing the host I / O received from the host system to the artificial intelligence engine; receiving, from the artificial intelligence engine, a prediction of future host system I / O activity regarding subsequent accesses to the storage medium by the host system; Determining that the SoC has a pending internal I / O for accessing the storage medium; Scheduling a first media I / O for accessing a storage medium, wherein the first media I / O corresponds to the host I / O for accessing the storage medium; as well as Based on the prediction of future host system I / O activity, a second media I / O for storage medium access corresponding to the internal I / O for accessing the storage medium is scheduled, the second media I / O corresponding to the internal I / O being scheduled to avoid contention with: (i) the first media I / O corresponding to the host I / O or (ii) a third media I / O corresponding to a next host I / O issued by the host system.
16. The SoC according to claim 15, wherein, in order to schedule the second media I / O, the storage media controller is further configured to: advance or delay the scheduling performance of the second media I / O based on the prediction of future host system I / O activity to alleviate contention between the second media corresponding to the internal I / O and at least one of: the first media I / O corresponding to the host system I / O, or the third media I / O corresponding to the next host I / O issued by the host system.
17. The SoC of claim 15, wherein the prediction of future host system I / O activity received from the artificial intelligence engine includes an indication of at least one of: a duration until the host system becomes idle; The duration for which the host system will remain idle; or Parameters related to the next host I / O issued by the host system.
18. The SoC according to claim 15, wherein the storage media controller is further configured to: schedule the second media I / O corresponding to the internal I / O based on: said prediction of future host system I / O activity; and Device level parameters of the storage medium for thermal management of the storage medium.
19. The SoC according to claim 15, wherein: The artificial intelligence engine of the SoC executes a plurality of artificial intelligence models, the plurality of artificial intelligence models including at least two artificial intelligence models of the plurality of artificial intelligence models, the at least two artificial intelligence models being associated with corresponding internal tasks implemented by a device-level manager or a flash translation layer of the storage medium; and The storage medium controller is further configured to: causing the artificial intelligence engine to concurrently execute the at least two artificial intelligence models among the plurality of artificial intelligence models to implement at least two artificial intelligence-assisted internal tasks of the SoC; or The artificial intelligence engine is caused to execute two instances of an artificial intelligence model among the multiple artificial intelligence models in parallel to support online retraining or refinement of the artificial intelligence model.
20. The SoC of claim 15, wherein the information describing the host I / O comprises: An indication of the following for at least one of the host I / Os: The event type of the host I / O; the event duration of the host I / O; or The event size of the data associated with the host I / O.
