Systems, methods, and apparatus for node remote memory access

By using the operating system and access library for virtual address translation in a multi-node computing system, and managing the global shared memory through global access tuple tables and distributed agents, the problem of memory access coordination between different nodes is solved, and efficient and secure are achieved. Memory sharing.

CN118656169APending Publication Date: 2024-09-17SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410283776.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-09-14
Filing Date
2024-03-13
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In multi-node computing systems, existing technologies are difficult to effectively manage and coordinate memory access between different nodes, especially when different operating system instances are run between nodes, resulting in low memory access efficiency and insufficient security.

Method used

By running the operating system and access library on the computing node, virtual addresses are converted into physical addresses, and cross-node memory access is achieved through the global access tuple table, combined with the distributed agent process to manage the availability and access rights of global shared memory.

Benefits of technology

It realizes efficient and safe memory access between nodes in a multi-node computing system, allows different nodes to share memory resources, and improves the memory management efficiency and security of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656169A_ABST
    Figure CN118656169A_ABST
Patent Text Reader

Abstract

A computing node in a multi-node computing system includes a local memory, at least one processor, and an access library. The at least one processor runs an operating system that runs a distributed application in a virtual address space. The application includes a process that generates a first memory access request that includes a first virtual address. The access library responds to a first memory access request by: translating a first virtual address to a first physical address; accessing the local memory based on the first physical address including a first indication that the first memory access request is for the local memory; and accessing a global access tuple table based on the first physical address including a second indication that the first memory access request is directed to a memory of the multi-node computing system located on a second computing node remote from the computing node.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority under 35 U.S.C. §119(e) to U.S. Provisional Patent Application No. 63 / 452,431 filed on March 15, 2023 and U.S. Provisional Patent Application No. 63 / 452,078 filed on March 14, 2023, the disclosures of which are incorporated herein by reference in their entirety. In addition, this application is related to U.S. Patent Application No. 18 / 368,556. Technical Field

[0003] The subject matter disclosed herein relates to a multi-node computing system. More specifically, the subject matter disclosed herein relates to a multi-node computing system in which nodes of the system access a global shared memory using load / store commands. Background Art

[0004] Some computing systems, such as large-scale computing systems, multi-node computing systems, supercomputers, etc., may run different operating system (OS) instances at each of one or more nodes of the computing system. Each corresponding OS may manage the resources of the node, including, for example, physical memory resources installed on the node. Some embodiments may implement hardware that may allow one or more nodes to access memory on one or more other nodes using memory access instructions, such as load and store instructions, etc.

[0005] In some embodiments, one or more user space applications may use virtual addresses to access memory. Virtual addresses may involve translating virtual addresses into physical addresses, thereby enabling hardware to store and / or retrieve data from a particular memory location. For example, the translation may be performed using one or more page tables. However, in some embodiments, the page tables managed by the operating system may not be configured to use memory located on a remote node.

[0006] In some embodiments of these large computing systems, an OS can manage resources of a node, and remote access by another OS (or a user process running on another OS) can involve one or more operations to coordinate the remote access. For example, one or more policies can be implemented to determine which OS (local or remote) can allocate and / or release memory, how other OSes can gain access, how error conditions are handled, how the owner of the physical memory and / or one of the remote accessors can remove access, etc. Summary of the invention

[0007] An example embodiment provides a computing node in a multi-node computing system, wherein the computing node may include a local memory, at least one processor, and an access library. At least one processor may be configured to run an operating system. The operating system may be configured to run an application in a virtual address space, wherein the application may be part of a distributed job running on multiple nodes of the multi-node computing system. The application may include a process that generates a first memory access request including a first virtual address. The access library may include a data structure on the computing node, and the access library may be configured to respond to the first memory access request by: converting the first virtual address to a first physical address; accessing the local memory based on the first physical address including a first indication that the first memory access request is for the local memory; and accessing the global access tuple table based on the first physical address including a second indication that the first memory access request is for a memory located on a second computing node of the multi-node computing system away from the computing node. In one embodiment, the first physical address may include a multi-bit address, and the first indication that the first memory access request is for the local memory and the second indication that the first memory access request is for the memory located on the second computing node may include the state of one or more bits of the first physical address. In another embodiment, the local memory may include a first memory space, the first memory space is allocated as a globally shared memory accessible by at least a second computing node of the multi-node computing system located away from the computing node, and the processor may also be configured to run a distributed agent process, the distributed agent process is configured to transmit the availability of at least a portion of the first memory space to at least the second computing node. In another embodiment, the access library may respond to a request to run the application received by the computing node by allocating the first memory space as a globally shared memory accessible by at least one other computing node of the multi-node computing system. In another embodiment, the operating system may include a kernel, the kernel is configured to create a global access tuple table and insert entries into the global access tuple table. In one embodiment, the distributed agent process may be configured to provide the kernel with global access tuple table entry information related to the globally shared memory. In another embodiment, the access library may also be configured to receive a node identification of a second computing node in response to accessing the global access tuple table. In another embodiment, the computing node can be configured to receive a second memory access request from another computing node of the multi-node computing system, wherein the second memory access request may include a global virtual address, and the access library can also be configured to respond to the second memory access request by: converting the second memory access request into a second physical address; and accessing the local memory based on the second physical address.

[0008] An example embodiment provides a multi-node computing system, which may include a plurality of computing nodes communicatively interconnected through a communication network, wherein a first computing node of the plurality of computing nodes may include a local memory, at least one processor, and an access library. The at least one processor may be configured to run an operating system, wherein the operating system may be configured to run an application in a virtual address space, and the application may be part of a distributed job running on a plurality of nodes of the multi-node computing system. The application may include a process that generates a first memory access request including a first virtual address. The access library may include a data structure on the first computing node, and the access library may be configured to respond to the first memory access request by: converting the first virtual address into a first physical address; accessing the local memory based on the first physical address including a first indication that the first memory access request is for the local memory; and accessing the global access tuple table based on the first physical address including a second indication that the first memory access request is for a memory located on a second computing node of the multi-node computing system away from the first computing node. In one embodiment, the first physical address may include a multi-bit address, and the first indication that the first memory access request is for the local memory and the second indication that the first memory access request is for the memory located on the second computing node may include the state of one or more bits of the first physical address. In another embodiment, the local memory may include a first memory space, the first memory space is allocated as a globally shared memory accessible by at least a second computing node of the multi-node computing system located away from the first computing node, and the processor may also be configured to run a distributed agent process, the distributed agent process is configured to transmit the availability of at least a portion of the first memory space to at least the second computing node. In another embodiment, the access library may respond to a request to run the application received by the first computing node by allocating the first memory space as a globally shared memory accessible by at least one other computing node of the multi-node computing system. In another embodiment, the operating system may include a kernel, the kernel is configured to create a global access tuple table and insert entries into the global access tuple table. In one embodiment, the distributed agent process may be configured to provide the kernel with global access tuple table entry information related to the globally shared memory. In another embodiment, the access library may also be configured to receive a node identification of the second computing node in response to accessing the global access tuple table.In another embodiment, the first computing node can be configured to receive a second memory access request from another computing node of the multi-node computing system, wherein the second memory access request may include a global virtual address, and the access library can also be configured to respond to the second memory access request by: converting the second memory access request into a second physical address; and accessing the local memory based on the second physical address.

[0009] An example embodiment provides a method for accessing a globally shared memory in a multi-node computing system, wherein the method may include: running an application in a virtual address space by a processor of a first computing node that is part of the multi-node computing system, wherein the application may be part of a distributed job running on multiple nodes of the multi-node computing system; generating a first memory access request including a first virtual address by a process of the application; converting the first virtual address into a first physical address by an access library, wherein the access library may include a data structure on the first computing node; accessing a local memory on the first computing node based on the first physical address including a first indication that the first memory access request is for local memory; and accessing a global access tuple table on the first computing node based on the first physical address including a second indication that the first memory access request is for memory on a second computing node of the multi-node computing system located away from the first computing node. In one embodiment, the first physical address may include a multi-bit address, and the first indication that the first memory access request is for local memory and the second indication that the first memory access request is for memory located on the second computing node may include the state of one or more bits of the first physical address. In another embodiment, the local memory may include a first memory space, the first memory space is allocated as a globally shared memory accessible by at least a second computing node of the multi-node computing system located away from the first computing node, and wherein the method may further include: running a distributed agent process by the processor, the distributed agent process is configured to transmit the availability of at least a portion of the first memory space to at least the second computing node; in response to a request received by the first computing node to run the application, the access library allocates the first memory space as a globally shared memory accessible by at least one other computing node of the multi-node computing system; the kernel of the operating system of the first computing node creates the global access tuple table; and the kernel inserts an entry into the global access tuple table based on the globally shared memory information from the distributed agent process. In another embodiment, the method may further include: receiving a second memory access request from another computing node of the multi-node computing system, wherein the second memory access request may include a global virtual address; converting the second memory access request into a second physical address by the access library; and accessing the local memory by the access library based on the second physical address. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In the following sections, various aspects of the subject matter disclosed herein will be described with reference to exemplary embodiments shown in the drawings, in which:

[0011] Figure 1 Depicted is an example embodiment of an architecture for a multi-node computing system in accordance with the subject matter disclosed herein;

[0012] Figure 2 Describes additional details of an example embodiment of an architecture for a multi-node computing system in accordance with the subject matter disclosed herein;

[0013] Figure 3 is a flow chart of an example method of setting up a job on an example multi-node computing system according to the subject matter disclosed herein; and

[0014] Figure 4 An electronic device that may be configured as a node in a multi-node computing system according to the subject matter disclosed herein is depicted. DETAILED DESCRIPTION

