K
krabs
Guest
Sometimes after running transmission or other services I only have left 60mb of free ram.
-->Clear linux memcache
check ram before and after using this command under Tools-sysinfo-free or with command free
first run sync so all cached objects are freed
Release memory used by the Linux kernel on caches
=1 --> to free pagecache
=2 --> to free dentries and inodes
=3 --> to free pagecache, dentries and inodes
I let cron execute this every 6 hours so there's no unneeded swapping(if you have swap)
-->Clear linux memcache
check ram before and after using this command under Tools-sysinfo-free or with command free
first run sync so all cached objects are freed
Release memory used by the Linux kernel on caches
=1 --> to free pagecache
=2 --> to free dentries and inodes
=3 --> to free pagecache, dentries and inodes
Code:
sync; echo 3 > /proc/sys/vm/drop_caches
I let cron execute this every 6 hours so there's no unneeded swapping(if you have swap)
Code:
# /jffs/scripts/services-start
/usr/sbin/cru a clear_mem_cache "0 */6 * * * sync; echo 3 > /proc/sys/vm/drop_caches"