A first comment I want to make is that I didn't program this script myself.
I just ported some scripts from Arch Linux to Ubuntu, so did minimal changes to the actual program script, only the boot script.
This script solves the problem of always having to execute some commands to synchronize the browser profiles to RAM.
The description on the Arch Linux wiki is:
Running this daemon is beneficial for two reasons:
- Reduced wear to physical discs
Since the profile(s), browser cache, etc. are relocated into tmpfs, the corresponding onslaught of I/O associated with using the browser is also redirected from the physical disc to RAM, thus reducing wear to the physical disc and also greatly improving browser speed and responsiveness. The access time of RAM is on the order of nanoseconds while the access time of physical discs is on the order of milliseconds. This is a difference of six orders of magnitude or 1,000,000 times faster.
Before installing the debian file you have to add one line to you're fstab file. The line is:
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
Link to the debian file: http://dl.dropbox.com/u/58201974/pro...ync-daemon.deb
Source files: http://dl.dropbox.com/u/58201974/pro...-daemon.tar.gz
After installing you need to edit the /etc/psd.conf file, and add at least one user to the list.
I hope some people are willing to test this script themselves. When you discover some bugs feel free to mail me or leave a comment on this forum.
Greetings Psycho Game
Last edited by Psycho Game; February 8th, 2012 at 12:54 AM.
Tested on Aspire One with Ubuntu netbook remix 10.04.
Works like a charm, both browsers (firefox and chromium) are swift and responsive.
The aspire has upgraded ram capacity too, from the original 512MB to 1,5GB so tmpfs fits there just fine.
Thank you for you're reply.
I'm glad this program works for you.
Hopefully some other ubuntu users will also benefit from these scripts.
With chromium theres also one other tweak which is adding: --disk-cache-dir=/tmp/cache to the end of the chromium-browser command in the .desktop file and preferred applications.
This will speed up chromium even more by placing the cache folder in RAM. Only this cache will be emptied every time the computer reboots.
Last edited by Psycho Game; February 8th, 2012 at 04:21 PM.
you're great!! i'm using it under arch and now under ubuntu too! do you know any solution to make it work within an encrypted home folder (encryptfs, no full luks partition encryption). best regards!
Ubuntu doesn't have rc.conf and the command rc.d doesn't work... what should I do? For now I have created the first file and "seems" that it works, but I'm not sure and I'm neither sure about the commands to sync, stop and start the daemon.
just install the deb file from the first post. the package has been adjusted for ubuntu. make sure that you entered your username in the config file.
Doesn't work very well for me.
On startup the browsers profiles don't get loaded on RAM, so when I try to start Firefox it says it don't find the profile folder. (Indeed, the folder is not present in /tmp.)
What I have to do is to stop psd and start it again. Then the folder /tmp/user-mozilla appears and I can start Firefox.
It works very well for me.
The only "problem" is that now the sistem has become a lot slower at boot/login for it has to load the profile in cache.
But at the end firefox is faster and with a lot less disk access.
Thank you for posting this. It works very well both on Ubuntu 11.10 and 12.04.
I removed psd via apt-get but I cannot start Firefox anymore because profile is missing (it says). (It probably still looks for the profile folder in /tmp.) How can I solve the problem?