Posts: 2
MALsPa
Joined: 31 Jul 2015
#16
Nice tip! Seems to make quite a difference here (running Openbox in Debian Jessie) -- thanks!


$ inxi
CPU~Dual core AMD E-300 APU with Radeon HD Graphics (-MCP-) clocked at Min:780.000Mhz Max:1114.000Mhz Kernel~3.16.0-4-686-pae i686 Up~10 min Mem~308.7/1622.0MB HDD~320.1GB(2.6% used) Procs~136 Client~Shell inxi~2.1.28


Edit: Or was I just imagining things? I tried the test from the"Filesystem caches are more important than other caches" section of the article here:
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://rudd-o.com/linux-and-free-software/tales-from-responsivenessland-why-linux-feels-slow-and-how-to-fix-that"
linktext was:"https://rudd-o.com/linux-and-free-softw ... o-fix-that"
====================================


My results:

Code: Select all

#  sync
#  echo 3 > /proc/sys/vm/drop_caches
#  dd if=/dev/zero of=/tmp/testfile count=1 bs=900M
1+0 records in
1+0 records out
943718400 bytes (944 MB) copied, 13.3597 s, 70.6 MB/s
#  sysctl -w vm.vfs_cache_pressure=100
vm.vfs_cache_pressure = 100
#  find / > /dev/null
#  cp /tmp/testfile /tmp/testfile2
#  time find / > /dev/null

real    0m2.873s
user    0m0.844s
sys    0m1.488s
#  sysctl -w vm.vfs_cache_pressure=50
vm.vfs_cache_pressure = 50
#  find / > /dev/null
#  cp /tmp/testfile2 /tmp/testfile3
#  time find / > /dev/null

real    0m3.264s
user    0m0.880s
sys    0m1.504s

So, the second run didn't take any less time, looks like.