Skip to content

Instantly share code, notes, and snippets.

@pallas
Last active July 15, 2020 20:40
Embed
What would you like to do?
Spring clean memory on Linux systems
#!/bin/bash
# SPDX-License-Identifier: Unlicense
# Author: Derrick Lyndon Pallas <derrick@pallas.us>
sync &&
echo 3 > /proc/sys/vm/drop_caches &&
echo 1 > /proc/sys/vm/compact_memory &&
true
#
@pallas
Copy link
Author

pallas commented Jun 12, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment