Necoro’s Blog

Blog? Blog? There is no blog…

Firefox Directory in RAM

with one comment

So I’ve read Nikos’ post about putting the mozilla stuff into RAM to speed up Firefox. But the script he posted is not really suited for Gentoo. So I thought to use it and pour it into a Gentoo-Init-Script. Using it results in quite a good speed-up – especially as FF used to block when another process makes heavy use of the HDD.

You can find the script and its config file in a git repository at github. Just branch (or download directly) and put the files in the correct directories.

Note: Works only with OpenRC and not with the old baselayout-1.

Note: If you computer does not shutdown properly, all changes you made during your browsing session are lost.

Note: Only use this script, if you have sufficient free RAM, as firefox profiles can be quite large (>100MB). One point to reduce the size is to delete the urlclassifier3.sqlite (which can be about 50MB) and is only used for the phishing protection (i.e. ask google for each site you are visiting :/). See for example this post about the details (or use $SEARCH_ENGINE).

A further idea would be to have an inotify-task, which looks for the lock file in the firefox dir. If it is removed (i.e. firefox is closed), it could to a sync.

/edit[2011-03-04]: Moved from bzr to git.

Advertisements

Written by Necoro

May 8, 2009 at 10:21

Posted in Gentoo

Tagged with , , ,

One Response

Subscribe to comments with RSS.

  1. […] has obviously discovered my old post about moving the .mozilla directory of firefox into RAM. Unfortunately it did not work anymore and I also stopped using it (one reason: well – it did […]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: