From 5c9d7f46aaaf5b72a677c2afc7b04f7f88821187 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Thu, 24 Jun 2021 16:52:17 +0200 Subject: [PATCH] Add WSL clean mem script --- useful_scripts/cleanup_wsl_mem.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 useful_scripts/cleanup_wsl_mem.sh diff --git a/useful_scripts/cleanup_wsl_mem.sh b/useful_scripts/cleanup_wsl_mem.sh new file mode 100644 index 0000000..75c5841 --- /dev/null +++ b/useful_scripts/cleanup_wsl_mem.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +sudo bash -c "echo 1 > /proc/sys/vm/drop_caches" +sudo bash -c "echo 1 > /proc/sys/vm/compact_memory" \ No newline at end of file