hash table from pmdk

43 views
Skip to first unread message

Yue Li

unread,
Jan 26, 2018, 2:14:29 PM1/26/18
to pmem
hello, 

Just wondering if there Is any implementation of hash table from PMDK that provides atomicity on pmem? 

Best, 

Yue

Czurylo, Krzysztof

unread,
Jan 26, 2018, 3:53:41 PM1/26/18
to Yue Li, pmem, Czurylo, Krzysztof

Hi Yue,

 

There is one in our examples:

                pmdk/src/examples/libpmemobj/hashmap

 

Actually, there are two variants of hashmap implementation - one that uses pmemobj transactions and another based on atomic (nont-transactional) APIs. See README for details. See also:

                pmdk/src/examples/libpmemobj/map

 

for a simple kv store example (server/client) based on this hash map implementation (and other data structures/trees/etc.).

 

It's just an example, but it pretty well illustrates how to implement your own hash table with libpmemobj.

 

K.

 

 

--
You received this message because you are subscribed to the Google Groups "pmem" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pmem+uns...@googlegroups.com.
To post to this group, send email to pm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pmem/88cdcf93-2f2d-4dee-8b5c-c511aa026d89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yue Li

unread,
Jan 26, 2018, 4:57:37 PM1/26/18
to Czurylo, Krzysztof, pmem
This is excellent, thank you Krzysztof!

Best,

Yue
Reply all
Reply to author
Forward
0 new messages