matrix-org / rust-synapse-compress-state

A tool to compress some state in a Synapse instance's database
https://pypi.org/project/synapse-auto-compressor/
Apache License 2.0
143 stars 33 forks source link

Can take many minutes to release memory / shut down #4

Open turt2live opened 5 years ago

turt2live commented 5 years ago

Test case was compressing a room which used a total of 87gb of memory. After it checked that the state maps match, it took about 5 minutes to release memory while also spinning a single core on the machine. During this time, the memory usage was slowly going down. Surely it should be able to just exit normally and release all the memory back in one shot?