Home » 2014 » October » 20

Daily Archives: October 20, 2014

Tuning Browser Performance dengan Profile-Sync-Daemon


Setelah melakukan tuning di sisi direktori sementara (temporary directory, /tmp, sekarang gw mencoba melakukan tuning sekali lagi pada sisi akses profile browser. Gw pake beberapa browser (Firefox, Google-Chrome, dan Opera), namun gw hanya akan melakukan tuning di Firefox aja. Sebenarnya bisa semua profile browser, tapi hanya akan membebani RAM karena gw sekali lagi akan memanfaatkan tmpfs yang seperti diketahui sangat bergantung pada RAM.

Ada script kecil yaitu profile-sync-daemon yang dapat melakukan itu semua. Cukup mudah instalasinya di Ubuntu dan turunannya.

sudo add-apt-repository ppa:graysky/utils
sudo apt-get update
sudo apt-get install profile-sync-daemon

(more…)

Setting Up a NFS Server on Top of tmpfs /dev/shm


tmpfs has blazing speed. Why not set up a high speed NFS server on top of tmpfs?

A little trick is required for setting NFS server on top of /dev/shm. If we add a normal entry in /etc/export and them run

# exportfs -a

exportfs will give us a warning like this: exportfs: Warning: /dev/shm requires fsid= for NFS export

When we try to mount this NFS server, we may get a error message from mount: mount.nfs: access denied by server while mounting nfsserver:/dev/shm

How to solve this problem? Just add the option fsid=1 to the /dev/shm entry in /etc/exports:

/dev/shm 10.0.0.1/24(rw,fsid=1,sync)

and remember to execute # exportfs -a again.

Then nfsserver:/dev/shm can be mounted in 10.0.0.1/24.