Skip to content

Understanding RAM usage in 2.X #7189

Answered by arvidn
maran asked this question in Q&A
Discussion options

You must be logged in to vote

The vast majority of that memory is disk cache. There are two kinds of disk cache, dirty and clean. Any clean disk cache pages are likely very easy to reclaim by the OS and I would not expect any OOM kills because of it. The dirty pages are those that still need to be flushed to disk and can only be reclaimed once actually written to its backing storage. There are various options to make libtorrent hint the OS to flush dirty pages frequently.

That said, many people are experiencing issues with this, where the OS is not flushing dirty pages or evicting clean pages aggressively enough, to the detriment of more urgently needed pages.

There is no way to get the exact 1.2 behavior, but there a…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by maran
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