View Single Post
Posts: 1,729 | Thanked: 388 times | Joined on Jan 2010 @ Canada
#79
Originally Posted by colin.stephane View Post
Code:
#!/bin/sh

# Default value in case we don't have a swappolube config saved with 'vfs_cache_pressure' option value.
VFS_CACHE_PRESSURE=100

# Loading saved swappolube 'vfs_cache_pressure' value if it exist in /etc/event.d/tuning.
if $(grep vfs_cache_pressure /etc/event.d/tuning 1>/dev/null 2>&1) ; then
        VFS_CACHE_PRESSURE=$(grep vfs_cache_pressure /etc/event.d/tuning | awk '{print $2}' | sed 's|"||g')
fi

kernel-config load ideal
kernel-config limits 500 1150
echo ${VFS_CACHE_PRESSURE} > /proc/sys/vm/vfs_cache_pressure
for process in browserd scim-panel-gtk image-viewer
do
  /usr/bin/pkill -CONT $process
done
if I am to modify the /usr/local/bin/overclock thing, should I copy everything that's bold or just echo ${VFS_CACHE_PRESSURE} > /proc/sys/vm/vfs_cache_pressure? Thanks
__________________
if i did help you, just click "Thanks" on the lower right of my post. thanks!

"The best way to break a Spell is to prevent it from being cast in the first place"

N900: 1000/1150mhz; sampling_rate 15; up_threshold 150000;