Direct data access between accelerators and storage in a computing environment
Direct access between accelerators and non-volatile storage via an API addresses CPU management inefficiencies, enhancing computational efficiency and scalability in computing environments.
Patent Information
- Application Number
- JP2022522731
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-10-17
- Filing Date
- 2020-10-13
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-10-13
AI Technical Summary
Current computing systems face inefficiencies due to reliance on CPUs for managing accelerator memory and non-volatile storage, leading to high latency, data copy overhead, and wasted synchronization operations, especially in data-intensive applications.
Enabling accelerators like GPUs to access non-volatile storage directly through an application programming interface (API), independent of the host CPU, allowing for direct data access and reducing CPU involvement in the control and data planes.
This approach enhances computational efficiency, reduces resource wastage, and enables scaling without additional CPU costs, improving fault tolerance and locality management.
Smart Images

Figure 0007539202000011 
Figure 0007539202000009 
Figure 0007539202000012
Abstract
Description
[Technical field]
[0001] The present invention relates generally to computing systems, and more particularly to providing direct access between accelerators and non-volatile memory and storage within a computing environment. [Background technology]
[0002] A common type of large scale computing is cloud computing, where resources interact and / or are accessed through a communication system such as a computer network. The resources can be software-provided simulations or emulations of computing devices, storage devices, applications, or other computational devices, services, or combinations thereof running on one or more computing devices, such as servers. For example, multiple servers can communicate and / or share information, and can expand and / or contract across servers depending on the amount of processing power, storage space, or other computing resources, or combinations thereof, required to accomplish a requested task. The term "cloud" alludes to the cloud-shaped appearance of a diagram of interconnectivity among computing devices, computer networks, or other computational devices, or combinations thereof, that interact in such an arrangement. Summary of the Invention
[0003] Various aspects are provided for providing direct access to non-volatile memory within a computing environment. In one aspect, a method is provided for providing direct memory access between accelerators and non-volatile memory storage within a computing environment. One or more accelerators (e.g., graphics processing units "GPUs") are provided that have direct access to the non-volatile storage independent of a host control processing unit ("CPU") on a control path or data path via an application programming interface "(API)."
[0004] In order that the advantages of the present invention may be more readily understood, a more particular description of the invention, briefly described above, will be provided by reference to specific embodiments thereof which are illustrated in the accompanying drawings, in which: With the understanding that these drawings illustrate only typical embodiments of the invention and therefore should not be considered as limiting its scope, the invention will be described and explained with additional features and details through the use of the accompanying drawings in which: [Brief description of the drawings]
[0005] [Figure 1] FIG. 1 is a block diagram illustrating an exemplary computing node, in accordance with an embodiment of the present invention. [Diagram 2] FIG. 2 is an additional block diagram illustrating an exemplary cloud computing environment, according to an embodiment of the present invention. [Diagram 3] FIG. 3 is an additional block diagram illustrating an abstract model layer, according to an embodiment of the present invention. [Figure 4] FIG. 4 illustrates a cloud computing network in which various aspects of the present invention may be implemented. [Figure 5A] FIG. 5A is a block diagram illustrating example operations for providing direct access between an accelerator and non-volatile memory storage in accordance with aspects of the present invention. [Figure 5B] FIG. 5B is a block diagram illustrating example operations for providing direct access between an accelerator and non-volatile memory storage in accordance with aspects of the present invention. [Figure 5C] FIG. 5C is a block diagram illustrating example operations for providing direct access between an accelerator and non-volatile memory storage in accordance with aspects of the present invention. [Figure 6] FIG. 6 is a block diagram illustrating an exemplary accelerator page cache organization and application programming interface (“API”) in which various aspects of the present invention may be implemented. [Figure 7A] 7A-7C are tables illustrating descriptions of application programming interface ("API") calls for use with an accelerator that can implement various aspects of the present invention. [Figure 7B] FIG. 7B is a table illustrating a description of application programming interface ("API") calls for use with an accelerator that can implement various aspects of the present invention. [Figure 7C] FIG. 7C is a table illustrating a description of application programming interface ("API") calls for use with an accelerator that can implement various aspects of the present invention. [Figure 8] 10 is a flow chart diagram illustrating an exemplary method for providing direct access between an accelerator and non-volatile memory storage, in which various aspects of the present invention may be implemented. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0006] Many computer systems now use accelerators (e.g., coprocessors such as Graphical Processing Units (GPUs)) to improve the performance of the system as programs run on both the Central Processing Unit ("CPU") and the accelerator. For example, GPUs may be involved in performing complex mathematical calculations. Also, the parallel structure of accelerators can make them more efficient than CPUs for applications / operations capable of processing large blocks of data.
[0007] Additionally, application data is currently stored in non-volatile memory because the data would be many times too large to store in the GPU / CPU memory. Since non-volatile memory is managed by the CPU, the CPU either manages the GPU memory (through multiple memory copies and kernel calls) or the GPU kernel requests the CPU to provide it with data, which requires synchronization with the CPU and queues up the request. Since GPUs are high output throughput devices, multiple threads execute simultaneously. Since all parallel threads can potentially wait for data, large latencies exist and occur. Once a block is scheduled on the GPU's Streaming Microprocessor (“SM”), the block stays there until it is completed. If a thread is forced to wait for data, execution resources are held and blocks for which the data is available cannot execute. Because of this, GPU resources are managed inefficiently and result in wasted synchronization operations on the host CPU and waiting for data.
[0008] Thus, feeding or providing data to, for example, GPUs with low latency and high bandwidth is a bottleneck in data-intensive applications. Currently, as described above, accelerators, for example GPUs, rely on the host central processing unit ("CPU") to manage the accelerator's memory and rely on non-volatile storage to provide data to the accelerator. This not only adds data copy overhead, but also adds control overhead in the form of synchronization between the high throughput accelerator and the CPU. In addition, this not only requires additional host resources, but given the sub-microsecond access latencies for modern Non-Volatile Memory Express ("NVMe") devices, this adds an order of magnitude of latency and substantially reduces data access bandwidth, as illustrated in Figure 5A below.
[0009] To fully utilize the low latency / high bandwidth of large capacity NVMe devices, various embodiments of the present invention allow accelerators, such as GPUs, to directly access them without involving the host CPU in the control or data plane. In one aspect, one or more accelerators (e.g., graphics processing units "GPUs") are provided with direct access to non-volatile storage independent of the host central processing unit ("CPU") on the control or data path via an application programming interface ("API").
[0010] Thus, various embodiments described herein improve computational efficiency and utilization of available computational units on a GPU, since GPU memory capacity is currently mismatched with the computational power of the GPU. The present invention also frees up CPUs to perform other useful work in parallel, instead of just managing data transfers between the GPUs and storage. The present invention can further provide cost savings and reduced computational power consumption by providing GPU threads with access to terabytes of non-volatile memory, while allowing GPU threads to monitor the GPU memory, instead of relying on the CPU for GPU memory management so that the GPU threads can directly access the data they need.
[0011] Additionally, GPUs can be used even when data does not fit into the GPUs memory, which allows GPUs to be used for more irregular applications that use large amounts of data (large graph processing). The present invention also eliminates synchronization between the CPU and the GPU to fetch more data to the GPU. The prefetch operation described herein also allows the GPU's computational resources to be freed up until the prefetched block is ready in the GPU memory (e.g., the data for the requested data block are in the GPU memory ready for use). Also, due to the fact that there is now less dependency on the CPU, the present invention allows for scaling up and more GPUs without incurring the additional cost of increasing the number of host CPUs. The present invention further improves fault tolerance and management while allowing the use of co-scheduling tasks and I / O on one or more GPUs to avoid congestion and use locality.
[0012] Other examples of various aspects of the illustrated embodiments and corresponding benefits will be described further herein.
[0013] Upfront, it will be understood that although the present disclosure includes a detailed description of cloud computing, implementation of the teachings recited herein is not limited to a cloud computing environment or an Internet of Things (IoT) network environment. Instead, embodiments of the present invention can be implemented in combination with any other type of computing environment now known or later developed. It should be noted that IoT is a new concept that includes computing devices that can be embedded in objects such as appliances and connected through a network. An IoT network can include one or more IoT devices, or “smart devices,” which are physical objects such as appliances that have computing devices embedded therein. While many IoT devices can operate independently, they can also be combined with a control system or distributed control system, such as one that runs in a cloud computing environment. The control system can include an end-to-end flow monitoring mechanism similar to that described herein.
[0014] Cloud computing is a service delivery model for on-demand network access with convenient access to a shared pool of computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be rapidly provisioned and released with minimal administrative effort or interaction with a service provider. The cloud model includes at least five characteristics, at least three service models, and at least four deployment models.
[0015] Its features are as follows:
[0016] On-Demand Self-Service: Cloud consumers are provided with computing capacity, such as server time and network storage, automatically and unilaterally as they need it, without the need for human interaction with the service provider.
[0017] Pervasive Network Access: Capabilities are available over the network and accessed through standard mechanisms that facilitate usage by a variety of thin or thick client platforms (eg, mobile phones, laptops, and PDAs).
[0018] Resource Sharing: A provider's computing resources are shared to provide multiple consumers with different physical and virtualized resources that are dynamically allocated and reallocated as needed, using a multi-tenant model. A sense of location independence exists, in that consumers generally have no control or knowledge of the exact location (e.g., country, state, or data center) of the resources provided, but can specify location at a high level of abstraction.
[0019] Rapid Adaptability: Capabilities can be provisioned quickly and elastically, sometimes automatically, to quickly scale out and quickly release to quickly scale in. To the consumer, the capabilities available for provisioning often appear unlimited and can be purchased at any time and in any quantity.
[0020] Metered Services: Cloud systems automatically control and optimize resource usage by leveraging metering capabilities at several levels of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported, providing transparency to both providers and consumers of the services being used.
[0021] The service model is as follows:
[0022] Software as a Service (SaaS): The functionality provided to the consumer is the use of the provider's applications running on a cloud infrastructure. The applications are accessible from a variety of client devices through thin-client interfaces such as web browsers (e.g., web-based email). The consumer does not manage or control the underlying cloud infrastructure, including the network, servers, operating systems, storage, or individual application functionality, except for limited user-specific application configuration settings.
[0023] Platform as a Service (PaaS): The functionality offered to the consumer is the deployment of applications that the consumer creates or acquires, written using programming languages and tools supported by the provider, onto a cloud infrastructure. The consumer does not manage or control the underlying cloud infrastructure, including networks, servers, operating systems, or storage, but does control the deployed applications and, potentially, the configuration of the application hosting environment.
[0024] Infrastructure as a Service (IaaS): The functionality provided to the consumer is the provision of processing, storage, networking, and other basic computing resources on which the consumer can deploy and run any software, including operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure, but has control over the operating systems, storage, deployed applications, and possibly limited control over select networking components (e.g., host firewalls).
[0025] The layout model is as follows:
[0026] Private Cloud: The cloud infrastructure operates solely for one organization. It can be managed by that organization or a third party and can exist on-premises or off-premises.
[0027] Community Cloud: The cloud infrastructure is shared by several organizations to support a specific community with common interests (e.g., mission, security requirements, policies, and compliance considerations). It can be managed by those organizations or by a third party and can exist on-premises or off-premises.
[0028] Public Cloud: Cloud infrastructure is made available to the public or large industry groups and is owned by organizations that sell cloud services.
[0029] Hybrid Cloud: A cloud infrastructure is a combination of two or more clouds (private, community, or public) that remain unique entities but are bound to each other by standardized or proprietary technologies that allow portability of data and applications (e.g., cloud bursting for load balancing between clouds).
[0030] Cloud computing environments are service-oriented with a focus on statelessness, loose coupling, modularity, and semantic interoperability. At the heart of cloud computing is an infrastructure that includes multiple interconnected nodes.
[0031] 1, a schematic of an example cloud computing node is shown. Cloud computing node 10 is merely one example of a suitable cloud computing node and is not intended to suggest any limitation as to the scope of use or functionality of the embodiments of the invention described herein. Regardless, cloud computing node 10 may implement and / or perform any of the functionality described herein above.
[0032] Cloud computing node 10 includes computer system / server 12, which may operate with numerous other general purpose or special purpose computing system environments or configurations. Known computing systems, environments or configurations, or combinations thereof, suitable for use with computer system / server 12 include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics devices, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments including any of the above systems or devices.
[0033] The computer system / server 12 may be described in the general context of computer system executable instructions, such as program modules, executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system / server 12 may be implemented in a distributed cloud computing environment where tasks are performed by remote processing system devices linked through a communications network or IoT network. In a distributed cloud computing environment, program modules may be located in both local and remote computer storage media, including memory storage devices.
[0034] 1, computer system / server 12 of cloud computing system 10 is shown in the form of a general purpose computing device. Components of computer system / server 12 include, but are not limited to, one or more processors or processing units 16, system memory 28, and a bus 18 that couples various system components, including system memory 28, to processor 16.
[0035] Bus 18 may represent any of several types of one or more bus structures, including a memory bus or memory controller, a peripheral bus, a graphics accelerator port, and a processor or local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro-Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Interconnect (PCI) bus.
[0036] The computer system / server 12 typically includes a variety of computer readable media. Such media can be any available media that can be accessed by the computer system / server 12, including both volatile and nonvolatile media, removable and non-removable media.
[0037] The system memory 28 may include computer readable media such as volatile memory, such as random access memory (RAM) 30, or cache memory 32, or both. The computer server 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be provided for reading from and writing to a non-removable, non-volatile magnetic medium (not shown and typically referred to as a "hard drive"). Although not shown, a removable, non-volatile magnetic disk drive (e.g., a "floppy disk") and an optical disk drive may be provided for reading from and writing to a removable, non-volatile optical disk, such as a CD-ROM, DVD-ROM, or other optical media. In such an example, each may be connected to the bus 18 by one or more media interfaces. As further shown and described below, the memory 28 may include at least one program product having a set (at least one) of program modules configured to perform the functions of an embodiment of the present invention.
[0038] The programs / utilities 40 include a set (at least one) of program modules 42, which by way of example and not limitation, may include an operating system, as well as one or more application programs, other program modules, and program data stored in memory 28. Each of the operating system, one or more application programs, other program modules, and program data, or some combination thereof, may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methodologies of embodiments of the present invention as described herein.
[0039] The computer system / server 12 may also communicate with one or more external devices 14, such as a keyboard, pointing device, display 24; one or more devices that allow a user to interact with the computer system / server 12; or any device (e.g., network card, modem, etc.) that allows the computer system / server 12 to communicate with one or more other computing devices, or combinations thereof. Such communication may occur through an input / output (I / O) interface 22. Additionally, the computer server 12 may communicate with one or more networks, such as a local area network (LAN), a general wide area network (WAN), an IoT network, or a public network (Internet), or combinations thereof, through a network adapter 20. As shown, the network adapter 20 communicates with other components of the computer system / server 12 through a bus 18. It should be understood that other hardware or software or both components, not shown, could be used in combination with the computer system / server 12. Examples include, but are not limited to, microcode, device drivers, redundant processing units, and external disk drive arrays, RAID systems, tape drives, and data archive storage systems.
[0040] 2 illustrates an exemplary cloud computing environment 50. As illustrated, the cloud computing environment 50 includes one or more cloud computing nodes 10 in communication with local computing devices used by cloud consumers, such as a personal digital assistant (PDA) or cellular phone 54A, a desktop computer 54B, a laptop computer 54C, an intelligent ("smart") mattress 54D, or an automobile computer system 54N, or combinations thereof. As used herein, for example, the mattress 54D can be a pad, mat, cushion, foam, or a bed (or portion of a bed), a chaise lounge, a sofa, a recliner, a seat, a chair, or a seat.
[0041] The nodes 10 can communicate with each other. They can be physically or virtually grouped in one or more networks, such as the private, community, public, or hybrid clouds described above, or combinations thereof (not shown). This allows the cloud computing environment 50 to provide an infrastructure, platform, or software-as-a-service for cloud consumers that eliminates the need to maintain resources on local computing devices. It is understood that the types of computing devices 54A-N shown in FIG. 2 are for illustrative purposes only, and that the computing nodes 10 and the cloud computing environment 50 can communicate with any type of computerized device through any type of network, or addressable network connection (e.g., web browser), or both.
[0042]
[0033] Referring now to Figure 3, there is shown a set of functional abstraction layers provided by the cloud computing environment 50 of Figure 2. It should be understood that the components, layers, and functions shown in Figure 3 are intended to be illustrative only, and that embodiments of the present invention are not limited thereto. As shown, the following layers and corresponding functions are provided:
[0043] The device layer 55 includes physical or virtual devices, embedded or stand-alone electronic devices, sensors, actuators, and other objects that perform various tasks within the cloud computing environment 50, or combinations thereof. Each device in the device layer 55 includes the ability to network with other functional abstraction layers so that information received by the device can be provided to it, or information from other abstraction layers can be provided to the device, or both. In one embodiment, the various devices included in the device layer 55 can include a network of entities collectively known as the "Internet of Things" (IoT). Such a network of entities can communicate with each other, collect, and disseminate data to accomplish a wide variety of purposes, as one skilled in the art will recognize.
[0044] The device layer 55, as shown, includes sensors 52, actuators 53, a "learning" thermostat with integrated processing 56, sensors, networked electronics, cameras 57, controllable home outlet outlets / receptacles 58, and controllable electronic switches 59. Other possible devices can include, but are not limited to, various additional sensor devices, networked devices, electronic devices (such as remote control devices), additional actuator devices, so-called "smart" electronic devices such as refrigerators or washers / dryers, and any other object that is interconnected in a wide variety of ways.
[0045] The hardware and software layer 60 includes hardware and software components. Examples of the hardware components may include a mainframe 61, a plurality of servers based on a RISC (reduced instruction set computer) architecture 62, a plurality of servers 63, a plurality of blade servers 64, a plurality of storage devices 65, and a network and networking components 66. In some embodiments, the software components include network application server software 67 and database software 68.
[0046] The visualization layer 70 provides an abstraction layer from which embodiments of virtual entities, described below; virtual servers 71; virtual storage 72; virtual networks 73, including virtual private networks; virtual applications and operating systems 74; and virtual clients 75.
[0047] In one embodiment, the management layer 80 may provide the following functions: A resource provisioning unit 81 provides dynamic acquisition of computing resources and other resources used to perform tasks within the cloud computing environment. A metering and pricing unit 82 provides cost tracking as resources are used within the cloud computing environment and provides billing or charging for the consumption of these resources. In one embodiment, these resources may include application software licenses. A security unit provides identification and authentication of cloud consumers and tasks as well as protection of data and other resources. A user portal unit 83 provides accessibility to the cloud computing environment and system administrators for consumers. A service level management unit 84 provides allocation and management of cloud computing resources to meet required service levels. A service level agreement (SLA) planning and fulfillment unit 85 provides pre-provisioning and acquisition of cloud computing resources as future requests are required according to SLAs.
[0048] The workload layer 90 provides examples of functionality for utilizing a cloud computing environment. Examples of workloads and functionality provided by this layer include mapping and navigation 91; software development and lifetime management 92; virtual classroom instructional delivery 93; data analytics processing 94; transaction processing 95; and, in the context of an exemplary embodiment of the present invention, various workloads and functionality for providing direct access between accelerators and non-volatile memory storage 96. In addition, the workloads and functionality for providing direct access between accelerators and non-volatile memory storage 96 may include operations such as data analytics (including data collection and processing from various environmental sensors), networking, data transmission / reception, virtualization / virtual computing, cloud computing communication, or management functions, or any combination thereof. Those skilled in the art will recognize that the various workloads and functions 96 for providing direct access between the accelerator and non-volatile memory storage can also operate in combination with other portions of various abstraction layers, such as hardware and software 60, virtualization 70, management 80, and other workloads 90 (e.g., data analytics processing 94) to achieve various objectives of the illustrated embodiments of the present invention.
[0049] As previously described, the mechanisms of the present invention provide a novel approach for providing direct access between accelerators and non-volatile memory storage within a computing environment, again provided by a processor. One or more accelerators (e.g., graphics processing units "GPUs") are provided with direct access to the non-volatile storage via an application programming interface ("API"), independent of the host central processing unit ("CPU"), on a control path or data path for performing data read and write operations.
[0050] Turning now to FIG. 4, a block diagram illustrating exemplary functional components 400 according to various features of the illustrated embodiment is shown. In one aspect, one or more of the components, modules, services, applications, or functions shown in FIGS. 1-3 or combinations thereof can be used in FIG. 4. According to various aspects of the invention, a direct data access service 410 is shown including a processing unit 420 ("processor") for performing various computational, data processing, and other functions. In one aspect, the processor 420 and memory 430 can be internal or external to the direct access service 410, or both, and can be internal or external to the computing system / server 12. The direct data access service 410 can be included in the computer system / server 12 as described in FIG. 1.
[0051] In one aspect, computer system / server 12 can be in communication with one or more accelerators, such as GPUs 492 (shown for purposes of example only), and non-volatile memory 490 (e.g., solid state drives, such as “SDD”). In one aspect, GPUs 492 can be included in computer system / server 12 (e.g., located internally or external to computer system / server 12, or both). Additionally, non-volatile memory 490 can be included in computer system / server 12 (e.g., located internally or external to computer system / server 12, or both), or non-volatile memory 490 can be located external to computer system / server 12.
[0052] The processing unit 420 can be in communication with the memory 430. The direct data access service 410 can include a direct data access component 440, a page cache component 450, a prefetch component 460, and an object management component 470, or any combination thereof.
[0053] As one skilled in the art will recognize, the illustration of various functional units in the direct data access service 410 is for illustrative purposes, as the functional units may be located within the direct data access service 410, or may be located within or somewhere in between the distributed computing components, or both.
[0054] In one aspect, the direct data access service 410 provides one or more accelerators with direct access to non-volatile storage via an application programming interface (“API”) on a control path or data path for performing data read and write operations, independent of the host central processing unit (“CPU”).
[0055] The direct data access service 410 maps one or more non-volatile memory express (“NVMe”) queues and registers of the non-volatile memory 490 into the memory address space of one or more accelerators.
[0056] The page cache component 450 uses a page cache managed by one or more accelerators in the memory of one or more accelerators to exploit locality in data. If multiple accelerators (e.g., multiple GPUs) are present, the page cache component 450 can use a distributed page cache managed by one or more accelerators in the memory of the multiple accelerators to exploit locality in data.
[0057] The page cache component 450 copies one or more pages from the non-volatile memory 490 to the page cache and updates the page mapping table. The direct data access service 410 removes the host CPU from the control or data path when copying data from the non-volatile memory 490 to one or more accelerators, such as GPUs 492.
[0058] The prefetch component 460 uses the API to prefetch data and store each computing cycle so that computation and data movement overlap.
[0059] The direct data access service 410, in conjunction with the page cache component 450, or the prefetch component, or both, receives one or more API calls for read or write operations initiated by one or more accelerators and determines that a page cache miss has occurred, copies one or more pages from one or more non-volatile memory express (“NVMe”) data buffers to the page cache, or updates a page mapping table, or any combination thereof.
[0060] An object management component 470 in the host CPU (e.g., internal or external to the computer system server 12 and GPUs 492, or both) can manage object addresses for each object in the non-volatile memory 490 as soon as an application is started. A map of each object identifier (“ID”), object starting block address, and object size can be managed by the host CPU and maintained persistently in a reserved section of the non-volatile memory 490. An operation 800 allocates subranges of pages for each object to one or more accelerators using one or more API calls.
[0061] For example, when an application is started, the host CPU (e.g., computer system / server 12) reads the map using an API call (e.g., a “get_object_map” API call). Instead of passing a pointer to the kernel call, the host CPU (e.g., computer system / server 12) passes the starting block address of each object along with its size. The GPUs 492 can therefore know the location of the desired data structure. The host CPU (e.g., computer system / server 12) can create the space and mapping for the new object using another API call (e.g., a “pcreate” API call). A GPU, such as one of the GPUs 492, is called home for these pages (e.g., a GPU is the home GPU for a page if it owns the page).
[0062] Turning now to FIGS. 5A-5C, a block diagram of exemplary functionality 500 associated with providing direct access between accelerators and non-volatile memory storage is illustrated. As shown, various blocks of functionality are illustrated with arrows to illustrate the relationship of the blocks 500 to one another and to illustrate process flow. In addition, explanatory information associated with each functional block 500 (or "action step" or simply "step") is also shown. As shown, multiple functional blocks may also be considered functional "modules" in the same explanatory sense as previously described in FIGS. 1-4. With the foregoing in mind, the modular blocks 500 may also be incorporated into various hardware or software components of a system to provide direct access between accelerators and to non-volatile memory storage in accordance with the present invention. Many of the functional blocks 500 may run as background processes on various components, either within distributed computing components, on user devices, or elsewhere, generally transparent to the user. Repeated descriptions of similar elements, components, modules, services, applications, or functions, or combinations thereof, in other embodiments described herein are omitted for brevity.
[0063] As previously described, FIG. 5A depicts the GPU 510 relying on a host file system “FS”, e.g., the host CPU 530 and the CPU’s dynamic access memory “DRAM”, to manage the GPU 510’s memory and relying on the non-volatile storage 520 to provide data to the GPU 510. This not only adds data copy overhead, but also control overhead in creating synchronization between the high throughput accelerator and the CPU 530. The host CPU 530 incurs memory management overhead between the GPU 510 and the non-volatile memory 520 in steps 1 and 2. Multiple copies of data can be passed / fed between the non-volatile storage 520 and the CPU 530 in step 3, and between the GPU 510 and the CPU 530 in step 4. Additionally, the GPU threads, blocks, grids may be stalled until data is transferred to the GPU 510, as shown in step 4. It should be noted that although there are attempts to reduce the data copy overhead by performing direct memory access (“DMA”) between the GPU 510 and non-volatile storage 520, this still incurs CPU control / synchronization overhead from the CPU 530.
[0064] However, FIG. 5B describes the operation of using one accelerator (e.g., a single GPU 510) to provide direct access between accelerators and to non-volatile memory storage using various embodiments of the present invention. That is, FIG. 5B illustrates reducing access overhead / latency and allowing GPU threads of GPU 510 to directly access non-volatile storage 520 independent of CPU 530. In one aspect, GPU 510 manages non-volatile storage 520 using a file system "FS" (similar to simple object storage) and influences an NVMe driver (e.g., using GPU Direct) running on GPU 510. CPU 530 is removed from the control path in step 1 and from the data path in step 2. GPU 510 has access to the entire non-volatile storage 520.
[0065] More specifically, Figure 5B illustrates operations for issuing read and write requests from a single accelerator, such as GPU 510, to reduce access overhead / latency and allow GPU threads of GPU 510 to access non-volatile storage 520 directly independent of CPU 530. In one aspect, as illustrated in the following steps, the API enables GPU threads of GPU 510 to read and write data on non-volatile storage 520 using NVMe and without CPU 530 on the control or data path.
[0066] In step 1, the host CPU 530 initializes the interface (e.g., queues and DMA) between the GPU and non-volatile storage 520 (NVMe and DMA mappings, e.g., GPUDirect / DirectGMA). In step 2, the host CPU 530 can start transferring the object map from non-volatile storage 520 to the GPU memory of the GPU 510 so that the GPU threads know where each object is located on non-volatile storage 520. In step 2(1), an entry in the map can be a key-value pair with an object identifier ("ID") as the key and a starting address on non-volatile storage 520 as the value. In step 2(2), the host CPU 530 application can indicate to the GPU 510 which object to use by passing the appropriate object IDs as parameters to the GPU kernel invocation. In step 3, the host CPU 530 can run the GPU kernel as a normal application, e.g., without the object IDs as parameters (from step 2(2)).
[0067] In step 4, a thread of the GPU kernel can read and / or write data to non-volatile storage 520 using one or more provided API calls, such as the provided “pread” and “pwrite” API calls.
[0068] In step 5, when a GPU thread issues a pread API call, the GPU page cache is checked by the GPU thread (e.g., the thread that calls the API and is checked by the GPU thread) to determine whether the requested page is in the GPU memory of GPU 510. In step 5(1), if the page is in the memory of GPU 510, then the data is copied from the page cache to a user-allocated destination buffer (e.g., the destination buffer can be readable and writable by the user and can be user-allocated in GPU memory using one or more APIs). In step 5(2), if the page (or a subset of the pages) is not located in the GPU page cache, the calling GPU thread prepares an NVMe command for the missing page, as in step 5(2)(1), atomically adds the NVMe command to the NVMe submission queue, as in step 5(2)(2), without involving CPU 530 in the control path, as in step 5(2)(2)(1), rings the NVMe doorbell, as in step 5(2)(2), polls the NVMe completion queue until the request is completed, as in step 5(2)(3), copies data between the GPU 510 and the NVMe device directly between each other without CPU 520 intervention, as in step 5(2)(3)(1), copies data from the NVMeIO buffer area to the user-provided buffer, as in step 5(2)(4), and updates the page cache state, as in step 5(2)(5).
[0069] Additionally, in step 6, when a GPU thread issues a pwrite API, the calling thread: updates the page cache state as in step (6)(1), prepares an NVMe command to write the page to non-volatile storage as in step (6)(2), atomically adds this command to the NVMe submission queue as in step 5(2)(3)(1) to ring the NVMe doorbell (e.g., without involving CPU 530 in the control path) as in step (6)(3), polls the NVMe completion queue as in step 5(2)(3)(1) until the request is completed (e.g., data between GPU 510 and the NVMe device is copied directly between each other without CPU 530 intervention) as in step (6)(4), and releases its buffer as in step (6)(7).
[0070] In step 7, the GPU thread can issue pread and pwite API calls, which may be required multiple times, causing steps 1(5) and 1(6) to be repeated, respectively.
[0071] In the case of multiple GPUs, FIG. 5C describes operations for providing direct access between multiple GPUs 510 (e.g., 510 in FIG. 5C describes a group of GPUs) and non-volatile memory storage 520. Before accessing the NVMe, the GPUs 510 each exchange data between each other to see if the data is already present in a different GPU cache.
[0072] In one aspect, an object page is hashed to one or more specific GPUs 510. A GPU 510 may have an object page, where the object page may be located in one or more specific GPUs 510's cache, or where the GPU 510 may be responsible for retrieving the object page, and the GPU 510 may request the page from any GPU in the group of GPUs 510.
[0073] 6, a block diagram 600 illustrates example operations for organizing an accelerator page cache and using an application programming interface (“API”). In one aspect, each device, component, module, operation, or function, or combination thereof, described in FIGS. 1-5A-5C applies or performs one or more of the operations in FIG.
[0074] In step 1, an API call (e.g., a pread API call, or a pwrite API call, or both) is issued to a GPU page cache (“gpcache”) in GPU memory 620. In step 2, upon receipt of one or more API calls (e.g., a pread API call, or a pwrite API call, or both) for data read or write operations initiated by one or more accelerators (e.g., GPU threads 610), a page cache miss is determined to have occurred and an NVMe request to access NVMe device 630 is issued to NVMe submission queue 624. In step 3, NVMe request completion is polled using NVMe device 630 and provided to NVMe completion queue 626.
[0075] In step 4, the page is copied from the NVMe data buffer 628 to the page cache 622 so that the page / object mapping table can be updated.
[0076] In the case of using a single accelerator (e.g., a single GPU in Figure 5B) and providing direct access between accelerators and to non-volatile memory storage, the following operational steps can be performed using a page cache in the GPU memory (e.g., an application / software managed page cache) to exploit data locality.
[0077] In step (1), a page table may be stored in GPU memory 620 (e.g., GPU global memory) that stores a mapping of pages from object data to GPU global memory addresses in GPU memory 620 (e.g., GPU global memory). In step (1)(1), a mapping only exists if a page is located in GPU memory 620.
[0078] In step 2, pages in the page cache are kept in a least recently used ("LRU") list. In step 2(1), upon a pread or write API call, if there are insufficient free pages (e.g., there are not enough free pages), the LRU page can be written back if dirty, unmapped from its previous mapping, and remapped for a new mapping.
[0079] In step 3(1), upon preadAPI call, each requested page may be checked in the page cache. If the page is in the page cache, data may be copied from there to a user-provided buffer, as in step 3(2). In step 3(2), an input / output (“I / O”) request may be generated for a page that is not located in the page cache 622. In step 3(2)(1), a mapping in the page table may be created for the newly requested page.
[0080] In step 4(1), upon pwriteAPI call, pages from the page cache's LRU list may be allocated, data from the user specified buffer may be copied to these pages, and the page mapping for the destination page in the object on non-volatile storage 630 may be updated to point to the appropriate page. In step 4(2), upon completion of the pwriteI / O request, a bit is set in the page table entry for the page(s). In step 4(2)(1), in case of eviction, an additional writeback operation (step 2(2)(4)(1)) may be performed. In step 5), one or more read / write operations may be performed.
[0081] It should be noted that in cases where multiple accelerators are used (e.g., a group of GPUs 510 in FIG. 5C using distributed pages for a multi-GPU computing environment) to provide direct access between the accelerators and to non-volatile memory storage, the following operational steps can be performed to take advantage of locality in the data using a page cache (e.g., an application / software managed page cache).
[0082] In step 1, a GPU (e.g., GPU 510 in FIG. 5) may be assigned to a subrange of pages for an object. The GPU may be called home for these pages. In step 1(1), each GPU is also assigned a unique ID.
[0083] In step 2, home GPU 510 maintains / stores a mapping of those pages for which GPU 510 is designated as home. In step 2(1), a mapping operation may map which other GPUs cache the page. In step 2(2), if the page is located in the GPU's page cache, then the GPU ID and memory address may be maintained in the page cache of that particular GPU in the group of GPUs. In step 2(3), alternatively, if the page is not located in the GPU's page cache, then the page is located in non-volatile storage 520.
[0084] In step 3, if the GPU Memory 620 pread API call cannot locate the requested pages in its local page cache, the GPU Memory 620 issues a request to the home GPU(s) for these pages. In step 3(1), the home GPU can check whether the pages are located in the other GPU's page cache. In step 3(1)(1), if the pages are located in the other GPU's page cache, the GPU Memory 620 can respond with the GPU ID and the address of the page cache so the requesting GPU can copy the page(s) from that GPU's page cache; otherwise, in step 3(1)(2), the home GPU informs the requesting GPU that the pages are in non-volatile memory 620 and allows it to update its mapping table and the requesting GPU issues an I / O request in step 3(2)(1).
[0085] In step 4, if GPU thread 610 performs a pwrite on some pages, GPU thread 610 issues a request to the home GPU(s) for these pages. In step 4(1), the home GPU can check whether other GPUs have the pages to be overwritten in their page caches. In step 4(1)(1), if other GPUs have the pages to be overwritten in their page caches, the home GPU can invalidate all of those pages in their alternate GPUs' page caches and update its own mappings. In step 4(1)(2), if other GPUs do not have the pages to be overwritten in their page caches, the home GPU updates its mapping table by informing the requesting GPU that the pages are in non-volatile memory 620 and that the requesting GPU will update after it finishes the I / O request. In step 4(1)(2)(1), the requesting GPU can issue the I / O request.
[0086] In step 5), threads on each GPU can decide to process requests from other GPUs.
[0087] It should be noted that, as described herein (e.g., in Figures 4-5B-5C), a prefetch operation can be performed using one or more operations. For example, consider the following two operations to perform a prefetch operation:
[0088] In prefetch operation 1, operations for prefetching data and passing it between thread blocks can be performed as follows: In step 1, a GPU, e.g., GPU 510, can use the pread_prefetch API call to launch one or more thread blocks (which may be multiple) that are solely responsible for issuing corresponding I / O requests for the preads of these blocks (hereafter referred to as I / O blocks).
[0089] In step 2, threads in the I / O block can generate and issue NVMe requests. Step 2(1) is all the same operations performed in step 1(5)(2)(1) until step 1(5)(2)(2) for read and write requests from a single GPU can be executed. In step 2(2), the threads do not poll for completion (e.g., asynchronously). In step 2(3), the threads generate a mapping for I / O requests to NVMe command IDs. This mapping is later used by the GPU threads when polling the completion queue to find completion entries for issued commands for prefetching.
[0090] In step 3, when a thread block that actually computes is scheduled and a GPU thread issues a pread API call, it can first check the mapping to find out if the request has already been made, as in step 3(1). If the request has been made / made, the GPU thread polls the NVMe Completion Queue 626 for that NVMe command ID using the consume_prefetch_pread API call, as in step 3(2), otherwise it proceeds, as in step 3(3) (which can be done similarly to steps 1(5)(2)(4) for read and write requests from a single GPU). In this way, one or more cycles of the GPU Streaming Multiprocessors (“SMs”) are not wasted waiting for I / O to complete.
[0091] In prefetch operation 2, the following operations to prefetch data and overlap computation and data movement can be performed as follows: In step 1, each GPU thread block can be multiplexed to perform computations for multiple thread blocks.
[0092] In step 2, a GPU thread block can process multiple thread blocks mapped to it by pipelining the blocks.
[0093] In step 3, the GPU thread block can initiate an I / O request for one block using the pread_prefetch API call.
[0094] In step 4, the GPU thread block can perform computations for another thread block that has data in its buffer.
[0095] In step 5, the GPU thread block can consume data for the I / O request issued for the third block into the block's buffer using the consume_prefetch_pread API call. In step 5(1), the I / O request for steps 3(2)(3) described herein can be overlapped with the computation in step 3(2)(4).
[0096] In step 6, each GPU thread block may perform steps 3(2)(2) through 3(2)(5) to use the distributed page cache for the multi-GPU computing environment until the entire thread block is consumed.
[0097] 7A-7C, a table 700 is shown illustrating an application programming interface ("API") for use with a GPU. In one aspect, each of the devices, components, modules, operations, or functions, or combinations thereof, described in FIGS. 1-6 may use one or more of the API calls of FIGS. 7A-7C.
[0098] The “initialize()” API call can be used to setup GPUDirect / DirectGMA, setup the NVMe queue, and map the state of the NVMe queue in GPU memory and retrieve / get the NVMeNVMeQueue pointer that should be passed to the GPU.
[0099] The “get_object_map()” API call can retrieve the object map in the non-volatile storage so that the GPU thread knows where each object starts in the non-volatile storage. The returned map can be passed to all GPU kernels that are called.
[0100] The “int_create(size_tn_bytes)” API call can create a new object of size “n_bytes” in non-volatile storage and add the new object to the object map. The object ID can be returned.
[0101] “size_t pread(int obj_id,size_t offset_t n_bytes,char* buffer)” can be an API call to read “n_bytes” number of bytes starting at the specified “offset” in the object with object ID “obj_id” on non-volatile storage and store the read data in a user-provided buffer. That is, the object ID (e.g., “obj_id”) can be a unique identifier for the object. Since each object stored in non-volatile memory can have a unique identifier, it can be used to identify the object when using the general API like pread. The object ID (e.g., “obj_id”) can be a file descriptor or a file path.
[0102] The “int pread_prefetch(int obj_id, size_t offset, size_t n_bytes)” API call issues an IO request for pread and sets up a mapping between the I / O request and the NVMe command ID.
[0103] The "size_t consume_prefetch_pread(int ID, char* buffer, size_t n_bytes)" API call waits until the specified command is completed and the result in the specified buffer is consumed.
[0104] The “sze_t pwrite(int obj_id, size_t offset, size_t n_bytes,char* buffer)” API call can write “n_bytes” number of bytes starting at an offset within the object with object ID “obj_id” on non-volatile storage.
[0105] The "flush()" API call can clean up old entries waiting in the NVMe queue until all NVMe write commands have finished.
[0106] Referring now to FIG. 8, a method 800 for providing direct access between accelerators (e.g., graphics processing units “GPUs”) and non-volatile memory storage in a computing environment is illustrated. In one aspect, any of the devices, components, modules, operations, or functions described in FIGS. 1-7, or any combination thereof, may also apply or perform one or more of the operations or actions of FIG. 8. The function 800 may be implemented as a method executed as instructions on a machine, where the instructions are contained on at least one computer-readable medium or one non-transitory machine-readable recording medium. The function 800 may begin at block 802.
[0107] The one or more accelerators may provide direct access to the non-volatile storage via an application programming interface (“API”) on a control path or a data path, independent of a host central processing unit (“CPU”), to perform data read and write operations at block 804. The function 800 may end as at block 806.
[0108] In one aspect, in combination with at least one block of FIG. 8, or a portion thereof, or both, the operations 800 can include one or more of each of the following: The operations 800 can map one or more non-volatile memory express (“NVMe”) queues and registers within the memory address space of one or more accelerators. The operations of 800 can use a page cache managed by one or more accelerators in one or more memories to exploit data locality, or can use a distributed page cache managed by one or more accelerators in the memories of multiple accelerators to exploit data locality, or can use both.
[0109] The operations of 800 can copy one or more pages from non-volatile storage to a page cache and can update a page mapping table. The operations of 800 can remove the host CPU from the control path or data path when copying data from non-volatile storage to one or more accelerators. The operations of 800 can use an API to pre-fetch data and overlap computation and data movement to save computation cycles. Upon receiving one or more API calls for a read or write operation initiated by one or more accelerators, the operations of 800 can determine that a page cache miss has occurred and can copy one or more pages from one or more non-volatile memory express (“NVMe”) data buffers to the page cache, update the page mapping, or a combination thereof.
[0110] The 800 operation can receive an object address for each object in non-volatile storage when an application is started. A map of each object's identifier ("ID"), object start address, and object size can be managed by the host CPU and kept persistent in a reserved section of non-volatile storage. The 800 operation can assign sub-ranges of pages for each object to one or more accelerators using one or more APIs.
[0111] The present invention may be a system, a method, a computer program product, or a combination thereof. The computer program product may include a computer-readable recording medium or media having computer-readable program instructions thereon for causing a processor to perform features of the present invention.
[0112] A computer readable recording medium may be a tangible device capable of holding and storing a plurality of instructions for use by an instruction execution device. A computer readable medium may be, for example, but not limited to, an electrical recording device, a magnetic recording device, an optical recording device, an electro-magnetic recording device, a semiconductor recording device, or any suitable combination thereof. More specific examples of computer readable recording media include the following: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a punch card, or a mechanically encoded device having protruding structures within a groove having instructions recorded therein, and any suitable combination thereof. As used herein, a computer-readable recording medium is not to be construed as a transitory signal per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves such as wave guides or other communications media (e.g., light pulses passing through fiber optic cable), or electrical signals communicated through wires.
[0113] The computer-readable programs described herein can be downloaded from a computer-readable recording medium into each computing / processing device, or can be downloaded to an external computer or external recording device via a network, such as the Internet, a local area network (LAN), a wide area network (WAN), or a wireless network, and combinations thereof. The network can include copper cables, fiber optics, wireless networks, routers, firewalls, switches, gateway computers, and edge servers, or combinations thereof. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and transfers the computer-readable program instructions into a computer-readable recording medium in each computing / processing device for storage.
[0114] The computer readable program instructions for carrying out the operations of the present invention can be either source code or object code written in any combination of programming languages, including assembler instructions, instruction set architecture (ISA) instructions, machine language instructions, machine dependent instructions, microcode, firmware instructions, state setting data, configuration data for an integrated circuit, or one or more conventional procedural programming languages, such as Smalltalk®, object oriented programming languages such as C++, the “C” programming language, or similar programming languages. The computer readable program instructions can be executed entirely on the user computer, partially on the user computer as a stand-alone software package, partially on the user computer and partially on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer can be connected to the user computer through any type of network, including a local area network (LAN), a wide area network (WAN), or the connection can be to an external computer (e.g., through an Internet service provider). In some embodiments, computer readable program instructions may be executed by electrical circuitry including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), and state information of the computer readable program instructions may be used to personalize the electrical circuitry to perform features of the present invention.
[0115] Aspects of the invention described herein have been described with reference to flowchart instructions and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that any combination of flowchart illustrations and / or block diagrams and blocks in the flowchart illustrations and / or block diagrams can be implemented by computer readable program instructions.
[0116] Computer-readable program instructions may be provided to a general-purpose or special-purpose computer or other programmable data processing device to generate a computer processor or machine that, when executed by the computer processor or other programmable data processing device, generates means for implementing the functions / operations specified in the block or blocks of the flowcharts and block diagrams, or combinations thereof. These computer-readable program instructions that direct a computer, programmable data processing device, or other device, or combinations thereof, to function in a particular manner may also be stored on a computer-readable recording medium, and the computer-readable recording medium having instructions stored therein constitutes an article of manufacture containing instructions that implement aspects of the functions / operations specified in the block or blocks of the flowcharts and block diagrams, or combinations thereof.
[0117] The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device and cause a computer implemented process to perform a series of operational steps on the computer, other programmable apparatus, or other device to implement the functions / acts specified in the blocks of the flowcharts and block diagrams or in a combination thereof.
[0118] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and possible implementation operations of systems, methods, and computer program products according to various embodiments of the present invention. In this respect, the flowcharts or block diagrams may represent modules, segments, or portions of instructions, which include one or more executable instructions for implementing a particular logical function(s) (or functions). In some alternative implementations, the functions described in the blocks may be performed other than as illustrated. For example, two blocks shown in succession may be performed in a manner that is actually performed as one step, may be performed simultaneously, substantially simultaneously, partially or completely overlapped in time, or the blocks may be performed in reverse order, depending on the functions involved. It is also noted that the illustration of the blocks in the block diagrams and / or the illustration of the flowcharts or combinations thereof may be implemented by a system based on special purpose hardware that performs a particular function or operation or performs specific purpose hardware and computer instructions.
Claims
1. 1. A method for providing direct access to non-volatile storage in a computing environment by a processor, comprising: Providing direct access to said non-volatile storage, independent of a host central processing unit (CPU) on a control path or a data path, via an application programming interface (API) to one or more accelerators to perform read and write operations on data of objects. Including, the host CPU initiates a transfer of an object map from the non-volatile storage to the one or more accelerators; the object map identifying the objects on the non-volatile storage; method.
2. further mapping one or more non-volatile memory express "NVMe" queues and registers into the memory address space of the one or more accelerators. The method of claim 1 , comprising:
3. Further, using a page cache managed by the one or more accelerators in the memory of the one or more accelerators to utilize locality in the data. The method of claim 1 , comprising:
4. Further, using a distributed page cache managed by the one or more accelerators in the memory of the one or more accelerators to utilize locality in the data. The method of claim 1 , comprising:
5. moreover, copying one or more pages from the non-volatile storage to a page cache and updating a page mapping table; or removing the host CPU from the control path or the data path when copying the data from the non-volatile storage to the one or more accelerators. The method of claim 1 , comprising:
6. Further, using the API to pre-fetch the data and to save computation cycles by overlapping computation and the movement of the data. The method of claim 1 , comprising:
7. moreover, determining that a page cache miss occurs upon receipt of one or more APIs for the read operation or the write operation initiated by the one or more accelerators; Copying one or more pages from one or more non-volatile memory express "NVMe" data buffers to a page cache; and Updating the page mapping table The method of claim 1 , comprising:
8. A method for providing direct access to non-volatile storage in a computing environment by a processor, comprising: providing direct access to said non-volatile storage via an application programming interface ("API") to one or more accelerators, independent of a host central processing unit ("CPU") on a control path or a data path, for performing data read and write operations; Mapping one or more non-volatile memory express "NVMe" queues and registers into the memory address space of the one or more accelerators. A method comprising:
9. A method for providing direct access to non-volatile storage in a computing environment by a processor, comprising: providing direct access to said non-volatile storage via an application programming interface ("API") to one or more accelerators, independent of a host central processing unit ("CPU") on a control path or a data path, for performing data read and write operations; Using the API to pre-fetch the data and to save computation cycles by overlapping computation and the movement of the data. A method comprising:
10. A method for providing direct access to non-volatile storage in a computing environment by a processor, comprising: providing direct access to said non-volatile storage via an application programming interface ("API") to one or more accelerators, independent of a host central processing unit ("CPU") on a control path or a data path, for performing data read and write operations; determining that a page cache miss occurs upon receipt of one or more APIs for the read operation or the write operation initiated by the one or more accelerators; Copying one or more pages from one or more non-volatile memory express "NVMe" data buffers to a page cache; and Updating the page mapping table A method comprising:
11. 1. A system for providing direct access to non-volatile storage, comprising: One or more computers having executable instructions that, when executed by the system, cause the system to: Providing direct access to said non-volatile storage, independent of a host central processing unit (CPU) on a control path or a data path, via an application programming interface (API) to one or more accelerators to perform read and write operations on data of objects. Run the command, the host CPU initiates a transfer of an object map from the non-volatile storage to the one or more accelerators; the object map identifying the objects on the non-volatile storage; Computer system.
12. The executable instructions map one or more non-volatile memory express "NVMe" queues and registers within a memory address space of the one or more accelerators. The system of claim 11.
13. The executable instructions use a page cache managed by the one or more accelerators in the memory of the one or more accelerators to utilize locality in the data. The system of claim 11.
14. The executable instructions use a distributed page cache managed by the one or more accelerators in the memory of the one or more accelerators to utilize locality in the data. The system of claim 11.
15. The executable instructions include: copying one or more pages from the non-volatile storage to a page cache and updating a page mapping table; or removing the host CPU from the control path or the data path when copying the data from the non-volatile storage to the one or more accelerators. The system of claim 11 , comprising:
16. The executable instructions include using the API to prefetch the data and to save computation cycles by overlapping computation and the movement of the data. The system of claim 11 , comprising:
17. The executable instructions include: determining that a page cache miss occurs upon receipt of one or more APIs for the read operation or the write operation initiated by the one or more accelerators; Copying one or more pages from one or more non-volatile memory express "NVMe" data buffers to a page cache; and Updating the page mapping table The system of claim 11 , comprising:
18. A system for providing direct access to non-volatile storage, comprising: One or more computers having executable instructions that, when executed by the system, cause the system to: providing direct access to said non-volatile storage via an application programming interface ("API") to one or more accelerators, independent of a host central processing unit ("CPU") on a control path or a data path, for performing data read and write operations; Mapping one or more non-volatile memory express "NVMe" queues and registers within the memory address space of the one or more accelerators. Execute the Computer system.
19. A system for providing direct access to non-volatile storage, comprising: One or more computers having executable instructions that, when executed by the system, cause the system to: providing direct access to said non-volatile storage via an application programming interface ("API") to one or more accelerators, independent of a host central processing unit ("CPU") on a control path or a data path, for performing data read and write operations; Using the API to pre-fetch the data and to save computation cycles by overlapping computation and the movement of the data. Execute the Computer system.
20. A system for providing direct access to non-volatile storage, comprising: One or more computers having executable instructions that, when executed by the system, cause the system to: providing direct access to said non-volatile storage via an application programming interface ("API") to one or more accelerators, independent of a host central processing unit ("CPU") on a control path or a data path, for performing data read and write operations; determining that a page cache miss occurs upon receipt of one or more APIs for the read operation or the write operation initiated by the one or more accelerators; Copying one or more pages from one or more non-volatile memory express "NVMe" data buffers to a page cache; and Updating the page mapping table Execute the Computer system.
21. A computer program product for causing a computer to execute the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
System to maintain low-cost cache coherency for accelerators
JP2012181860A
Memory sharing via Unified Memory Architecture
JP2015524979A
Memory controller, storage device, data transfer system, data transfer method, and data transfer program
JP2016170696A
Storage system and host storage drive thereof and data storage method
JP2019175445A
Data migration methods, hosts, and solid-state disks
JP2020501249A