[0015] In the following detailed description, many specific details are set forth in order to provide a thorough understanding of the present disclosure. However, those skilled in the art will appreciate that the disclosed aspects may be practiced without these specific details. In other instances, well-known methods, processes, components, and circuits are not described in detail to avoid obscuring the subject matter disclosed herein.

[0016] References to "one embodiment" or "embodiment" throughout the specification mean that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment disclosed herein. Therefore, the phrases "in one embodiment" or "in an embodiment" or "according to an embodiment" (or other phrases with similar meanings) that appear throughout this specification may not necessarily all refer to the same embodiment. In addition, specific features, structures or characteristics may be combined in any suitable manner in one or more embodiments. In this regard, as used herein, the word "exemplary" means "used as an example, instance or illustration". Any embodiment described herein as "exemplary" should not be interpreted as necessarily being preferred or advantageous over other embodiments. In addition, specific features, structures or characteristics may be combined in any suitable manner in one or more embodiments. In addition, depending on the context discussed herein, singular terms may include corresponding plural forms, and plural terms may include corresponding singular forms. Similarly, hyphenated terms (e.g., "two-dimensional", "pre-determined", "pixel-specific", etc.) may occasionally be used interchangeably with corresponding non-hyphenated versions (e.g., "two dimensional", "predetermined", "pixel-specific", etc.), and capitalized terms (e.g., "Counter Clock", "Row Select", "PIXOUT", etc.) may be used interchangeably with corresponding non-capitalized versions (e.g., "counter clock", "row select", "pixout", etc.). Such occasional interchangeable usage should not be considered inconsistent with each other.

[0017] In addition, depending on the context of the discussion herein, singular terms may include corresponding plural forms, and plural terms may include corresponding singular forms. It should also be noted that the various drawings (including component drawings) shown and discussed herein are for illustrative purposes only and are not drawn to scale. For example, for clarity, the size of some elements may be enlarged relative to other elements. In addition, if deemed appropriate, reference numerals are repeated in the drawings to indicate corresponding and / or similar elements.

[0018] The terms used herein are only used for the purpose of describing some example embodiments and are not intended to limit the claimed subject matter. As used herein, the singular forms "one", "an" and "the" are intended to also include plural forms, unless the context clearly states otherwise. It will be further understood that when used in this specification, the terms "include" and / or "comprise" specify the presence of the features, integers, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, parts and / or their groups. As used herein, the terms "first", "second", etc. are used as labels for the nouns before them, and do not imply any type of ordering (e.g., space, time, logic, etc.), unless clearly defined as such. In addition, the same reference numerals may be used across two or more figures to refer to parts, components, blocks, circuits, units or modules with the same or similar functions. However, this use is only for the purpose of simplifying the description and facilitating discussion; this does not mean that the construction or architectural details of such components or units are the same in all embodiments, or that such commonly referenced parts / modules are the only way to implement some example embodiments disclosed herein.

[0019] It should be understood that when an element or layer is referred to as being on, "connected to" or "coupled to" another element or layer, it can be directly on, directly connected to or coupled to another element or layer, or there can be intermediate elements or layers. In contrast, when an element is referred to as being "directly on," "directly connected to" or "directly coupled to" another element or layer, there are no intermediate elements or layers. The same reference numerals always refer to the same elements. As used herein, the term "and / or" includes any and all combinations of one or more associated listed items.

[0020] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the subject matter belongs. It will be further understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art, and will not be interpreted in an idealized or overly formal sense unless explicitly so defined herein.

[0021] As used herein, the term "module" refers to any combination of software, firmware, and / or hardware configured to provide the functionality described herein in conjunction with the module. For example, software may be embodied as a software package, code, and / or instruction set or instructions, and the term "hardware" as used in any embodiment described herein may include, for example, components, hardwired circuits, programmable circuits, state machine circuits, and / or firmware storing instructions executed by programmable circuits, either alone or in any combination. Modules may be collectively or individually embodied as circuits forming part of a larger system, such as, but not limited to, an integrated circuit (IC), a system on a chip (SoC), a component, and the like.

[0022] The subject matter disclosed herein provides a multi-node computing system having a global shared memory that can be accessed by nodes of the system using read / write commands. Each node of the multi-node computing system that can each run a different operating system each includes a management structure having one or more page tables that enable access to the global shared memory. The management structure can be provided by one or more modules, each of which can include any combination of software, firmware, and / or hardware configured to provide the functionality of the subject matter disclosed herein.

[0023] In one embodiment, a virtual address within a local operating system as part of a memory access request can be converted by a local page table into a physical address, which may include global information (e.g., one or more bits) for accessing a global shared memory. If the address returned from the local page table is a local memory address, the global information can be ignored, and the remaining physical address can be processed by the local memory controller to access the local memory. If, based on the global information, the returned address is for a memory in the global shared memory, the returned address is a global virtual address. The global virtual address can be converted by a global access tuple table to obtain remote node identification (node ​​ID) information of the global virtual address. An access request (e.g., load / store) is sent to a node corresponding to the node ID information, and the access request is processed as a local access request at the remote node.

[0024] In one embodiment, the management structure includes a distributed agent arrangement that allows multiple nodes, each running a different operating system, to communicate, enforce remote access policies, and / or set up local page tables that translate local virtual addresses to remote global physical addresses.

[0025] In one embodiment, a global shared memory shared between multiple nodes can be registered with a distributed agent associated with each respective node. The agent can be configured to track which nodes have pointers installed in a page table that allows remote access. When access is removed and / or when a process ceases to exist, the distributed agent can update the shared state and / or direct the operating system kernel to remove the page table entry, for example, before the memory is released.

[0026] In one embodiment, accessing physical memory under the management of another operating system may involve one or more considerations related to the security and / or complexity of enabling user space programs to utilize features. The subject matter disclosed herein provides a distributed agent that enables protocols to enforce access rights. In one embodiment, the protocol can provide that the OS is configured as a trusted entity because the OS can be a hardware gatekeeper and / or can control user-level program access to resources. In another embodiment, a provider (such as a manufacturer, supplier, etc.) of a distributed memory sharing system can provide one or more OS kernels enhanced by the protocol. In one embodiment, a system administrator (e.g., at a user site) can confirm that an approved kernel can be loaded onto one or more nodes of the system (e.g., from a provider). Additionally or alternatively, the protocol can be subjected to a verification and validation (V&V) process, which provides, for example, security and / or security for unexpected changes to critical data. In one embodiment, and depending on implementation details, one or more features herein can provide security techniques for allowing remote memory access.

[0027] An example embodiment disclosed herein may make one or more features described herein available to user space applications, which may be achieved by enhancing one or more page tables used by hardware, applications, etc. For example, additional information (e.g., additional bits in an address field) may be used to identify one or more remotely located nodes. In some embodiments, a protocol for establishing remote access may be used to install remote memory page table entries and / or allocate effective local virtual addresses that a program may use.

[0028] The subject matter disclosed herein provides access to global shared memory using load / store instructions that utilize process page tables and a global access tuple (GAT) table to facilitate translation of a global virtual address (GVADDR) to an address that can be used by hardware to access remote memory. In one embodiment, the subject matter disclosed herein may include software and / or firmware for setting up hardware, coordinating access to global shared memory, and implementing necessary security protections.

[0029] Figure 1An example embodiment of an architecture of a multi-node computing system 100 according to the subject matter disclosed herein is depicted. The multi-node computing system 100 may include any number of nodes 101 that may be interconnected by, for example, a high-performance network. In one embodiment, the nodes 101 may be configured as personal computers (PCs), however, other computing devices with computing capabilities different from those of PCs are also possible. That is, the computing capabilities of the nodes are not limited to the computing capabilities of the PCs.

[0030] Some or all nodes 101 of the system 100 may be configured or allocated to compute a specific (distributed) job or task. Each job may involve multiple processes, one or more of which may be allocated to run on a given node 101. Each process of a job may access a (shared) local memory located on the node of the process, and may access a remote shared memory space located on a different node 101 that has also been configured or allocated to work on the job.

[0031] Each node 101 of the multi-node computing system 100 may include one or more central processing units 102, one or more accelerators 103, a memory management unit (MMU) 104, and a local memory 105. The computing environment of the node 101 may be configured so that the CPU 102, the accelerator, and the MMU share a virtual address space or are part of a virtual address space. In one embodiment, the virtual address space may conform to a page-based Sv48 virtual memory system. In another embodiment, the virtual address space may conform to a page-based Sv57 virtual memory system. Other virtual address spaces are possible. In one embodiment, a page in a virtual address space may have a predetermined size.

[0032] The MMU 104 may be configured such that the CPU 102 and the accelerator 103 may access the local memory 105 and the remote shared memory through the MMU 104. In one embodiment, the MMU 104 may be configured to include one or more hardware components and / or memory structures that provide a virtual-to-physical translation structure 107, a translation lookaside buffer (TLB) 108, and / or one or more caches 109. Alternatively, in one embodiment, the TLB 108 and the cache 109 may be data structures configured in the local memory 105 and / or other local memory (not shown) that is part of the node 101. One or more of the TLB 108 and / or the cache 109 may be configured to cache recently used page table entries. Because some of the virtual-to-physical translation structures and functions may be located outside the MMU 104, the MMU 104 may be configured to cache recently used page table entries. Figure 1 Indicated by dotted line.

