wsl-drop-cache
Periodically drop the WSL caches when load is low. (by arkane-systems)
ksm_preload
Enables legacy applications to leverage Linux's memory deduplication. (by unbrice)
wsl-drop-cache | ksm_preload | |
---|---|---|
3 | 1 | |
24 | 53 | |
- | - | |
0.0 | 10.0 | |
over 2 years ago | about 6 years ago | |
Python | C | |
GNU General Public License v3.0 only | GNU General Public License v3.0 only |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
wsl-drop-cache
Posts with mentions or reviews of wsl-drop-cache.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-10-09.
-
Linuxatemyram.com
That's just one part of the issue - even after forcefully dropping Linux's caches, WSL has been unable to reclaim the memory back reliably. There has been a recent update that claims to finally fix this.
You might find this package helpful: https://github.com/arkane-systems/wsl-drop-cache
-
WSL2 Massive Paging File Size Taking Up Over 1/3 of Total Ram
Yeah. for a while I used validatedev/drop-cache-if-idle. There's also arkane-systems/wsl-drop-cache which seems to be a little newer.
-
Release Dropcacheifidle
Repo at arkane-systems/wsl-drop-cache: Periodically drop the WSL caches when load is low. (github.com) , installable from wsl-transdebian | A repository for WSL-only apt packages. (arkane-systems.github.io) .
ksm_preload
Posts with mentions or reviews of ksm_preload.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-10-09.
-
Linuxatemyram.com
Same page merging only works for KVM, as that's the only case that enables it without intervention that nothing else supports. It's MADVISE for everything non-KVM, and no applications are compiled with support for telling the kernel "hey, it's OK to dedupe me". The only way to get KSM to work with userspace applications is to use LD_PRELOAD to inject the necessary bits (https://github.com/unbrice/ksm_preload) or to use a custom kernel that has a patch and extra daemon to globally enable KSM for everything (https://codeberg.org/pf-kernel/uksmd).
I really wish this was a standard, configurable sysctl. There are many container environments (and heck, even browsers) that would benefit from this, and I cannot see any real downside.
What are some alternatives?
When comparing wsl-drop-cache and ksm_preload you can also consider the following projects:
drop-cache-if-idle - The tool which doesn't interrupt your processes, drops the cache if and only if the machine is idle.
prelockd - Lock executables and shared libraries in memory to improve system responsiveness under low-memory conditions
earlyoom - earlyoom - Early OOM Daemon for Linux