Skip to content

Rodrigo Gonçalves

IT Analyst and Consultant

  • Contact
  • Academic Curriculum
  • Research
  • Personal Projects
  • LinkedIn
  • E-mail
  • Containers (1)
  • Operating Systems (4)
  • Programming (3)
  • Research (6)

Reducing WSL-2 Memory Usage

Execute the following command (as root):


sync && echo 3 > /proc/sys/vm/drop_caches

To put in in a crontab, to execute every 6 hours (assuming the script with the command at /root/clean_caches.sh):

0       */6     *       *       *       /root/clean_caches.sh

Source: https://github.com/microsoft/WSL/issues/4166

Posted on June 5, 2020December 30, 2023Author adminCategories Linux, Operating Systems, WindowsTags linux, windows, wsl-2

Post navigation

Previous Previous post: How to make an older commit the latest
Next Next post: Um framework para Suporte à Preparação e Comparação de Similaridade de Documentos XML (ERBD 2007).