LLNL / metall

Persistent memory allocator for data-centric analytics
Other
53 stars 13 forks source link

flush/snapshot only certain key #298

Open imranjavaid opened 11 months ago

imranjavaid commented 11 months ago

One nice to have feature would be to be able to flush or snapshot only a certain key. We have a situation in a multithreaded application where threads may be writing to a container within a key which is going through a resize. If another thread is doing a flush at the same time, it would cause data corruption or a runtime error. It would be nice to have a key level flush so that we don't need global level locks on the manager.

KIwabuchi commented 10 months ago

Thanks for the feedback!

Unfortunately, that would be very hard to implement because Metall does not know which memory regions are used to allocate the object associated with a given key.

Could you tell me a bit more information about how Metall is used in your program? I might be able to come up with something to optimize your program.