Friday, May 6, 2016

Keep your Browser profile in RAM for reduced disk write and increased performance

Profile-sync-daemon (psd) is a tiny pseudo-daemon designed to manage your browser's profile in tmpfs and to periodically sync it back to your physical disc (HDD/SSD). This is accomplished via a symlinking step and an innovative use of rsync to maintain back-up and synchronization between the two. One of the major design goals of psd is a completely transparent user experience.

To install profile-sync-daemon open a terminal (ctrl+alt+t) and type in the following commands :

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

To edit the configuration open the this file via terminal :

sudo gedit /home/USERNAME/.config/psd/psd.conf

Uncomment (remove#)  #BROWSERS"" so it looks like this :

 BROWSERS "firefox chromium" 

This serves as an example , fill in the quotes with the browsers you are using. If you do not uncomment this line all the supported browser profiles will use tmpfs.
Beginning with version 5.54 of psd, native support for overlayfs is included. Uncomment the USE_OVERLAYFS="yes" line to enable it rather than the default full copy to reduce the memory costs and to improve sync/unsync operations.

Next we are going to use the parse command :

profile-sync-daemon parse 

The 'parse' option can be called to show users exactly what psd will do/is doing based on $/home/USERNAME/.config/psd/psd.conf as well printout useful information such as profile size and paths.

After installing and configuring profile-sync-daemon restart your PC .

No comments:

Post a Comment