Title: How to clean cache RAM Post by: lodger on October 22, 2014, 08:36:19 AM Hi,
how can i clean the cache of RAM? in modern linux i type: Code: # echo 1 > /proc/sys/vm/drop_caches but in DSL doesn't exist that file :^( Code: $ ls -lh /proc/sys/vm/ -rw-r--r-- 1 root root 0 Oct 20 22:22 bdflush -rw-r--r-- 1 root root 0 Oct 20 22:22 block_dump -rw-r--r-- 1 root root 0 Oct 20 22:22 kswapd -rw-r--r-- 1 root root 0 Oct 20 22:22 laptop_mode -rw-r--r-- 1 root root 0 Oct 20 22:22 max-readahead -rw-r--r-- 1 root root 0 Oct 20 22:22 max_map_count -rw-r--r-- 1 root root 0 Oct 20 22:22 min-readahead -rw-r--r-- 1 root root 0 Oct 20 22:22 overcommit_memory -rw-r--r-- 1 root root 0 Oct 20 22:22 page-cluster -rw-r--r-- 1 root root 0 Oct 20 22:22 pagetable_cache -rw-r--r-- 1 root root 0 Oct 20 22:22 vm_anon_lru -rw-r--r-- 1 root root 0 Oct 20 22:22 vm_cache_scan_ratio -rw-r--r-- 1 root root 0 Oct 20 22:22 vm_gfp_debug -rw-r--r-- 1 root root 0 Oct 20 22:22 vm_lru_balance_ratio -rw-r--r-- 1 root root 0 Oct 20 22:22 vm_mapped_ratio -rw-r--r-- 1 root root 0 Oct 20 22:22 vm_passes -rw-r--r-- 1 root root 0 Oct 20 22:22 vm_vfs_scan_ratio Code: $ top [H[JMem: 30408K used, 88144K free, 0K shrd, 1500K buff, 14740K cached Load average: 0.36 0.14 0.05 (Status: S=sleeping R=running, W=waiting) [7m PID USER STATUS RSS PPID %CPU %MEM COMMAND[0m 419 root S 4956 418 0.9 4.1 Xvesa 369 dsl S 1692 1 0.0 1.4 bash 422 dsl S 1592 418 0.0 1.3 jwm 446 dsl S 1536 445 0.0 1.2 bash 445 dsl S 1508 1 0.0 1.2 aterm 405 dsl S 1084 369 0.0 0.9 startx 443 dsl S 924 1 0.0 0.7 torsmo 450 dsl R 728 446 0.0 0.6 top 63 root S 712 1 0.0 0.5 cardmgr 364 root S 664 1 0.0 0.5 pump 418 dsl S 644 405 0.0 0.5 xinit 354 root S 560 1 0.0 0.4 syslogd 1 root S 76 0 0.0 0.0 init 2 root SW 0 1 0.0 0.0 keventd 6 root SW 0 1 0.0 0.0 kupdated 3 root SWN 0 1 0.0 0.0 ksoftirqd_CPU0 4 root SW 0 1 0.0 0.0 kswapd 5 root SW 0 1 0.0 0.0 bdflush 68 root SW 0 1 0.0 0.0 khubd 80 root SW 0 1 0.0 0.0 knodemgrd_0 Thanks. Title: Re: How to clean cache RAM Post by: CNK on October 22, 2014, 09:35:22 PM The man page (http://ftp://ftp.alaska.edu/pub/sois/man/drop_caches.html) indicates that "drop_caches" was only included in Linux Kernel V. 2.6.16 and later. DSL uses Kernel V. 2.4.31.
I don't know if there is another command used in earlier Kernels, but I doubt it. DSL-N uses a 2.6 kernel (I can't remember if it was above 2.6.16, I think so), that could be another option depending on your circumstances.
Powered by SMF 1.1.20 |
SMF © 2013, Simple Machines
|