[ale] Ale Digest, Vol 36, Issue 60

Paul Cartwright ale at pcartwright.com
Tue Jan 18 11:15:24 EST 2011


On 01/18/2011 02:25 AM, Matthew wrote:
> 
> Named: clean.sh
> #!/bin/bash
> 
> ###
> ### Shell script to clean the cache on the machine, it also lists
> current memory usage, and
> ### afterwards its cleared so I can compare.
> ###
> ### SimonTek April 16th, 2009
> ###
> free -m
> sync; echo 3 > /proc/sys/vm/drop_caches
> free -m

my first cron job ran:

             total       used       free     shared    buffers     cached
Mem:          2025       1928         97          0        127        624
-/+ buffers/cache:       1176        849
Swap:         2055        456       1598
             total       used       free     shared    buffers     cached
Mem:          2025       1194        830          0          0        131
-/+ buffers/cache:       1063        962
Swap:         2055        456       1598

cached went from 624 to131.



-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT d- s: a++ C+ UB+++ P+ L++ E--- W++ N++ o K- w+
O+ M V- PS--- PE++ Y+ PGP++ t+ 5 X++ R- tv- b- DI++ D+
G e h-- r+++ y+++
------END GEEK CODE BLOCK------
Paul Cartwright
Registered Linux user # 367800
Registered Ubuntu User #12459



More information about the Ale mailing list