using tmpfs

i find my ram usage doesn't go much over 512k. apart from some of my trusty old friends, most of my systems have ample ram left over. how do i make more efficient usage of extra ram?

ram is fast. disk is slow. move operations from disk to ram, depending on how ram is spare.

enable tmpfs

mount /tmp on tmpfs

# vi /etc/default/tmpfs
RAMTMP=yes


default cache is ~/.cache on disk
move cache to tmpfs

i set this in ~/.profile. i could have set in ~/.xsession instead.
$ export XDG_CACHE_HOME=/dev/shm

now our systems has become a lot more efficient in using ram vs disk. end result is blazing fast.

do you have any other tips?

No comments:

Post a Comment

most popular posts