Skip to content

update value / release of memory #50

Answered by tatsuya6502
s-weil asked this question in Q&A
Discussion options

You must be logged in to vote

Hi. Thank you for reporting the issue. I have not had a chance to run your code yet, but will try soon.

I think you are doing right, so it will be Moka's problem.

Moka uses a concurrent hash table called cht as the central storage. And I know there are a couple of places to improve in cht for better memory usage.

One such thing is a usage of crossbeam-epoch. cht uses crossbeam-epoch, which provides lock-free shared garbage collected pointers. Maybe the issue you are seeing is caused by it. By design, it will not immediately drop values pointed by its pointers, and will keep last few hundreds of them in memory after they were marked as "droppable".

I once opened a GitHub issue for it, but …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@tatsuya6502
Comment options

@s-weil
Comment options

@tatsuya6502
Comment options

@s-weil
Comment options

Answer selected by tatsuya6502
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants