Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

zstd memory consumption kills nodes #191

Closed
marten-seemann opened this issue Feb 10, 2021 · 0 comments · Fixed by #193
Closed

zstd memory consumption kills nodes #191

marten-seemann opened this issue Feb 10, 2021 · 0 comments · Fixed by #193
Labels
status/blocked Unable to be worked further until needs are met

Comments

@marten-seemann
Copy link
Collaborator

Running an IPFS node on a virtual server equipped with 2 GB of RAM leads to OOM within 2 - 5 minutes when qlog is running. The reason is that each zstd.Encoder consumes at least 8 MB of memory for an internal buffer, so just handling a little more than 200 QUIC connections simultaneously would consume all available memory.

I reported this to the zstd implementation in klauspost/compress#316.

I hope that this can be fixed there, otherwise we'd probably have to log the uncompressed qlog to disk first, and do the compression in a post-processing step when the respective connection is closed. This would reduce the number of simultaneously allocated zstd.Encoders.

@marten-seemann marten-seemann added the status/blocked Unable to be worked further until needs are met label Feb 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/blocked Unable to be worked further until needs are met
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant