This invention relates to shared multi-node storage systems, and more particularly to coherent caching of objects in a shared, global flash memory.
Demand for computer disk storage has increased sharply in the last decade. Computer hard-disk technology and the resulting storage densities have grown rapidly. Despite application-program bloat, a substantial increase in web sites and their storage requirements, and wide use of large multimedia files, disk-drive storage densities have been able to keep up. Disk performance, however, has not been able to keep up. Access time and rotational speed of disks, key performance parameters in many applications, have only improved incrementally in the last 10 years.
Web sites on the Internet may store vast amounts of data, and large web server farms may host many web sites. Storage Area Networks (SANs) are widely used as a centralized data store. Another widespread storage technology is Network Attached Storage (NAS). These disk-based technologies are now widely deployed but consume substantial amounts of power and can become a central-resource bottleneck. The recent rise in energy costs makes further expansion of these disk-based server farms undesirable. Newer, lower-power technologies are desirable.
Adding second database 16′ increases the power consumption, since a second set of disks must be rotated and cooled. Operating the motors to physically spin the hard disks and run fans and air conditioners to cool them requires a substantially large amount of power.
It has been estimated (by J. Koomey of Stanford University) that aggregate electricity use for servers doubled from 2000 to 2005 both in the U.S. and worldwide. Total power for servers and the required auxiliary infrastructure represented about 1.2% of total US electricity consumption in 2005. As the Internet and its data storage requirements seem to increase exponentially, these power costs will ominously increase.
Flash memory has replaced floppy disks for personal data transport. Many small key-chain flash devices are available that can each store a few GB of data. Flash storage may also be used for data backup and some other specialized applications. Flash memory uses much less power than rotating hard disks, but the different interfacing requirements of flash have limited its use in large server farms. The slow write time of flash memory complicates the coherency problem of distributed databases.
What is desired is a large storage system that uses flash memory rather than hard disks to reduce power consumption. A flash memory system with many nodes that acts as a global yet shared address space is desirable. A global, shared flash memory spread across many nodes that can coherently share objects is desirable.
The present invention relates to an improvement in global, shared flash memory systems. The following description is presented to enable one of ordinary skill in the art to make and use the invention as provided in the context of a particular application and its requirements. Various modifications to the preferred embodiment will be apparent to those with skill in the art, and the general principles defined herein may be applied to other embodiments. Therefore, the present invention is not intended to be limited to the particular embodiments shown and described, but is to be accorded the widest scope consistent with the principles and novel features herein disclosed.
The inventors have realized that power consumption can be dramatically reduced by replacing rotating hard disks with flash memory. The flash memory can be distributed across many physical nodes, and each node can have a processor that can process user requests and system-management threads.
Dynamic-random-access memory (DRAM) on each of the physical nodes can cache data or objects that are normally stored in flash memory. Coherency among objects in flash and in DRAM can be ensured by a Sharing Data Fabric (SDF) middleware layer. SDF includes an interface for communications between high-level programs and lower-level hardware controllers and their software and firmware drivers. SDF is accessible by high-level application programs using an applications-programming interface (API). Communication between nodes to ensure coherency is performed by SDF threads.
The DRAM cache may hold copies of objects stored in the local node's flash memory, or copies of flash objects stored in another node's flash memory. Global caching is achieved by the SDF, which enables the local DRAM cache to store copies of objects from other nodes. Objects can reside anywhere in a shared, global address space. The SDF copies objects to DRAM caches on any node while ensuring consistency.
This distributed caching of flash is extremely useful since a process such as a web server running on one node's processor may access data stored on any of the nodes. The system can be scaled up by adding nodes. Normally, adding nodes slows a system down, since bottlenecks may occur to data stored in just one location on a remote node, such as shown on
While DRAM 22, 22′ stores transient copies of objects, the objects are more permanently stored in flash memory 24, 24′. Objects remain in flash memory 24, 24′ and are copied to caches in DRAM 22, 22′ in response to access requests by programs running on processors 18, 18′.
Sharing data fabric (SDF) 20 is a middleware layer that includes SDF threads running on processors 18, 18′, and APIs and tables of data. A physical interconnect such as an Ethernet or InfiniBand® fabric connect physical nodes together. Object copies are transferred across the physical interconnect by SDF 20 from flash memory 24, 24′ to cache DRAM 22, 22′, and among DRAM 22, 22′ caches as needed to ensure coherency of object copies.
Flash memory 24, 24′ can be physically located on many nodes, such as having one flash memory 24 for each processor 18, or in other arrangements. SDF 20 makes all the objects stored in flash memory 24, 24′ appear to be stored in a global address space, even though the global address spaced is shared among many processors 18, 18′. Thus flash memory 24, 24′ together appear to be one global, shared flash memory 26 via SDF 20.
Processor 18 executes application programs, threads, and other routines and accesses a local memory that stores program code and data, such as DRAM 22. DRAM 22 also acts as a DRAM cache of objects in the global, shared flash memory.
Processor 18 also connects to PCIe switch 30. PCIe switch 30 allows processor 18 to communicate with other nodes through NIC 36 to send and receive object copies and coherency commands. Flash modules 34 contain arrays of flash memory that store permanent objects. Flash modules 34 are accessed by processor 18 through PCIe switch 30.
Compute nodes 114 are compute nodes, such as node 100 shown in
Sharing data fabric services 116 allow application programs 122 and networked services 118 to control policies and attributes of objects by executing routines and launching threads of sharing data fabric 112 that are executed on compute nodes 114. The exact location of objects within flash memory 102 is transparent to application programs 122 and networked services 118 since sharing data fabric 112 copies objects from flash memory 102 to DRAM caches in compute nodes 114 and may obtain a copy from any location in flash memory 102 that has a valid copy of the object. Objects may be replicated to make back-up copies in flash memory 102.
Sharing data fabric 112 performs consistency and coherency operations such as flushing modified objects in a DRAM cache to copy back and update the permanent object in flash memory 102. Sharing data fabric 112 may also migrate flash objects to new flash pages for wear-leveling or other purposes, and update version logs and transaction logs.
Interconnect 110 includes the PCIe switches in each of compute nodes 114, and the high-speed interconnect between nodes, such as Ethernet or InfiniBand links. Sharing data fabric 112 sends objects and coherency commands across interconnect 110 or directly within the local compute node. Flash management 108 is activated to migrate flash blocks for wear-leveling and replication. Wear-leveling schemes assign flash blocks for writing in a rotating, least-written, or other fashion to even out usage of flash blocks and prevent early wear-out and failure. Write buffers of flash blocks, logs, and caches may be kept by flash management 108.
Flash interface 106 is an interface between flash management 108 and hardware flash controllers 104, which control low-level access of flash memory 102. While flash memory 102 may have separate modules on different nodes of compute nodes 114, sharing data fabric 112 uses interconnect 110, flash management 108, and flash interface 106 to transparently move objects to and from flash memory 102 on different nodes. Flash memory 102 in aggregate appears to be a single, unified flash memory that is transparently shared among many application programs 122 running on many compute nodes 114.
Instead, standard, substantially unmodified application programs 122 are used, but instead of accessing network interface 120 directly, application programs 122 accesses sharing data fabric 112 using API's 116. API's 116 include SDF_GET, SDF_PUT, SDF_LOCK, and other SDF-specific versions of start, abort, commit, savepoint, create, delete, open, and close commands. For example, lock and unlock commands lock and unlock an object using a lock table in sharing data fabric 112 to prevent another user from accessing that object while locked. A node map in sharing data fabric 112 maps objects to address locations in the node's flash memory, allowing sharing data fabric 112 to read and write objects in flash memory through flash management 108 and flash interface 106. There is a node map for each node having flash memory.
Objects that reside in flash memory on a first node may be accessed over sharing data fabric 112 by sending and receiving messages, and sending object data from a second node over network interface 120. These messages may include commands 128 such as get, put, lock, unlock, start, and abort. These commands 128 are executed by SDF 112 using detailed information on the object's location, such as a file handle or address, that are obtained from the node map, sharing directory, or cache map in sharing data fabric 112. Commands 128 and messages are received by a sharing data fabric 112 on the first node, which may access its local flash memory to obtain the object. On a read access, sharing data fabric 112 on the first node can then send the object data back through network interface 120 to the second node's sharing data fabric 112.
A thread executing on processor 18 on node 52 requests access to object 46, which is present in flash memory 24 on node 52. The SDF on node 52 reads object 46 from flash memory 24 and copies the object into its object cache in DRAM 22 as object copy 46′. The application program running on node 52 can then read object copy 46′ from its DRAM 22. In this example transfer over data fabric switch 40 was not needed.
In a second example, a thread executing on processor 18 on node 50 requests access to object 47, which is not present in flash memory 24 on node 50, nor in DRAM 22 on node 50. The SDF on node 50 determines that node 54 is the home node for object 47. Node 50 may perform a lookup in a directory to locate the object's home node. The directory may have several parts or levels and may reside partially on local node 50 and partially on other nodes.
An SDF thread on node 50 sends a message to the home node, node 54, requesting a copy of object 47. In response, another SDF thread on home node 54 reads object 47 from flash memory 24 and sends object 47 over data fabric switch 40 to local node 50. The SDF thread on local node 50 copies the object data into its object cache in DRAM 22 as object copy 47′. The application program running on local node 50 can then read object copy 47′ from its object cache in DRAM 22.
Object 47 may have already been copied into DRAM 22 on node 54 as object copy 47″. Rather than read object 47 from flash memory 24, when object copy 47″ is present, object copy 47″ may be read from DRAM 22 and then sent over data fabric switch 40 to node 50 to load object copy 47′ into DRAM 22 on node 50.
Home node 52 is the permanent location of object 46 in flash memory 24. Action node 50 is executing an application program that requests an object. Sharing node 54 has a copy of the object in its object cache in DRAM 22.
A program executing on action node 50 requests access of object 46. Object 46 is not yet present in DRAM 22 of action node 50, so the SDF determines the object's home node, such as by hashing the object's name or identifier or looking up the object in a table.
Transaction table 42 is stored in DRAM 22 of action node 50 and eventually contains information to identify home node 52. In response to a request from action node 50 to access object 46, the SDF on home node 52 looks up the object in its object directory 44. Object directory 44 indicates that although object 46 is present in flash memory 24 of home node 52, this object 46 is stale. A modified object 46′ is present in DRAM 22 of sharing node 54 in this example.
Since modified object 46′ is more current than stale object 46 in flash memory 24, SDF on home node 52 sends a message to SDF on sharing node 54. This message causes transaction table 42 on sharing node 54 to be checked to make sure that modified object 46′ is not locked for use by a program executing on sharing node 54. If modified object 46′ is locked, action node 50 waits until the lock is released. Release of the lock causes an update of transaction table 42 on sharing node 54.
When transaction table 42 indicates that modified object 46′ is unlocked, SDF on sharing node 54 sends the object data of modified object 46′ over data fabric switch 40 to action node 50. Object copy 46″ is created in DRAM 22 on action node 50. The requesting program on action node 50 can now access object copy 46″.
Other steps may be performed to update stale object 46 in flash memory 24 on home node 52, although this may be delayed to allow home node 50 to update object copy 46″ to reduce the number of writes to flash memory 24.
A get request is a request from an application process to access an object locally, no matter where the object source is or where an object copy is cached. A put request is a request to indicate that the application has completed its access or updates to the object. The object may be sent to home node 52 to update the object in flash memory, depending on the nature of the put request, the state of the DRAM cache, the transaction, and consistency requirements.
When the object is not found in object cache 62, a miss occurs. The SDF locates the home node, such as by hashing the object identifier or looking up the object address in a table or directory. A message is sent over the interconnect to home node 52. A message-passing-interface (MPI) or similar messaging interface may be used. Application thread 56 is suspended.
The message from action node 50 is sent over MPI 60 and received by home node 52. A MPI_SEND command is generated by action node 50 to MPI 60 and a MPI_message is sent by MPI 60 to home node 52.
SDF thread 58 is activated by an MPI_RCV event signaled when the MPI_message is received by home node 52. SDF thread 58 extracts the object identifier from the message and looks up the object identifier in the global cache directory of the home node. When the in-flash-memory copy of the object is not marked stale in the directory, the object is read from flash memory of home node 52. SDF thread 58 can be suspended during the flash memory read and then resumed once the flash memory read is complete. A MPI_SEND command is generated with the address or node identifier of the requesting action node 50. The object read from flash memory is sent over MPI 60 to action node 50.
A MPI_RCV event is signaled on action node 50, and the object is loaded into the DRAM cache. Application thread 56 can then be resumed. Application thread 56 reads the object copy from DRAM object cache 62. With this synchronous storage flow model, application thread 56 may be suspended on a miss in DRAM object cache 62 while the object is fetched from home node 52. Application thread 56 then resumes execution when the object is received at action node 50. In this synchronous flow model, action node 50 acts as the requestor and home node 52 acts as the responder.
In the asynchronous storage flow model of
Node 100 has threads running on processor 18, including application thread 90 and/or SDF thread 92. Messaging 94 allows SDF thread 92 to send and receive messages from other nodes, such as the messaging shown in more detail in
Node 100 includes DRAM 22 and flash memory 24. The DRAM state shown is a snapshot of the contents of DRAM 22 at a particular point in time, while the flash state is a snapshot of the contents of flash memory 24 at approximately that same time.
Flash memory 24 at each node stores flash objects 80, which may be grouped into containers. A flash object may be uniquely addressable in the SDF using a container-identification and an object identifier. Metadata 88 stored in flash memory 24 may include container metadata and global metadata. Container metadata describes the attributes or properties of objects in a container (such as a number of replicas for the container). Global metadata may include virtual-to-physical node-identification mappings and hash functions. The hash function is performed on the object's name to generate an identifier that can be used in further table lookups to locate the object.
Object cache 84 in DRAM 22 stores copies of objects that are also stored in flash memory 24 of the home node, which may be node 100 or may be another node. DRAM objects 86 are objects that have node 100 as their home node, but the object's attributes specify that the object primarily resides in DRAM 22 rather than in flash memory 24. For example, frequently-accessed objects may be selectively enabled to remain in DRAM 22 rather than the flash memory.
DRAM 22 also stores state information for particular classes of nodes. Action node state 70 stores state information for objects using node 100 as the action node, while home node state 72 stores state information for objects using node 100 as their home node, such as DRAM objects 86 and flash objects 80.
A home node is a well known, an authoritative source of the object, which resides in DRAM, flash memory, or another component in the storage sub-system. While an object may be cached and/or replicated in DRAM and/or flash memory at several nodes, only one of these nodes (at any one time) is considered to be the home node for that object. An Action node (that is not also the home node) stores a transient copy of an object. The action node usually obtains a copy of the object from the home node. Node 100 can operate as the home node for some objects, and as the action node for other objects.
Transaction table 74 in action node state 70 stored in DRAM 22 has entries to track transactions. Transaction table 74 keeps a list of all objects accessed (touched) during a transaction, and may keep a copy of the object's initial state when the object is modified, or a pointer to a log of changes from an initial state that is archived. The initial state pointed to by transaction table 74 aids in object recovery if an abort occurs. Transaction table 74 provides recoverability for threads of applications and SDF services that execute on the node's processor.
A transaction is a series of operations. The transaction as a whole succeeds as a unit or the transaction and all operations in the transaction are aborted. This may also be referred to as an atomic set of operations. In a transactional system that maintains isolation among concurrent transactions, there are no unexpected effects from an aborted transaction since either all operations in the transaction are executed completely, or any partially-executed operations of the transaction are aborted without visible side effects.
Transient protocol state table 76 in action node state 70 stored in DRAM 22 has entries to track outstanding requests. The requesting thread, type of request, request status, and order of requests from each thread are stored in this table, which is shared by all threads at node 100.
Home node state 72 stores information for objects that have node 100 as their home node, and are thus stored (homed) in DRAM 22 (DRAM objects 86) or flash memory 24 (flash objects 80) of node 100. Home node state 72 in DRAM 22 stores a sharing list within global cache directory 78, and flash object map 82. Global cache directory 78 stores the state of all objects that have node 100 as their home node and have been cached in one or more nodes in the system. The state of the object in global cache directory 78 is one of shared, modified, invalid, and either locked or unlocked. An indication of whether the object is being accessed within a transaction may also be stored in global cache directory 78. The locations of cached copies at other nodes, and the state and progress of any coherency operations for the objects are also kept in global cache directory 78.
Flash object map 82 maintains a map between an object identifier and its location in flash memory 24. Flash object map 82 may store an address, a partial address, or an identification of the location of the object in flash memory 24. Flash object map 82 maps at least a portion of a respective identifier of a particular one of the objects to a physical location in flash memory 24. Flash object map 82 has entries for all flash objects 80 that belong to this home node, regardless of whether that object is cached at any node. Flash object map 82 may be a homed object map that also has entries for all DRAM objects 86 at this home node.
Object Flows Using SDF—
Snapshots of the states and movements of objects and messages among three nodes in a multi-node shared flash memory system are shown in the examples of
Application thread 90 uses the address or identifier for home node 52 to send a message to home node 52. This message requests the object from home node 52.
At home node 52, the message received from action node 50 activates SDF thread 92, which looks up the object identifier in global cache directory 78 at home node 52. In this example, no copies of the object have been cached by any other nodes, so a directory miss occurs.
SDF thread 92 running on home node 52 then looks up the object identifier in flash object map 82 to find the address of the object in flash memory 24 of home node 52. Flash memory 24 is read to copy flash object 80 stored in the flash memory of home node 52. A copy of flash object 80 is sent from SDF thread 92 at home node 52 to application thread 90 at action node 50 via an interconnect between home node 52 and action node 50. Application thread 90 (or a SDF miss-handling thread such as SDF thread 92 on action node 50 invoked by application thread 90) then loads the copy of the object into object cache 84 at action node 50. Application thread 90 can resume and read the object copy in its object cache 84.
The asynchronous messaging model of
In this variation, receiving SDF thread 92 then loads the object copy into object cache 84 of action node 50 and application thread 90 can use the object copy. This handoff using the receiving SDF thread isolates application thread 90 from the details of MPI messaging and may improve robust multi-threaded execution.
At home node 52, the node's address or identifier, virtual node name Vnode, is obtained from global cache directory 78. SDF thread 92 on home node 52 sends a message to third-party node 55, for the object. SDF thread 90 at third-party node 55 reads the object from its object cache 84 and sends the object back to home node 52. The object's state is changed from modified to shared at third-party node 55, and in global cache directory 78 on home node 52.
SDF thread 92 at home node 52 then sends the object to action node 50, where the object is loaded into object cache 84. Global cache directory 78 at home node 52 is updated to refer to the new copy of the object at action node 50. Optionally, home node 52 may store the modified data to the flash memory, over-writing flash object 80.
This direct return of the modified object can allow application thread 90 to resume with less delay, since home node 52 is bypassed on the object return. An acknowledgement message is sent from action node 50 to home node 52 so that home node 52 can update the object's entry from modified to shared in its global cache directory 78, such as to indicate the new cached location and state of the object at action node 50.
When the remote copy of the object at third-party node 55 is not modified, but only shared, the message flow changes somewhat. The object could be read from flash memory at home node 52, but flash reads may be slower than reading the shared copy of the object from the DRAM at third-party node 55. Third-party node 55 reads its shared copy of the object from its object cache 84 and returns the shared copy directly to action node 50 for loading into its object cache 84. Home node 52 also adds action node 50 to the list of nodes with copies of the shared object in global cache directory 78.
Rather than a get request, a put request can also be processed. A put request indicates that application thread 90 intends to write to the object being fetched, rather than just read the object. When the put request from action node 50 misses, it causes home node 52 to request a modified object copy from third-party node 55 if present, as described earlier. Once any locks are resolved, the modified copy in object cache 84 of third-party node 55 is invalidated, since action node 50 will be writing to the object. Home node 52 replaces third-party node 55 with action node 50 in the entry in global cache directory 78 as the object is returned to action node 50 for writing by application thread 90.
If the entire object is going to be over-written, it may not be necessary to send the object from third-party node 55 to action node 50. Action node 50 sends a message to home node 52 indicating that the entire object is to be over-written. SDF thread 92 at third-party node 55 receives a fetch-invalidate request from home node 52. The object copy at third-party node 55 is invalidated as it is being fetched. This atomic operation prevents the modified object from being accessed by other threads at third-party node 55 once the fetch to home node 52 has occurred.
Another example that is not shown in the drawings is a flush at the remote third-party node with the modified object. A flush is sent from home node 52 to third-party node 55. The object is changed from modified to shared on third-party node 55, and the object is sent to home node 52. SDF thread 92 on home node 52 writes the modified copy of the object to the flash memory at home node 52 as flash object 80. Once the flash-write operation is confirmed, SDF thread 92 updates flash object map 82 with the flash memory address. Global cache directory 78 is updated at home node 52 and the modified object is sent to action node 50 for caching and updating as the new modified copy of the object.
A flush may be performed to take a dirty object and put its state into flash memory. A flush may be defined as a method in the API, as well as an internal method in the protocol state-transition. A flushed on a third-party node can happen when (1) a flush( ) API is called, (2) an application or system checkpoint occurs, or (3) a timeout from a flash memory or controller triggers an invalidate or a flush.
A sync operation at action node 50 can also be performed. Application thread 90 checks transient protocol state table 76 (
When a transaction is started at action node 50 by an application thread, a new entry is allocated in transaction table 74 of
To complete a transaction, application thread 90 reads transient protocol state table 76 (
When a transaction is aborted, application thread 90 reads transient protocol state table 76 and waits until all outstanding requests for objects touched (read, updated, or locked) by the transaction are completed. A list of objects that have been touched by application thread 90 performing the transaction is read from transaction table 74. All modified objects are restored to their initial state, which is stored in transaction table 74. The objects in object cache 84 are then unlocked, and any entry in transaction table 74 is deleted to mark completion of the transaction abort.
Several other embodiments are contemplated by the inventors. For example, while PCIe switch 30 has been described, other local buses could be used, and switch 30 could be a HyperTransport switch rather than a PCIe switch. Multi-protocol switches or multiple switches or hubs could be used, such as for supporting HyperTransport and PCIe on the same node. Data fabric switch 40, PCIe switch 30, and interconnect 110 may have overlapping hardware or software and operate to allow messages to pass for SDF.
While the description above described the global, shared flash memory as being accessible in one global address space, in other embodiments, the global, shared flash memory is accessible in a plurality of global address spaces. For example, in some embodiments, each container is accessible by a respective address space.
Rather than using a local-bus switch, other network topographies could be used, including rings, chains, hubs, and links. Although flash memory has been described, other solid-state memories could be used for storing the objects at the home node (homed objects), such as phase-change memory, ferroelectric random-access memory (FRAM), Magnetoresistive RAM (MRAM), Memristor, PRAM, SONOS, Resistive RAM (RRAM), Racetrack memory, nano RAM (NRAM), and other non-mechanical non-volatile memories. Flash memory uses electrically-erasable programmable read-only memory (EEPROM), although other technologies such as Phase-change-memory (PCM) may be substituted. NAND flash memory may be used to provide advantages in performance, such as write bandwidth, compared to other non-volatile, electronic memory types. Additional levels of storage hierarchy could be added, such as hourly, daily, or weekly backups to disk, tape, or optical media. There could be many flash modules or only one flash module.
The Sharing Data Fabric (SDF) is a unified user-space mechanism to access and store data into hierarchical DRAM, flash memory and the storage sub-system of a clustered or distributed set of compute nodes. SDF uses user-defined attributes to control access, consistency, duplication, and durability of objects in storage. To each application executing on any compute node, the distributed data and storage appears to be logically one big device with integrated cache, memory and storage.
The layers of software and hardware in
When transactions are not supported or used, transaction table 74 and transient protocol state table 76 may be omitted. Other tables, lists, or data structures may be used to track SDF operations at the action and home nodes. Tables may contain entries in table format, or as linked lists, or in other formats, and cane be flat, hierarchal, multi-level, or in a variety of other formats. Global cache directory 78 may contain sharing lists with or without other information.
Transient protocol state table 76 in action node state 70 stored in DRAM 22 has entries to track outstanding requests. Rather than storing information on threads, information on contexts may be stored in state table 76. The requesting context, type of request, request status, and order of requests from each context are stored in this table, which is shared by all contexts and their threads at node 100. An indirection of “context” is used to link a sequence of activity of gets, puts, etc. An application thread can use multiple contexts, or multiple threads can use one context. Application threads cannot see any SDF related tables, only SDF protocol threads can. By using contexts, monitoring of what application thread is calling which SDF calls is not needed. This makes the API more flexible.
While an application program requesting an object has been described, other kinds of programs such as networked services, applets, proxies, clients, servers, etc. may request objects and operate in a manner similar to that described for application programs 122. Each node could run one application program such as a server application, or multiple programs of the same or differing types. These programs may themselves perform some caching of data. Some applications or networked services may bypass SDF and reach the network interface directly, or may do so for some kinds of accesses that do not require SDF. Other kinds of API calls and network procedures or calls may be used than those listed in
While computing nodes have been described as each having a processor, DRAM cache, flash memory, and a NIC, some nodes could be compute-only nodes without any flash memory. Other nodes may have flash memory but do not execute application programs 122. Nodes may have more than one processor, and may have additional memories, such as a read-only memory for program code, static random-access memory (SRAM), or other DRAM. Several levels of processor cache may be present that may keep even more transient copies of objects in DRAM 22. The processor may include one or more processor chips, which each may have one or more processor cores. For example, in some embodiments the processor includes two, quad-core AMD Opteron™ processor chips.
A computing node may have a processor that executes both a web server and a database server application, or a combined application or applet. The compute node may be able to execute several such applications simultaneously, or several threads that can each handle one or more remote user requests. Software may be partitioned or combined in many different ways. In a first example, some or all of the SDF API's are statically linked into an application program. In a second example, some or all of the SDF API's are in a library that is dynamically linked into an application program. In a third example, some or all of the SDF API's are integrated with an operating system. In a fourth example, a stub library is used to replace at least some operating system calls (such as for file operations) with calls to API's in an SDF library.
The NIC may connect to an Ethernet, an InfiniBand, or some other kind of network, or even multiple network types. While two NIC's 36 are shown per node in
In some systems, compute nodes may have multiple processors that have separate DRAM caches but share flash memory. Groups of logical compute nodes may use the same physical hardware. One compute node could act as both action node 50 and home node 52 for one object in some of these variations. SDF could send messages between processors on the same compute node that are acting as action node 50 and home node 52.
Direct-memory access (DMA) may be used to transfer blocks of data, rather than using I/O or other instructions by processor 18 (
A particular object may be replicated, so that several copies of the object are located in flash memory of several different nodes. This replication improves reliability since the home node can fail and one of the back-up replica copies may then be used as the home object. At any given time, only one of the replicas may be designated as the permanent object in flash, while the others are kept as backups. The replica copies may provide additional read-only access to the object.
The node chosen as the home node could change over time to spread the wear of the replicas. Multiple replicas could be used as home objects, but for different groups of nodes, so that each group of nodes has only one of the replicas as its home for the object.
While the permanent object has been described as residing in flash memory of the home node, and transient copies of the object have been described as residing in DRAM cache on any node, some classes of object may have varying properties. For example, some objects may be stored primarily in DRAM rather than in flash memory, such as DRAM objects 86 of
Objects are a type of element that can be stored in a container. Elements can be fixed-sized or variable-sized. Variable-sized elements may be termed objects. The description above applies similarly to objects that are fixed-size elements, with some differences such as an ability to access fixed-size elements using, for example, a table look-up (based on an address of the element) rather than a hash (based on a key of the object's name).
To aid consistent distribution and location of data through the clustered or distributed flash-memory system, metadata 88 (
A logged 2-phase commit process may be used for facilitating failure recovery. Recoverable decision and update schemes for a clustered or a distributed system such as 3-phase commit, voting or consensus may be used in place of 2-phase commits.
In addition to the threading model described where each request is handled by a thread, an event based model could also be used where contexts (with state and progress indicators) are maintained for each request utilizing a handful of threads. Application thread 90 in
The word “may” indicates optionally and/or selectively. An object name may be an object identifier, and an identifier can be a name, key or address. A thread is a program or a portion of a program such as a process that may run independently of and concurrently with other portions of the program. Objects are discrete items that may have a state, data, and/or a defined program behavior such as routines or program code that can operate on the data and change the state.
In addition to storing all tables in DRAM, tables could also be stored in a DRAM and flash-memory based hierarchy. Tables could be backed up to flash periodically. Backing up tables to flash memory could be specific to a local node or global. In addition to application thread 90 executing SDF protocols on the action node, SDF may process the protocol on a thread that may process more efficiently and act as a proxy for application thread 90. Such a thread may reside in the application process or in an SDF daemon on the same node. Various arrangements, partitionings, and levels of threads, programs, routines, and applications are possible.
Variations of the cache coherence protocol are possible. A centralized directory-based scheme or various “snooping” schemes may be used. When there is no central directory all caches are “snooped” to determine an action on a cache miss. There are variations of directory schemes in which the directory can be decentralized using a distributed linked list. A distributed hierarchical directory could also be used. A wide variety of cache states and message flows are possible.
The background of the invention section may contain background information about the problem or environment of the invention rather than describe prior art by others. Thus inclusion of material in the background section is not an admission of prior art by the Applicant.
Any methods or processes described herein are machine-implemented or computer-implemented and are intended to be performed by machine, computer, or other device and are not intended to be performed solely by humans without such machine assistance. Tangible results generated may include reports or other machine-generated displays on display devices such as computer monitors, projection devices, audio-generating devices, and related media devices, and may include hardcopy printouts that are also machine-generated. Computer control of other machines is another tangible result.
Any advantages and benefits described may not apply to all embodiments of the invention. When the word “means” is recited in a claim element, Applicant intends for the claim element to fall under 35 USC Sect. 112, paragraph 6. Often a label of one or more words precedes the word “means”. The word or words preceding the word “means” is a label intended to ease referencing of claim elements and is not intended to convey a structural limitation. Such means-plus-function claims are intended to cover not only the structures described herein for performing the function and their structural equivalents, but also equivalent structures. For example, although a nail and a screw have different structures, they are equivalent structures since they both perform the function of fastening. Claims that do not use the word “means” are not intended to fall under 35 USC Sect. 112, paragraph 6. Signals are typically electronic signals, but may be optical signals such as can be carried over a fiber optic line.
The foregoing description of the embodiments of the invention has been presented for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. It is intended that the scope of the invention be limited not by this detailed description, but rather by the claims appended hereto.
Number | Date | Country | Kind |
---|---|---|---|
PCT/US08/65167 | May 2008 | US | national |
This application claims the benefit of U.S. Provisional Application No. 61/038,336 filed Mar. 20, 2008. This application is a Continuation-In-Part (CIP) of the co-pending U.S. application for “System Including a Fine-Grained Memory and a Less-Fine-Grained Memory”, U.S. Ser. No. 12/130,661, filed May 30, 2008, and the co-pending PCT application for “System Including a Less-Fine-Grained Memory and a Fine-Grained Memory with a Write Buffer for the Less-Fine-Grained Memory”, U.S. Ser. No. PCT/US08/65167, filed May 29, 2008, hereby incorporated by reference.
Number | Date | Country | |
---|---|---|---|
61038336 | Mar 2008 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 12130661 | May 2008 | US |
Child | 12197899 | US |