Distributed hash table method based on HTM and one-way RDMA operation

2015 
The present invention provides a distributed hash table method based on HTM and one-way RDMA operation. The method comprises: step 1, a server initializing a memory key-value system, and establishing a connection between a client and the server; step 2, the client reading a main head or an indirect head of a key-value pair that stores a target value from the memory key-value system of the server; step 3, searching for a specific location, in the server, of a value corresponding to a key, determining a type of a request, and if the request is a read request, reading the specific value, and entering step 6, or if the request is a write request, sending a CAS request of one-way RDMA, and performing locking atomically; step 4, sending a one-way RDMA read request to read the value corresponding to the key into a local location, or sending a one-way RDMA write request to write the value into a distal end; step 5, sending a one-way RDMA write request, and freeing locking at the distal end; and step 6, inspecting whether an auto increment is consistent. According to the method provided by the present invention, without affecting performance of the server, a delay of a key-value request can be shortened, and a system throughput can be increased.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    1
    References
    0
    Citations
    NaN
    KQI
    []