Skip to content

Instantly share code, notes, and snippets.

@takuya-murao
Created January 28, 2013 06:25
Show Gist options
  • Save takuya-murao/4653452 to your computer and use it in GitHub Desktop.
Save takuya-murao/4653452 to your computer and use it in GitHub Desktop.
Free inactive memory by du command.
#!/bin/sh
operating_time=10
du -sx / > /dev/null 2>&1 &
du_pid=$!
sleep $operating_time
kill $du_pid
@takuya-murao
Copy link
Author

メモリを解放してスワップ発生を抑える方法 - ザリガニが見ていた...。
http://d.hatena.ne.jp/zariganitosh/20110614/release_memory_no_swap

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