[0033] The virtual to physical translation structure 107 and TLB 108 operate to translate or convert a virtual address (VADDR) generated by a process running on the node 101 into a physical address (PADDR) by using at least one page table that can be associated with the process. That is, each respective process running on the node 101 can have at least one page table associated with the process. Local virtual addresses can be implemented per process. Alternatively, local virtual addresses can be implemented per node. In one embodiment, the virtual to physical translation structure 107 can be configured to use a process page pointer associated with a page table to translate a virtual address in the virtual space of a process into a physical address of the process.

[0034] The length of the physical address 110 translated or retrieved by the virtual to physical translation structure 107 and the TLB 108 can be at least 48 bits. In one embodiment, the physical address 110 can include a protocol information field, a global information field, and a physical page number (PPN) information field. Each field can include at least as many bits as are used to convey information for a particular field. For example, in one embodiment, the global information field can be a single bit indicating whether the physical address corresponds to a local memory address or a remote memory address. In one embodiment, the global information field can be located, for example, at bit 9 of the physical address. It should be noted that Figure 1 The physical address 110 depicted in FIG. 1 is not drawn to scale and may contain a different number of bits than 63 bits.

[0035] During the translation of the virtual address, a hardware process or a software process may be used to check the global information field. If the global bit of the virtual address indicates that the corresponding physical address is not a global address, that is, the corresponding physical address is a local address, the virtual address is translated into a local physical address (LPADDR) 111 located in the local memory 105, and the access request is completed like a normal local access request. If the global bit of the virtual address indicates that the corresponding physical address is in the remote shared memory, the virtual global address (GVADDR) 112 corresponding to the initial virtual address is directed to the global access tuple (GAT) table 113. The GAT table 113 translates the GVADDR 112 into a global physical address (GPADDR) located in the global shared memory associated with the job. It should be noted that Figure 1 The LPADDR 111 and GBADDR 112 depicted in FIG. 1 are not drawn to scale, and the number of bits each may contain may be different than 55 bits.

[0036] In one embodiment, each of the one or more processes of a job running in node 101 has at least one corresponding GAT table 113. In another embodiment, GAT tables for multiple processes of a job can be used in conjunction with process page pointers. As an example, GAT table 113 is indicated as covering 24GB of shared remote memory. In one embodiment, each entry of the GAT table (in Figure 1 The SC ID may include information related to a remote node identification (SC ID) and a block identification (Block ID). Each corresponding SC ID indicates a specific remote node, and the Block ID indicates a memory block within the remote node. Figure 1 As shown in the example of FIG. 1 , the node SC 0 is the local node 101 , and the remote nodes SC 1 to SC n are configured as a process shared memory associated with a GAT table covering 24 GB.

[0037] It should be understood that Figure 1 , a configuration for only a single job has been depicted, and multiple jobs may be assigned to different nodes of the multi-node computing system 100 simultaneously. For example, node SC 0 may be configured to run one or more processes for each of one or more different jobs, in which case Figure 1 The configuration depicted in for a single job will typically be replicated for each respective job assigned to node SC 0, and each respective job will typically have a different assigned remote node.

[0038] Figure 2 1 depicts additional details of an example embodiment of the architecture of a multi-node computing system 100 in accordance with the subject matter disclosed herein. More specifically, Figure 2 Depicted is a workload manager 201 and three example nodes (node ​​0, node 1, and node n) that have been assigned by the workload manager 201 to run a given job (or application) 202 as an example. Each node of the multi-node computing system 100 runs its own operating system. For each job assigned or assigned to a node, the node can be configured to include an access library 203, a distributed agent 204, and an operating system kernel 205 / driver 206. When multiple jobs are assigned or assigned to a given node, the node can be configured to include an access library 203, a distributed agent 204, and an operating system kernel 205 / driver 206 associated with the job. The access library 203, the distributed agent 204, and the kernel 205 / driver 206 associated with the job can be implemented as modules that provide three major aspects of managing a global shared memory 207 associated with the job so that the job can be run on the multi-node computing system 100. Each node also includes a virtual to physical conversion structure 208 and a local memory 209, similar to the combination of Figure 1The virtual-to-physical conversion structure 107 and the local memory 105 are described.

[0039] The access library 203 includes information that enables the application process and runtime system running on the node to request and use the global shared memory 207 for the job. The access library 203 on the node specifies the pool of local memory 208 that will be reserved for the global shared memory 207 based on the request for memory received from each locally running application process. The access library 203 also allocates memory from the global shared memory to the local process, and the global shared memory can be local or remote. In one embodiment, the access library 203 may include the function and / or structure of the virtual to physical conversion structure 208. The access library 203 may include the physical address of which node of the system stores the virtual address, and operates to query and / or determine whether the physical address is local or remote. That is, the access library can be configured to manage the GAT table associated with the job in conjunction with the kernel 205 / driver 206. When the physical address is determined to be on a remote node, the access library 203 sends a request to the local agent 204. Additionally, the access library 203 may manage the reserved memory pool size 207, including grow and shrink functions, memory distribution and user access functions, and release of the reserved memory pool when a job is completed.

[0040] The distributed agent 204 associated with the job runs on each participating node and coordinates with the workload manager 202. The distributed agent 204 also coordinates the area of ​​the global shared memory 207 between other nodes associated with the job, and may involve allocating local memory 209 to the global shared memory area, and may release the memory when it is no longer needed. The area of ​​the global shared memory 207 is not necessarily a continuous area of ​​the local memory. In addition, the distributed agent 204 provides services to the job application 202 via the access library 203, and works with the local kernel 205 to establish page tables and GAT tables for processes running on the node by providing physical address information of the global shared memory 207. The distributed agent 204 can implement protection policies when different processes of the job operate. In one embodiment, the distributed agent 204 can be configured to operate as one or more user space daemons with special privileges that can be used.

[0041] OS kernel 205 / driver 206 provides the mechanism for local management of local and remote memory resources. Kernel 205 / driver 206 can create one or more GAT tables and insert table entries for the processes participating in the global shared memory pool. In one embodiment, kernel 205 / driver 206 can insert effective remote physical addresses into the process page table, while also removing invalid addresses, refreshing TLB, updating head pointers and managing permission changes. In addition, kernel 205 / driver 206 can manage GAT tables during context switching (context switching). Kernel 205 / driver 206 can also be related to the local memory allocated and released to be used for the contribution to the global shared memory pool 207.

[0042] Figure 3 is a flow chart of an example method 300 for setting up a job on an example multi-node computing system according to the subject matter disclosed herein. The example multi-node computing system may be configured similar to Figure 1 and Figure 2 A multi-node computing system 100 is depicted in FIG.

[0043] At 301, the workload manager 201 receives a request to start a job. The job request may include information about the job and the processes involved in the job. The workload manager 201 determines and allocates resources for the job. In one embodiment, the workload manager 201 contacts each node selected for allocation through a high-performance network and transmits information about the job, the processes involved in the job, and the resources to complete the job. Alternatively, the workload manager 201 can transmit information about the job to the selected node that has been allocated to the job, and the node then manages establishing communications with other nodes allocated to the job.

[0044] The details of the job may include, for example, that the job will be launched on eight nodes and will use a message passing interface (MPI) with two ranks per node for a total of 16 MPI ranks and an allocation of 2GB of global memory per rank for a total of 32GB of global shared memory. The workload manager 201 identifies the eight nodes that will be assigned to the job, and MPI rank 0 requests 32GB of shared memory. It should be understood that other parallel computing message passing techniques may be used.

[0045] At 302, a messaging process is initiated and information related to the job request is transmitted to the distributed agent 204 on each of the eight nodes assigned to the job. The information transmitted to each distributed agent 204 may include information related to each of the seven other nodes assigned to the job.

[0046] At 303, each distributed agent 204 on the node assigned to the job contacts the distributed agents 204 on the other seven assigned nodes and confirms that sufficient memory is available for the job on each node. In addition, each distributed agent 204 directs the kernel 205 to allocate available memory to the job and transmits the block location information to each other distributed agent 204 associated with the job. Each distributed agent 204 returns a pool handle associated with each corresponding allocated memory.

[0047] At 304, MPI rank 0 broadcasts the pool handle to all MPI ranks.

[0048] At 305, each MPI rank (including rank 0) reserves a pool. The reservation request reaches the access library 203 through the distributed agent 204, and after confirming that the process has access rights, the agent 204 directs the kernel 205 to set up the GAT table and page table entries for each process rank.

[0049] At 306, any rank can now allocate memory from the memory pool. The user library can do this without kernel or agent involvement. The virtual address point is valid within any process that has joined the pool reservation.

[0050] At 307, any rank may read / write to the global shared memory using load / store instructions.

[0051] Figure 4 An electronic device 400 that can be configured as a node in a multi-node computing system according to the subject matter disclosed herein is depicted. The electronic device 400 and various system components of the electronic device 400 can be formed by one or more modules. The electronic device 400 may include a controller (or CPU) 410, an input / output (I / O) device 420 (such as but not limited to a keypad, a keyboard, a display, a touch screen display, a 2D image sensor, a 3D image sensor), a memory device 430, an interface 440, a graphics processing unit (GPU) 450, an image processing unit 460, a neural processing unit 470, and a time-of-flight (TOF) processing unit 480 coupled to each other via a bus 490. In one embodiment, the electronic device 400 may be configured to include an access library, a distributed agent, and a kernel / driver according to the subject matter disclosed herein. In one embodiment, the 2D image sensor and / or the 3D image sensor may be part of the image processing unit 460. In another embodiment, the 3D image sensor may be part of the TOF processing unit 480. The controller 410 may include, for example, at least one microprocessor, at least one digital signal processor, at least one microcontroller, etc. The memory 430 may be configured to store command codes to be used by the controller 410 and / or to store user data.

[0052] The interface 440 may be configured to include a wireless interface configured to send or receive data to or from, for example, a wireless communication network using a radio frequency (RF) signal. The wireless interface 440 may include, for example, an antenna. The electronic system 400 can also be used in communication interface protocols of communication systems, such as but not limited to Code Division Multiple Access (CDMA), Global System for Mobile Communications (GSM), North American Digital Communications (NADC), Extended Time Division Multiple Access (E-TDMA), Wideband CDMA (WCDMA), CDMA2000, WiFi, Municipal WiFi (Muni WiFi), Bluetooth, Digital Enhanced Cordless Telecommunications (DECT), Wireless Universal Serial Bus (Wireless USB), Fast Low Latency Access with Seamless Switching Orthogonal Frequency Division Multiplexing (Flash-OFDM), IEEE 802.20, General Packet Radio Service (GPRS), iBurst, Wireless Broadband (WiBro), WiMAX, WiMAX-Advanced, Universal Mobile Telecommunications Service-Time Division Duplex (UMTS TDD), High Speed ​​Packet Access (HSPA), Evolution Data Optimized (EVDO), Long Term Evolution-Advanced (LTE-Advanced), Multi-channel Multipoint Distribution Service (MMDS), fifth generation wireless (5G), sixth generation wireless (6G), etc.

[0053] The embodiments of the subject matter and operations described in this specification may be implemented in digital electronic circuits, or in computer software, firmware or hardware, including the structures disclosed in this specification and their structural equivalents, or a combination of one or more of them. The embodiments of the subject matter described in this specification may be implemented as one or more computer programs, that is, one or more modules of computer program instructions, which are encoded on a computer storage medium for execution by a data processing device or for controlling the operation of a data processing device. Alternatively or additionally, program instructions may be encoded on an artificially generated propagation signal, such as a machine-generated electrical, optical or electromagnetic signal, which is generated to encode information for transmission to a suitable receiver device for execution by a data processing device. The computer storage medium may be a computer-readable storage device, a computer-readable storage substrate, a random or serial access memory array or device, or a combination thereof, or may be included therein. In addition, although a computer storage medium is not a propagation signal, a computer storage medium may be a source or destination of computer program instructions encoded in an artificially generated propagation signal. The computer storage medium may also be, or be included in, one or more separate physical components or media (e.g., multiple CDs, disks, or other storage devices). In addition, the operations described in this specification may be implemented as operations performed by a data processing apparatus on data stored on one or more computer-readable storage devices or received from other sources.

[0054] Although this specification may contain many specific implementation details, the implementation details should not be interpreted as a limitation on the scope of any claimed subject matter, but rather as a description of features specific to a particular embodiment. Certain features described in the context of separate embodiments in this specification may also be implemented in combination in a single embodiment. On the contrary, the various features described in the context of a single embodiment may also be implemented in multiple embodiments individually or in any suitable sub-combination. In addition, although the features may be described above as working in certain combinations and even initially claimed as such, one or more features from the claimed combination may be excluded from the combination in some cases, and the claimed combination may be directed to a sub-combination or a variation of the sub-combination.

[0055] Similarly, although operations are depicted in a particular order in the accompanying drawings, this should not be understood as requiring that the operations be performed in the particular order shown or in sequence, or that all of the operations shown be performed, to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.

[0056] Thus, specific embodiments of the subject matter have been described herein. Other embodiments are within the scope of the appended claims. In some cases, the actions set forth in the claims can be performed in a different order and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing may be advantageous.

[0057] As those skilled in the art will recognize, the innovative concepts described herein can be modified and varied over a wide range of applications. Therefore, the scope of the claimed subject matter should not be limited to any specific exemplary teachings discussed above, but rather is defined by the appended claims.

Claims

1. A computing node in a multi-node computing system, wherein the computing node include: Local storage; at least one processor configured to run an operating system, the operating system configured to run an application in a virtual address space, the application being part of a distributed job running on a plurality of nodes of the multi-node computing system, and the application comprising a process generating a first memory access request comprising a first virtual address; as well as An access library including a data structure on the computing node, the access library being configured to respond to a first memory access request by: converting the first virtual address into a first physical address; accessing the local memory based on the first physical address including a first indication that the first memory access request is for the local memory; and Based on the first physical address including a second indication that the first memory access request is for memory on a second computing node of the multi-node computing system located remote from the computing node, a global access tuple table is accessed.

2. The computing node according to claim 1, in, The first physical address comprises a multi-bit address, and a first indication that the first memory access request is for local memory and a second indication that the first memory access request is for memory located on a second computing node comprises a state of one or more bits of the first physical address.

3. The computing node according to claim 1, in, The local memory includes a first memory space allocated as a globally shared memory accessible by at least a second computing node of the multi-node computing system located remote from the computing node, and The processor is further configured to run a distributed agent process, wherein the distributed agent process is configured to transmit the availability of at least a portion of the first memory space to at least a second computing node.

4. The computing node according to claim 3, in, The access library responds to a request to run the application received by the computing node by allocating a first memory space as a globally shared memory accessible by at least one other computing node of the multi-node computing system.

5. The computing node according to claim 3, in, The operating system includes a kernel configured to create a global access tuple table and insert entries into the global access tuple table.

6. The computing node according to claim 5, in, The distributed agent process is configured to provide the kernel with global access tuple table entry information related to a global shared memory.

7. The computing node according to claim 1, in, The access library is further configured to receive a node identification of a second computing node in response to accessing the global access tuple table.

8. The computing node according to claim 1, in, The computing node is configured to receive a second memory access request from another computing node of the multi-node computing system, the second memory access request including a global virtual address, and The access library is further configured to respond to the second memory access request by: translating the second memory access request into a second physical address; and The local memory is accessed based on the second physical address.

9. A multi-node computing system, include: A plurality of computing nodes, the plurality of computing nodes being communicatively interconnected via a communication network, a first computing node among the plurality of computing nodes comprising: Local storage; at least one processor configured to run an operating system, the operating system configured to run an application in a virtual address space, the application being part of a distributed job running on a plurality of nodes of the multi-node computing system, and the application comprising a process generating a first memory access request comprising a first virtual address; and An access library comprising a data structure on a first computing node, the access library being configured to respond to a first memory access request by: converting the first virtual address into a first physical address; accessing the local memory based on the first physical address including a first indication that the first memory access request is for the local memory; and Based on the first physical address including a second indication that the first memory access request is for memory on a second computing node of the multi-node computing system located remote from the first computing node, the global access tuple table is accessed.

10. The multi-node computing system according to claim 9, in, The first physical address comprises a multi-bit address, and a first indication that the first memory access request is for local memory and a second indication that the first memory access request is for memory located on a second computing node comprises a state of one or more bits of the first physical address.

11. The multi-node computing system according to claim 9, in, The local memory includes a first memory space allocated as a globally shared memory accessible by at least a second computing node of the multi-node computing system located remote from the first computing node, and The processor is further configured to run a distributed agent process, wherein the distributed agent process is configured to transmit the availability of at least a portion of the first memory space to at least a second computing node.

12. The multi-node computing system according to claim 11, in, The access library responds to a request received by a first computing node to run the application by allocating a first memory space as a globally shared memory accessible by at least one other computing node of the multi-node computing system.

13. The multi-node computing system according to claim 11, in, The operating system includes a kernel configured to create a global access tuple table and insert entries into the global access tuple table.

14. The multi-node computing system according to claim 13, in, The distributed agent process is configured to provide the kernel with global access tuple table entry information related to a global shared memory.

15. The multi-node computing system according to claim 9, in, The access library is further configured to receive a node identification of a second computing node in response to accessing the global access tuple table.

16. The multi-node computing system according to claim 9, in, The first computing node is configured to receive a second memory access request from another computing node of the multi-node computing system, the second memory access request including a global virtual address, and The access library is further configured to respond to the second memory access request by: translating the second memory access request into a second physical address; and The local memory is accessed based on the second physical address.

17. A method for accessing a globally shared memory in a multi-node computing system, the method include: executing, by a processor of a first computing node that is part of a multi-node computing system, an application in a virtual address space, the application being part of a distributed job running on a plurality of nodes of the multi-node computing system; generating, by a process of the application, a first memory access request including a first virtual address; converting a first virtual address to a first physical address by accessing a library including a data structure on a first computing node; accessing a local memory on the first computing node based on the first physical address including a first indication that the first memory access request is for local memory; as well as Based on the first physical address including a second indication that the first memory access request is for memory on a second computing node of the multi-node computing system located remote from the first computing node, a global access tuple table on the first computing node is accessed.

18. The method according to claim 17, in, The first physical address comprises a multi-bit address, and a first indication that the first memory access request is for local memory and a second indication that the first memory access request is for memory located on a second computing node comprises a state of one or more bits of the first physical address.

19. The method according to claim 17, in, The local memory includes a first memory space allocated as a globally shared memory accessible by at least a second computing node of the multi-node computing system located remote from the first computing node, The method further comprises: executing, by the processor, a distributed agent process configured to communicate availability of at least a portion of the first memory space to at least a second computing node; In response to a request received by the first computing node to run the application, the access library allocates the first memory space as a globally shared memory accessible by at least one other computing node of the multi-node computing system; The global access tuple table is created by a kernel of an operating system of the first computing node; and An entry is inserted into the global access tuple table by the kernel based on the globally shared memory information from the distributed agent processes.

20. The method according to claim 17, further comprising: include: receiving a second memory access request from another computing node of the multi-node computing system, the second memory access request comprising a global virtual address; The access library converts the second memory access request into a second physical address; as well as The local memory is accessed by the access library based on a second physical address.