~utappia/2clickupdate/master

« back to all changes in this revision

Viewing changes to modules/ramclean_apt.module

  • Committer: Salih Emin
  • Date: 2012-02-07 13:12:49 UTC
  • Revision ID: git-v1:f633d838fe53d9637fafa63944234b00bf015188
system memory

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
ramcleanapt()
4
4
 {
5
 
  sync #  Synchronize data on disk with memory
 
5
  sync #  Synchronize data on disk with system memory 
6
6
  echo "Data synced to Disk"
7
7
  echo 3 > /proc/sys/vm/drop_caches # Free pagecache, dentries and inodes
8
 
  echo "Ram freed fom garbage"
9
 
  echo 0 > /proc/sys/vm/drop_caches # Change the value back to default
10
 
  echo "Value returend to default"  
 
8
  echo "Ram freed fom garbage"  
11
9
}
12
10