Created
January 28, 2013 06:25
-
-
Save takuya-murao/4653452 to your computer and use it in GitHub Desktop.
Free inactive memory by du command.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
operating_time=10 | |
du -sx / > /dev/null 2>&1 & | |
du_pid=$! | |
sleep $operating_time | |
kill $du_pid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
メモリを解放してスワップ発生を抑える方法 - ザリガニが見ていた...。
http://d.hatena.ne.jp/zariganitosh/20110614/release_memory_no_swap