Calling the application programming interface to files in hierarchical data format stored in structurally similar storage locations
Patent Information
- Application Number
- DE102024105084
- Authority / Receiving Office
- DE · DE
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-27
- Filing Date
- 2024-02-22
- Publication Date
- 2024-10-31
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
STATE LICENSING RIGHTS This invention was made with government support under Agreement No. H98230-15-D-0022, awarded by the Maryland Office of Procurement. The government has certain rights in this invention. BACKGROUND A distributed system comprises networked computing nodes that coordinate their processing activities to achieve a common goal. For example, a high-performance computing (HPC) cluster is a distributed system that performs parallel processing to solve computationally complex problems. Other examples of distributed systems include database management systems, file storage systems, content delivery systems, software-defined servers (SDS), and cloud computing systems. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram of a distributed system with a Hierarchical Data Format (HDF) file input / output interface that serves API calls to HDF files stored in a fabric-attached memory (FAM) pool, according to an example implementation. Fig. 2 shows the relationship of HDF file objects to FAM data elements, according to an example implementation. Fig. 3 shows a trie structure mapping HDF object identifiers to FAM data element descriptors, according to an example implementation. Fig. 4 is a flowchart illustrating message passing and actions performed by an HDF file I / O interface, according to an example implementation. Fig. 5 is a flowchart illustrating a process performed by a FAM connector to service an HDF file API call, according to an example implementation.Figure 6 is a flowchart illustrating a technique for servicing an API call to perform an operation associated with an HDF object of an HDF file, according to an example implementation. Figure 7 is a block diagram of a device including a processor servicing a request to perform an operation on an HDF file stored in a region of a FAM, according to an example implementation. Figure 8 is an illustration of machine-readable instructions that cause a machine to access a data item corresponding to an HDF object identifier included in a request to perform an operation associated with an HDF file, according to an example implementation. DETAILED DESCRIPTION The following detailed description refers to the accompanying drawings. Wherever possible, the same reference numerals are used in the drawings and the following description to refer to the same or similar parts. However, it is expressly understood that the drawings are for purposes of illustration and description only. Although several examples are described in this document, modifications, adaptations, and other embodiments are possible. Accordingly, the following detailed description does not limit the disclosed examples. Instead, the proper scope of the disclosed examples may be defined by the appended claims. The terminology used herein is for the purpose of describing specific examples only and is not intended to be limiting. The singular forms “a,” “an,” and “the” include the plural forms unless the context clearly indicates otherwise. As used herein, “plural” is defined as two or more than two. As used herein, “another” means at least a second or more. The term “connected,” as used herein, is defined as connected, either directly without any intervening elements or indirectly with at least one intervening element, unless otherwise noted. Two elements may be mechanically, electrically, or communicatively connected through a communications channel, pathway, network, or system. As used herein, the term “and / or” refers to and includes all possible combinations of the listed elements. Although the terms “first,” “second,” “third,” etc.are used here to describe various elements, those elements should not be limited by these terms, as these terms are used only to distinguish one element from another unless otherwise stated or the context indicates otherwise. As used herein, the term "includes" means includes, but is not limited to; the term "including" means includes, but is not limited to; and the term "based on" means based at least in part on. The compute nodes of a distributed system can generate and process large and complex heterogeneous data. For example, a distributed system performing parallel processing can process and generate data representing numeric fields that can have a variety of data types and formats. A distributed system can store its data as files in persistent storage. A Hierarchical Data Format (HDF) file, such as an HDF Format Version 4 (HDF4) file or an HDF Format Version 5 (HDF5) file, supports large, complex, portable, and heterogeneous data. The HDF5 file format specification is available from the HDF Group and is described in the HDF5 File Format Specification Version 3.0, which can be found at https: / / docs.hdfgroup.org / hdf5 / develop / _f_m_t3.html. An HDF file can be thought of as a file system contained and described in a single file. More specifically, the HDF file contains a hierarchy of objects (referred to here as the "HDF hierarchy") that includes two primary object types: group objects and record objects. A group object can be thought of as analogous to a directory (e.g., a UNIX directory), which can host one or more HDF objects (e.g., other group objects, record objects, and other objects) that are descendants of the group object. The beginning, or root, of the HDF hierarchy is a group object, which represents the file. A dataset object stores data items. In addition to group and dataset objects, an HDF file can contain other objects, such as a data type object that describes the type of a data item of a dataset object, and a dataspace object that defines the logical layout or organization of a dataset object's data elements. An attribute object contains metadata that describes properties of a group object, a dataset object, or a data type object. For example, an attribute object can contain metadata that describes a specific group object associated with a specific project or metadata that describes a specific dataset, which is sensor data collected at a specific time and location. In one approach, a distributed system can store an HDF file in hard disk drive (HDD)-based storage, such as storage that includes HDDs attached to the compute nodes or HDDs of a distributed file storage system (e.g., a storage area network (SAN)). In another approach, a distributed system can store an HDF file in a shared storage pool (e.g., a persistent memory pool) of a compute-node-centric architecture. In the compute-node-centric architecture, the compute nodes each have their own local storage, and the compute nodes rely on data copying and message passing between the compute nodes to enable the shared storage pool. The relatively slow access times and low bandwidths of the aforementioned HDF file storage approaches can limit the performance of HDF file input / output (I / O) operations. According to the example implementations described here, HDF files for a distributed system can be stored in a fabric-attached memory (FAM) pool (e.g., a FAM pool that provides persistent storage). The FAM pool corresponds to a memory-centric architecture in which the shared memory is separated or disaggregated from the compute nodes, allowing the shared memory to scale independently of the compute nodes. The compute nodes have a shared view of the FAM pool, and the memory-centric architecture avoids the message-based coordination of memory accesses and other performance-limiting aspects that are part of the compute-node-centric architecture. The FAM pool can include storage servers or nodes that contain storage devices (e.g., non-volatile or persistent storage devices). A FAM pool can be divided into memory regions (hereafter referred to as "FAM regions"), which are blocks of memory. A given FAM region has the same properties throughout (e.g., resilience properties, security properties, or other memory-related properties). The data for a FAM region is divided into units called "data items" (hereafter referred to as "FAM data items"). A FAM data item inherits the properties of the FAM memory region in which the FAM data item is located. For access purposes, FAM memory regions and FAM data items are identified by corresponding FAM descriptors.For example, a FAM descriptor for a region may specify a region identifier (ID), and a FAM descriptor for a particular data item may specify a region identifier (for the region containing the data item) and an offset within the region corresponding to the data item's position within the region. According to some implementations, the FAM pool may be accessed through application programming interface (API) calls, such as the set of API calls defined by the OpenFAM library described in "OpenFAM: A library for programming Fabric-Attached Memory," https: / / openfam.github.io / index.html and available at https: / / github.com / OpenFAM / API. According to example implementations, the data representing an HDF file can be stored in a single FAM region that serves as a container for the HDF file. The HDF objects of the HDF file can be stored as corresponding FAM data elements in the FAM storage region. According to example implementations, a particular compute node of a distributed system can contain an HDF file I / O interface that services HDF API calls generated by executing applications on the compute node and targeting HDF files stored in the FAM pool. For this purpose, the HDF file I / O interface includes an HDF file FAM connector (referred to herein as the "FAM Connector"). According to example implementations, the FAM connector is a terminal, pluggable connector operatively connected to a virtual object (VOL) layer of the HDF file I / O interface. The FAM connector handles FAM pool-specific operations for creating, accessing, modifying, and deleting HDF files stored in the FAM pool. According to example implementations, the VOL is hierarchically one layer below an API layer of the HDF I / O interface. The API layer, the VOL, and one or more connectors other than the FAM connector can be connected to an HDF library (e.g., an HDF5 library such as the one available at https: / / github.com / HDFGroup / hdf5). In response to an HDF API call, the API layer checks the integrity (e.g., semantics) of the API call, and then (assuming the integrity check was successful), the API layer forwards the HDF API call to the VOL, which effectively intercepts all HDF API calls. An HDF API call that opens an HDF file stored in the FAM pool or creates an HDF file in the FAM pool selects an HDF file connector to perform the I / O operations for the API call. VOL can identify the appropriate HDF file connector for a given HDF API call based on the HDF file connector chosen when the specific HDF file referenced by the HDF API call was opened or created. According to sample implementations, for HDF API calls targeting HDF files connected to the FAM pool, VOL invokes a VOL callback that resolves the FAM connector. According to example implementations, in response to a VOL callback, the FAM connector performs one or more Remote Memory Access (RMA) operations to service the HDF API call. An RMA operation is an example of a one-way operation in which a source process (e.g., the process unit corresponding to the FAM connector) controls all aspects of data transfer to a target process (a process unit corresponding to the FAM storage node). In this context, the term "servicing" the HDF API call by the FAM connector refers to the FAM connector performing one or more operations that respond to one or more functions requested by the HDF API call. For example, to service an HDF API call to create a record object in a specific HDF file, the FAM connector can generate one or more RMA operations (e.g.,one or more put operations, one or more get operations and / or one or more allocate operations) before returning control to the VOL. In general, an HDF API call can specify or reference an identifier (here called an "HDF object identifier") for a specific HDF object (e.g., an HDF object to be created, read, modified, or deleted). As described below, the HDF object identifier can specify a specific hierarchical path for the HDF object (according to the HDF hierarchy of the HDF file). According to example implementations, the data and metadata for objects of an HDF file are contained in corresponding data elements of a FAM region (e.g., a data element for a corresponding HDF object), and the FAM region serves as a container for the HDF file.According to example implementations, the FAM data elements also store data representing distributed mapping information, which enables the FAM connector to map an HDF object identifier to a corresponding FAM descriptor for the FAM data element containing the metadata and data for the HDF object. More specifically, according to some implementations, the distributed mapping information is organized in a distributed trie structure containing trie nodes stored in corresponding data elements of the FAM region. In some implementations, each trie node corresponds to a Key-Value Store (KVS). The KVS store is associated with a specific HDF object (hereafter referred to as the "parent HDF object") and contains one or more key-value pairs. Each key-value pair is, in turn, associated with an HDF object that is a child of the parent HDF object. In this way, the key-value pair stores an identifier (the key) for the child HDF object and a descriptor (the value) for the FAM data item that stores the data and metadata (and possibly another KVS) for the child HDF object. A given KVS can contain multiple key-value pairs in case the parent HDF object has multiple children.The FAM connector can traverse the trie structure, which involves accessing multiple data elements (and multiple KVS) to ultimately determine the descriptor of the data element corresponding to an HDF object referenced in an HDF API call. Referring to Fig. 1, as a more specific example, a distributed system 100 may, in accordance with some implementations, include one or more compute nodes 104. In the particular implementation depicted in Fig. 1, the distributed system 100 includes N compute nodes 104 (where N compute nodes 104-1 and 104-N are depicted in Fig. 1). For example, the distributed system 100 may be a distributed system in which the compute nodes 104 coordinate processing activities to achieve a common goal. For example, the distributed system 100 may be a high-performance computing (HPC) cluster, a parallel processing system, a database management system, a file storage system, a content delivery system, a software-defined server (SDS), a cloud-based computing system, or another system.In the context used here, a “compute node” can be a logical or physical unit connected to a single instance of an operating system. For example, a compute node 104 may be all or part of a computing platform. In this context, a "computing platform" refers to an electronic device having a processing resource capable of executing machine-readable instructions (or "software"). A computing platform may be, for example, a server computer (e.g., a blade server, a rack server, or a standalone server), a desktop computer, a notebook computer, a tablet computer, a smartphone, a storage array, a network switch, a wearable computer, a network gateway, or any other electronic device having a processing resource. For example, the compute node 104 may correspond to one or more CPU cores or GPU cores of the computing platform.A more specific example: The computing platform may be a blade server, and the CPU cores of the blade server may be distributed across multiple compute nodes 104. As another example, a compute node 104 may be a host abstraction (e.g., a container, a virtual machine, or other host abstraction) of a single computing platform or a subset thereof. Another example is that a compute node 104 may be a host abstraction across multiple computing platforms (e.g., a single virtual machine hosted across multiple computing platforms, such as a software-defined server). Regardless of its particular form, compute node 104 has associated hardware and software. Specific hardware and software components of a particular compute node 104-1 are illustrated in Fig. 1 and are specifically described herein. Other compute nodes 104 may have similar or different architectures and / or components than compute node 104-1, consistent with other implementations. In the example implementation illustrated in Fig. 1, the hardware may include a collection of physical processors 108 (a single processor or multiple processors). As used herein, a "collection" of elements, such as a collection of physical processors 108, may refer to a single element or multiple elements.A processor 108 may be a microprocessor, a core of a multi-core microprocessor, a microcontroller, a programmable integrated circuit, a programmable gate array, or other hardware processing circuitry. As more specific examples, in accordance with some implementations, the processor 108 may be a CPU core, a collection of CPU cores, a CPU semiconductor package (or "socket"), a GPU core, a collection of GPU cores, or a GPU semiconductor package. The compute node 104 may further include physical memory 112, which may be implemented with a collection of physical storage devices. In general, the storage devices that comprise the physical memory 112, as well as other memory and storage media described and referenced herein, are examples of non-transitory machine-readable storage media. In accordance with example implementations, the machine-readable storage media may be used for a variety of storage and computation-related functions of the compute node 104. As examples, the storage devices may include semiconductor memory, flash memory, memristors, phase-change memory, magnetic memory, a combination of one or more of the aforementioned memory technologies, as well as memory devices based on other technologies. In addition, the storage devices may be volatile memory devices (e.g.,dynamic random access memory (DRAM), static random access memory (SRAM), etc.) or non-volatile storage devices (e.g., flash memory, read-only memory (ROM), etc.), unless otherwise stated herein. Memory 112 may, in accordance with example implementations, store machine-readable instructions 114 that may be executed by one or more processors 108 to provide software components of compute node 104. For example, when executed by processor(s) 108, instructions 114 may cause processor(s) 108 to form one or more application instances 117 (also referred to herein as "applications 117"). In addition, when executed by processor(s) 108, instructions 114 may cause processor(s) 108 to form an operating system instance 118 and one or more HDF file input / output interface instances (referred to herein as "HDF file I / O interfaces 120"). More specifically, a particular application 117 (when running) may provide one or more API requests or "API calls" directed to HDF files, which are processed or served by the HDF file I / O interface 120. To this end, the HDF file I / O interface 120 includes an API layer 124 that performs the initial integrity processing of an HDF API call (e.g., verifying the semantics of the HDF API call). A virtual object (VOL) layer 128 of the HDF file I / O interface 120 intercepts HDF API calls and forwards the calls (via callbacks) to appropriate connectors. As shown in Fig. 1, in accordance with example implementations, the HDF file I / O interface 120 includes a fabric-attached memory (FAM) port 150 and one or more other ports 130. The other ports 130 may be native ports, including passthrough and terminal ports.The FAM connector 150 described here is a terminal connector that serves HDF file API calls directed to HDF files that are to be created or are already stored in a FAM pool 156 of the distributed system 100. As shown in Figure 1, in accordance with example implementations, compute nodes 104 may be connected to FAM pool 156 via FAM interconnect fabric 154. FAM interconnect fabric 154 may be connected to one or more types of communication networks, such as Infiniband or Slingshot Fabric, as well as other network fabrics, or any combination thereof. In accordance with example implementations, the FAM pool 156 includes M storage servers or storage nodes 168 (the example storage nodes 168-1 and 168-M are shown in Figure 1 as examples). The compute nodes 104 may access the FAM pool 156 using remote memory access (RMA) operations 140. As shown at 159, HDF files 160 may be stored as data 157 in the storage nodes 168. Figure 1 shows G HDF files 160 (HDF files 160-1 and 160-G are shown in Figure 1) stored in the FAM pool 156. A particular HDF file 160 may be distributed across multiple storage nodes 168 or stored in a particular storage node 168. In accordance with example implementations, the FAM pool 156 may be persistent storage, and accordingly, the storage devices of the storage nodes 168 may be persistent or non-volatile storage devices. In general, the HDF file 160 has HDF objects 164 that have an HDF hierarchy defined by a hierarchical data model 170. The hierarchical data model 170 includes an initial or root level corresponding to a root HDF object 164 (denoted by "R" in Figure 1). The root HDF object 164 corresponds to the entire HDF file 160. The root object 164 may be linked to one or more child HDF objects 164, such as HDF objects 164-2 and 164-3. The root object 164-1 is linked to the child HDF objects via corresponding links 166. Thus, as shown in Fig. 1, the root object 164-1 can be connected to the HDF object 164-2 via a link 166 and to the HDF object 164-3 via another link 166.The HDF objects 164 subordinate to the root object 164-1 may be connected to one or more other HDF objects 164 via links 166, these HDF objects 164 may be connected to other HDF objects via links 166, and so on. The non-root objects of the HDF file 160 can include, for example, groups, records, data types, and data spaces. A group object can be thought of as a directory that can contain all other HDF objects. A dataset object stores the actual data. The storage of the actual data in a dataset can be either contiguous or chunked, meaning that the data is stored in several smaller chunks. In a chunked layout, each chunk corresponds to a data item, and the chunk information is stored in the dataset's metadata. In general, each object 164 may have associated metadata describing attributes of the object 164. For example, a particular object 164 may be a dataset object, and the associated metadata may describe aspects of the dataset, such as that the dataset was acquired with a particular sensor type, that it was acquired on a particular day, that there are descriptors for portions of the dataset, and so on. As further described herein, the data model 170 of the HDF file 160 does not directly correspond to an organization or layout of the FAM pool 156. To accommodate this difference, mapping information 180 is stored in the FAM pool 156. Specifically, according to example implementations, the FAM connector 150 creates, manages, and uses the mapping information 180 to create, modify, and delete data corresponding to the HDF files 160 and HDF objects 164. More specifically, according to example implementations, the mapping information 180 for a particular HDF file 160 describes a mapping between the HDF file data model 170 and the descriptors of the corresponding set of FAM data elements that store the data and metadata for the HDF file 160.When the FAM connector 150 creates a particular HDF file 160, the FAM connector 150 creates the corresponding mapping information 180 and stores the mapping information 180 with the data corresponding to the HDF file 160 in the FAM pool 156. The FAM connector 150 uses the mapping information 180 to access the FAM data elements corresponding to the respective HDF objects 164. In addition, the FAM connector 150 can modify the mapping information 180 as needed (e.g., when HDF data objects 164 are created or deleted, or when HDF files are created or deleted). According to example implementations, for a particular HDF API call directed to a particular HDF file 160, the API call may reference a particular HDF object 164 of the file 160. To execute the function(s) of the API call directed to the HDF object 164 (to service the API call), the FAM connector 150 uses the mapping information 180 to identify the FAM descriptor corresponding to the referenced HDF object 164. In general, a FAM descriptor refers to a handle that identifies a particular data item of the FAM storage pool 156. The FAM descriptor(s) identified by the mapping information 180 enable the FAM connector 150 to access the FAM data element corresponding to the HDF object 164 (e.g., via one or more RMA operations 140). Fig. 2 shows an example of the organization of data corresponding to an HDF file in the FAM pool 156, in accordance with some implementations. More specifically, Fig. 2 shows the objects of an HDF file 160 and their relationships according to an HDF hierarchy, and Fig. 2 shows the corresponding data elements 208 of the FAM pool 156. In this particular example, an HDF file 160 (as represented by reference number 201) is mapped to a particular region 204-1 of the FAM pool 156. In accordance with example implementations, the HDF file 160 is stored as a collection of data elements 208 contained within a region 204-1 of the FAM pool 156. In this way, in accordance with example implementations, region 204-1 serves as a container for HDF file 160. As illustrated in Figure 2, FAM pool 156 may include one or more other regions (P regions 204, and in particular regions 204-1 and 204-P, are illustrated in Figure 2).The respective region 204 has a number of properties (e.g., security properties and other properties). For the example region 204-1, the HDF file 160 maps a set of data elements 208, including a data element 208-1 corresponding to a root group object 212 of the HDF file 160. Furthermore, in this example, the root group object 212 is connected through the HDF hierarchy for the file 160 by corresponding links 218-1, 218-2, and 218-3 to a data type object 230, a record object 231, and a group object 232, respectively. In other words, in this example, the data type object 230, the record object 231, and the group object 232 are located at a hierarchical level below the top level containing the root group object 212. In addition, the group object 232 in the example shown in Fig. 2 is linked by corresponding links 218-4, 218-5 and 218-6 to a data type object 245, a data record object 246 ora group object 247, which is located at a hierarchical level below the hierarchical level containing the data type object 230, the data record object 231 and the group object 232. According to example implementations, mapping information is stored in region 204-1 in the form of key-value stores (KVS) 214. According to example implementations, each data element 208 stores a KVS 214 corresponding to a node of a trie data structure that maps identifiers for the data elements 208 to corresponding FAM descriptors. In some implementations, this trie structure may, for example, be a radix trie structure. In general, a KVS 214 of a particular data element 208 contains mapping information for the data elements 208 of the next HDF hierarchy level. As a more specific example, a KVS 214 of data element 208-1 stores mapping information for FAM descriptors for data element 208-2 (storing data for data type object 230), data element 208-3 (storing data for data element 231), and data element 208-4 (storing data for group object 232). In accordance with example implementations, the KVS 214 associates or maps a particular FAM descriptor to a corresponding Link 218 identifier. For example, a given HDF API call may reference a particular HDF object of an HDF file by an HDF object identifier. The HDF object identifier may, in turn, be used by a FAM connector to identify a particular next HDF object (from the current HDF object), and based on this identification, the KVS 214 may be used to identify a particular FAM descriptor of the data item containing the data for that HDF object. According to example implementations, the FAM connector may traverse the KVS 214 based on the HDF object identifier to find a particular FAM descriptor for a data element 208 corresponding to the HDF object referenced by the HDF API call.For example, a particular HDF API call may include an HDF object identifier that specifically identifies the dataset object 246. As shown in Figure 2, the data item 208-6 contains the data for the dataset object 246. In order for the FAM connector to derive the specific FAM descriptor of the data item 208-6, the FAM connector may first determine, via a name service, a FAM identifier corresponding to the data item 208-1 containing the root group object 212. The FAM connector may then access a KVS 214 of the data item 208-1 and, based on the HDF object identifier, identify the data item 208-4 (containing the group object 232) as the next data item to be accessed. Continuing the example, the access KVS 214 of data item 208-1 identifies data item 208-4. The FAM connector may then access a KVS 214 of data item 208-4 to determine a FAM descriptor corresponding to a data item containing a record object 246 identified by the HDF object identifier. In this example, data item 208-6 contains data for record object 246, and the KVS 214 of data item 208-4 connects record object 246 to a FAM descriptor for data item 208-6. Furthermore, in this example, record object 246 is the HDF object referenced by the HDF API call. Using the FAM descriptor for data element 208-6, the FAM connector can then access data element 208-6 to access the corresponding data for record object 246. In the example illustrated in Figure 2, each data element 208 contains two KVSs. For example, a particular KVS 214 may correspond to HDF identifiers containing link names, and another KVS 214 may correspond to link identifiers containing link indices. Fig. 3 shows a more detailed illustration 300 of the trie-based mapping in accordance with example implementations. In particular, Fig. 300 shows example data elements 310 that store information (e.g., data and metadata) for corresponding HDF objects 312. In Fig. 3, certain HDF objects 312 are illustrated as "HDF Object A," "HDF Object B," "HDF Object C," "HDF Object D," and "HDF Object E." The HDF objects are arranged in a depicted HDF hierarchy such that HDF Object A is located at a first, topmost level of the depicted hierarchy; HDF Objects B, C, and D are located at the second level of the hierarchy below the first level; and HDF Object E is located at the third level of the hierarchy below the second level. A particular HDF object 312 can be referenced by an HDF object identifier, which is a concatenation of identifiers for the links traversed (according to the HDF hierarchy) to reach the HDF object 312. Figure 3 shows the links 313 between HDF object A and HDF objects B, C, and D. In the example implementation shown in Figure 3, the links are referenced by corresponding names. For example, HDF object A is connected to HDF object D by a corresponding link 313 named "AD." If HDF object A is the root object of the HDF file, the link identifier for that object can be " / ," and the HDF object identifier for HDF object D is, for example, " / A / D," as shown in Figure 344. Using a similar notation, HDF object A is connected to HDF object B by a link 313 "AB", and the HDF object identifier for HDF object B is " / AB".The HDF object B is connected to the HDF object E by a link 343 "BE", and the HDF object identifier for the HDF object E is " / AB / BE", as shown at 340. Continuing the example, data element 310, which contains the data and metadata for HDF object A, also contains a KVS 320 with three entries or key-value pairs 321-1, 321-2, and 321-3, respectively associated with HDF objects B, C, and D. Each key-value pair 321 contains a key 328 and a value 329. Key 328 is an identifier (e.g., a link name) of a link from HDF object A to another HDF object, and the corresponding value 329 is a FAM descriptor of data element 310, which contains information (e.g., data, metadata, and possibly another KVS store) about the other HDF object connected by the link. A more specific example: Key-value pair 321-1 contains a key 328, which is a link identifier for link "AB." As a more specific example, the link identifier may be " / AB." The corresponding value 329 of key-value pair 321-1 is a FAM data element descriptor for FAM data element 310, which contains the information (e.g., data, metadata, and another KVS storage 340) for HDF object B. The KVS 320 also includes a key-value pair 321-2 containing a key 328 that is a link identifier for the link "AC." As a more specific example, the link identifier may be " / AC." The corresponding value 329 of the key-value pair 321-2 is a FAM data element descriptor for the FAM data element 310 that contains the information (e.g., data and metadata) for the HDF object C. In this example, no other HDF object is associated with the HDF object C, and accordingly, the FAM data element descriptor 310 for the HDF object C does not contain any KVS storage. The KVS 320 also includes a key-value pair 321-3 containing a key 328 that is a link identifier for the link "AD." As a more specific example, the link identifier may be " / AD." The corresponding value 329 of the key-value pair 321-3 is a FAM data element descriptor for the FAM data element 310 that contains the information (e.g., data and metadata) for the HDF object D. In this example, no other HDF object is associated with the HDF object D, and accordingly, the FAM data element descriptor 310 for the HDF object D does not contain any KVS storage. The KVS storage 340 of the data element 310 containing the information for the HDF object B contains a key-value pair 341 containing a key 343 that is a link identifier for the link "AD." A corresponding value 345 of the key-value pair 341 is a FAM data element descriptor for the FAM data element 310 containing the information (e.g., data and metadata) for the HDF object E. Assuming the identifier ( / AB / BE) for HDF object E is referenced by a specific HDF API call, the FAM connector can proceed as follows to identify the FAM descriptor for data item 310 corresponding to HDF object E. For this example, assume HDF object A is the root object of the HDF file. The FAM connector accesses key-value pair 321-1 based on key-value pair 321-1, which contains a link identifier (key 328) corresponding to link AB. The value 329 of key-value pair 321-1 identifies the FAM descriptor of data item 310 at the other end of link AB. The FAM connector then accesses the KVS memory and in particular the key-value pair 341, since the key 343 of the key-value pair 341 contains a connection identifier corresponding to the connection BE.More specifically, the FAM connector accesses the corresponding value 345, which is the FAM descriptor for the data element 310 corresponding to the HDF object 312. Although in the above example, the KVS store links connection names (the keys) to FAM data item descriptors (the values), according to further example implementations, a particular KVS may link connection indices (the keys) to FAM data item descriptors (the values). According to some implementations, a particular data item may store data representing one KVS store for connection names and another KVS store for connection indices. In the implementation example shown in Fig. 2, two KVSs are represented per data item. Fig. 4 shows an illustration 400 of communications and actions performed by components of an HDF file I / O interface (e.g., HDF file I / O interface 120 of Fig. 1) in accordance with example implementations for the purpose of processing an HDF API call. More specifically, as shown in Fig. 4, an API layer 124 provides an HDF API call 404 to the VOL 128. The VOL 128 generally intercepts HDF API calls and forwards HDF API calls targeting HDF files of a FAM storage pool to the FAM connector 150. As shown at 408, the VOL 128 maps the HDF API call 404 to the FAM connector 150. For example, the mapping of the HDF API call 404 to the FAM connector 150 may be based on file access properties of the HDF file that were created when the HDF file was created or opened.In this way, for example, the HDF API call 404 may point to an HDF file whose file access properties link the HDF file to the FAM connector 150. Next, VOL 128 passes the forwarded HDF API call to FAM connector 150, as illustrated at 412. In response to the forwarded HDF API call 412, FAM connector 150 begins a process to service the call. More specifically, FAM connector 150 retrieves a FAM region descriptor 414 corresponding to the HDF file and, as illustrated at 420, reads KVS data from the FAM region corresponding to the HDF file to derive a FAM object identifier corresponding to the HDF object referenced by the HDF API call. Reading the KVS data may include one or more RMA accesses 424. In this way, the FAM connector 150 can traverse a trie structure by reading one or more KVS from one or more data elements of the region containing the HDF file. The FAM connector 150 can then proceed to service the HDF API call based on the derived FAM object identifier, as illustrated in 428.The HDF API call service may include one or more additional RMA accesses 432. Fig. 5 is a flowchart 500 illustrating a process performed by a FAM connector (e.g., FAM connector 150 of Fig. 1) for deriving mapping information for an HDF object when processing an HDF API call, according to example implementations. As illustrated in Fig. 5, process 500 includes receiving (block 504) an HDF API call directed to an HDF file connected to the FAM connector and referencing an HDF object. According to block 508, process 500 includes the FAM connector initiating an RMA get operation to FAM to read KVS data from a master data item corresponding to the HDF file. Next, process 500 includes a subprocess 506 for a descriptor for the HDF object. Subprocess 506 includes initiating (block 508) an RMA get operation to FAM to read KVS data from the master data element corresponding to the HDF file. Subprocess 506 performs one or more iterations to obtain the FAM descriptor for the HDF object. Each iteration first involves identifying a descriptor of the next data item from the read KVS data that corresponds to the next link in the HDF object's link path (see block 512). The current data item is then set to the next data item according to block 516. The current data item may correspond to the HDF object referenced in the API call. In this context, the iteration involves determining (decision block 520) whether the current data position corresponds to the HDF object. If not, another iteration is initiated by initiating an RMA get operation to FAM to read the KVS data from the current data item (block 524), and control then returns to block 512. The subprocess 506 for determining the descriptor for the HDF object concludes with the determination at decision block 520 that the current data item corresponds to the HDF object. At this point, the descriptor for the current data item corresponds to the descriptor for the data item containing the data for the HDF object. Process 500 includes servicing the API call, including initiating one or more RMA operations to access the current data item, as shown at block 530. As shown in Fig. 6, in accordance with example implementations, a process 600 includes receiving (block 604) an Application Programming Interface (API) call by a connector associated with a compute node and a Fabric-Attached Memory (FAM). In accordance with some implementations, the FAM may be persistent storage, including persistent or non-volatile storage devices. The call is a request to perform an operation associated with a Hierarchical Data Format (HDF) object of an HDF file. According to some implementations, the HDF file may be an HDF5 file. The HDF object may be, for example, a group object, a record object, or a data type object. Each of these HDF objects may be annotated with attribute metadata. The API call contains or references an HDF object identifier corresponding to an HDF object. The HDF object identifier may, for example,represent a link path. The link path can be represented, for example, by references to one or more link names. Another example is that the link path can be represented by one or more indexes. Process 600 includes, in response to the request, accessing (block 608) by the connector, based on the HDF object identifier, mapping information stored in the FAM. According to some implementations, the mapping information maps a hierarchical data model of the HDF file to data elements stored in a region of the FAM. According to some implementations, the mapping information may be a trie structure. In some implementations, the nodes of the trie structure may be stored in FAM data elements. In some implementations, the trie nodes may be represented by key-value stores.In accordance with some implementations, a given key-value pair of a key-value store may include a key representing a link identifier of the HDF file and the corresponding value representing a descriptor of a FAM data item containing information for the data item to which the link points. In response to the request, process 600 includes using (block 608) the mapping information by the connector to identify a FAM descriptor corresponding to a data item stored in the FAM that corresponds to the HDF object. According to example implementations, identifying the FAM descriptor may include traversing a trie structure, where each node of the trie structure points to another node, and ultimately identifying the FAM descriptor corresponding to the data item containing information for the HDF object referenced by the API call. Process 600 further includes, in response to the request, providing (block 608) the API call by the connector responsive to the identification of the FAM descriptor. According to example implementations, servicing the API call includes performing one or more functions requested by the API call. According to some implementations, servicing the API call may include performing one or more remote memory access (RMA) operations with the FAM. As shown in Figure 7, according to example implementations, a device 700 includes a memory 704 and a processor 708. The memory 704 stores instructions 706. The instructions 706, when executed by the processor 708, cause the processor 708 to receive a request from a virtual object layer to perform an operation on a hierarchical data format (HDF) file. The virtual object layer may be a component of an HDF file I / O interface. The request may be an API call to perform an operation associated with an HDF object of the HDF file. In accordance with some implementations, the HDF file may be an HDF5 file. The HDF object may be, for example, a group object, a dataset object, or a data type object. Each of these HDF objects may be annotated with attribute metadata.The API call can contain or reference an HDF object identifier corresponding to an HDF object. The HDF object identifier can, for example, represent a link path. The link path can be represented, for example, by references to one or more link names. Another example is that the link path can be represented by one or more indexes. The HDF file is stored in a region of fabric-attached memory (FAM). In some implementations, the FAM may be persistent storage containing persistent or non-volatile storage devices. When executed by processor 708, instructions 706 also cause the processor to respond to the request. Responding to the request includes accessing a descriptor stored in the region. Accessing the descriptor may include performing one or more RMA operations (e.g., a get operation, a put operation, or an accumulate operation). The descriptor may correspond to a FAM data item and may include a FAM region ID corresponding to the region and an offset of the FAM data item within the region. The descriptor corresponds to a mapping of a data model of the HDF file to a plurality of data items stored in the region. In accordance with some implementations, the descriptor may be a value of a key-value pair stored in a data item of the region.The key of the key-value store may correspond to a link path of an HDF object referenced in the request. Responding to the request further involves accessing a data item corresponding to the descriptor. Accessing the data item may involve performing one or more RMA operations (e.g., a get operation, a put operation, or an accumulate operation). Referring to Figure 8, according to example implementations, a non-transitory, machine-readable storage medium 800 includes machine-readable instructions 804 that, when executed by a machine, cause the machine to receive a request to perform an operation on a hierarchical data format (HDF) file. The HDF file may be an HDF5 file. The request may be an HDF5 API call. The API call may be handled by an OpenFAM API. The request references a data model of the HDF file, and the HDF file is stored as a plurality of data elements in a fabric-attached memory (FAM). The FAM can contain storage nodes that provide a persistent storage pool, and the HDF file can be stored in the persistent storage pool. When executed by the machine, instructions 706 also cause the machine to access the mapping information stored in the FAM. Accessing the mapping information may involve performing one or more RMA operations with the FAM. The RMA operations may be one-way communications and may include a Get operation, a Put operation, or an Accumulate operation. The mapping information describes the mapping between an HDF object identifier included in the request and a FAM identifier corresponding to the given data item. The FAM identifier corresponding to the given data item may include a region ID and an offset to the data item. When executed by the machine, instructions 804 further cause the machine to access the given data item using the FAM identifier in response to the request. Accessing the given data item using the FAM identifier may include one or more RMA operations. Accessing the given data item may involve traversing a trie structure stored in the region. The trie structure may include KVSs corresponding to the nodes of the trie structure.A specific KVS can be stored in a data element of a FAM region and contain a key corresponding to a link path of an HDF object referenced by the query, as well as a value corresponding to a FAM descriptor of a data element containing another KVS. A specific data element can contain one KVS with leys corresponding to link names and another KVS with keys corresponding to link indices. According to example implementations, the connector includes a pass-through Virtual Object Layer (VOL) connector. A particular advantage is that HDF files can be advantageously stored in a computer system's FAM, which can be efficiently scaled independently of the computer system's compute nodes. According to example implementations, a VOL intercepts the API call and forwards the API call to the connector in response to a file access property of the HDF file. A particular advantage is that HDF files can be advantageously stored in a computer system's FAM, which can be efficiently scaled independently of the computer system's compute nodes. According to example implementations, accessing the mapping information involves accessing a trie data structure distributed across a plurality of data elements stored in the FAM. The trie data structure maps a plurality of HDF identifiers to a plurality of FAM descriptors. A particular advantage is that HDF files can be advantageously stored and retrieved from the FAM of a computer system, which can be efficiently scaled independently of the computer system's compute nodes. According to example implementations, the HDF identifiers comprise one of a plurality of names corresponding to the respective HDF objects, or a plurality of indices corresponding to the respective HDF objects. A particular advantage is that HDF files can be advantageously stored in and retrieved from the FAM of a computer system, which can be efficiently scaled independently of the computer system's compute nodes. According to example implementations, accessing the mapping information includes accessing a first part of the trie structure stored in a specific data item and corresponding to an HDF root object of the HDF file. Accessing the mapping information further includes, based on the first part, identifying a data item storing a second part of the trie structure and accessing the data item storing the second part of the trie structure. A particular advantage is that HDF files can advantageously be stored in and retrieved from a computer system's FAM, which can be efficiently scaled independently of the computer system's compute nodes. According to example implementations, accessing the mapping information involves performing remote memory access (RMA). A particular advantage is that HDF files can be advantageously stored and retrieved from a computer system's FAM, which can be efficiently scaled independently of the computer system's compute nodes. According to example implementations, providing the API call in response to identifying the first FAM descriptor involves accessing the data element. A particular advantage is that HDF files can be advantageously stored in and retrieved from the FAM of a computer system, which can be efficiently scaled independently of the computer system's compute nodes. According to example implementations, accessing the first data element involves initiating a remote memory access (RMA) to access the data element. A particular advantage is that HDF files can be advantageously stored and retrieved from a computer system's FAM, which can be efficiently scaled independently of the computer system's compute nodes. Although the present disclosure has been described with respect to a limited number of implementations, those skilled in the art, having the benefit of this disclosure, will recognize numerous modifications and variations thereof. It is intended that the appended claims cover all such modifications and variations. QUOTES CONTAINED IN THE DESCRIPTION This list of documents submitted by the applicant was generated automatically and is included solely for the convenience of the reader. This list is not part of the German patent or utility model application. The DPMA assumes no liability for any errors or omissions. Cited non-patent literature https: / / docs.hdfgroup.org / hdf5 / develop / _f_m_t3.html
[0005] https: / / openfam.github.io / index.html
[0010] https: / / github.com / OpenFAM / API
[0010] https: / / github.com / HDFGroup / hdf5 available library
[0012]
Claims
A method comprising:receiving, by a connector connected to a compute node and a fabric-attached memory (FAM), an application programming interface (API) call to perform an operation associated with a first hierarchical data format (HDF) object of an HDF file, the API call comprising a first HDF object identifier corresponding to the first HDF object;in response to the call:accessing, by the connector, mapping information stored in the FAM based on the first HDF object identifier;using, by the connector, the mapping information to identify a first FAM descriptor corresponding to a first data item stored in the FAM and corresponding to the first HDF object; andproviding, by the connector, the API call in response to identifying the first FAM descriptor. The method of claim 1, wherein the connector comprises a pass-through Virtual Object Layer (VOL) connector. The method of claim 1 further comprises intercepting the API call by a virtual object layer (VOL) and forwarding the API call to the connector in response to a file access property of the HDF file. The method of claim 1, wherein accessing the mapping information comprises accessing a trie data structure distributed among a plurality of data elements stored in the FAM, the trie data structure mapping a plurality of HDF identifiers to a plurality of FAM descriptors, the plurality of HDF identifiers comprising the first HDF identifier, and the plurality of FAM descriptors comprising the first FAM descriptor. The method of claim 4, wherein the plurality of HDF identifiers comprises either a plurality of names corresponding to respective HDF objects or a plurality of indices corresponding to respective HDF objects. The method of claim 4, wherein accessing the mapping information comprises:accessing a first portion of the trie structure stored in a particular data element of the plurality of data elements corresponding to an HDF root object of the HDF file;based on the first portion, identifying a data element from the plurality of data elements storing a second portion of the trie structure; andaccessing the data element storing the second portion of the trie structure. The method of claim 1, wherein accessing the mapping information comprises performing a remote memory access (RMA) operation. The method of claim 1, wherein servicing the API call in response to identifying the first FAM descriptor comprises accessing the first data element. The method of claim 8, wherein accessing the first data item comprises initiating a remote memory access (RMA) to access the first data item. An apparatus comprising:a processor; andmemory to store instructions that, when executed by the processor, cause the processor to:receive, from a virtual object layer, a request to perform an operation on a hierarchical data format (HDF) file, the HDF file stored in a region of fabric-attached memory (FAM);respond to the request, wherein responding to the request comprises accessing a descriptor stored in the region, the descriptor corresponding to a mapping of a data model of the HDF file to a plurality of data items stored in the region, and accessing a data item corresponding to the descriptor; anduse the information to deliver the request. The apparatus of claim 10, wherein the request identifies an HDF object of the HDF file, and the instructions, when executed by the processor, further cause the processor to identify an HDF object; read key-value store data from a master data item stored in the master data item of the region; identify, based on the key-value store data read from the master data item, a descriptor corresponding to a second data item of the region corresponding to a connection path of the HDF object; and access a data item of the HDF file corresponding to the HDF object based on the descriptor corresponding to the second data item. The apparatus of claim 11, wherein the instructions, when executed by the processor, further cause the processor to initiate a remote memory access (RMA) operation to read the key-value store data from the master data item. The apparatus of claim 11, wherein the second data element corresponds to the data element of the HDF file that corresponds to the HDF object. The apparatus of claim 11, wherein the instructions, when executed by the processor, further cause the processor to:read key-value store data from the second data item using the descriptor corresponding to the second data item to identify a descriptor corresponding to a third data item of the region corresponding to the connection path of the HDF object; andaccess the data item of the HDF file corresponding to the HDF object based on the descriptor corresponding to the third data item. The apparatus of claim 11, wherein the request identifies an HDF object of the HDF file, and servicing the request comprises reading from or writing to a data element of the HDF file corresponding to the HDF object. A non-transitory, computer-readable storage medium for storing machine-readable instructions that, when executed by a machine, cause the machine to:receive a request to perform an operation on a hierarchical data format (HDF) file, the request referencing a data model of the HDF file, the HDF file being stored as a plurality of data items in a fabric-attached memory (FAM);access mapping information stored in the FAM that describes a mapping between an HDF object identifier included in the request and a FAM identifier corresponding to a given data item of the plurality of data items; andin response to the request, access the given data item using the FAM identifier. The storage medium of claim 16, wherein the instructions, when executed by the machine, further cause the machine to access the mapping information and access the given data item in remote memory access (RMA) operations. The storage medium of claim 16, wherein the instructions, when executed by the machine, further cause the machine to access at least one key-value store included in at least one data item of the plurality of data items to access the mapping information. The storage medium of claim 16, wherein the instructions, when executed by the machine, further cause the machine to initiate a plurality of remote memory access (RMA) operations on the FAM to read a plurality of data items stored in the FAM to read the mapping information. The storage medium of claim 19, wherein the mapping information is stored in a trie structure distributed across the plurality of data elements.
Citation Information
Patent Citations
System and method for facilitating efficient management of data structures stored in remote memory
US20230019758A1
