You are not logged in.

#1 2009-08-19 10:11:24

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

speed-up firefox using tmpfs

I came across a pretty cool firefox tip that shows you to use tmpfs for your firefox profile.  I wrote up a wiki article based on the tip (crediting the original source on the wiki).  Please have a look and comment if you think it's value-added:

http://wiki.archlinux.org/index.php/Spe … sing_tmpfs

Last edited by graysky (2009-08-19 11:45:05)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2009-08-19 16:03:34

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: speed-up firefox using tmpfs

Easier:  go to about:config, create a new string variable called browser.cache.disk.parent_directory, set it to /dev/shm/ff-cache, restart Firefox.
Easiest:  go to about:config, filter for disk.enable, set it to false, and let memory caching do its thing.

Last edited by Wintervenom (2009-08-19 16:13:05)

Offline

#3 2009-08-19 16:32:14

ugaciaka
Member
From: Italy
Registered: 2008-07-06
Posts: 140
Website

Re: speed-up firefox using tmpfs

I maked another way very simple (very similary with Wintervenom):

in /etc/fstab i mounted /tmp in ram

none /tmp tmpfs mode=1777,nosuid,noatime 0 0

and in about:config I insert
browser.cache.disk.parent_directory /tmp/firefox-ugaciaka

PS /tmp is very small but more speed!


I have never bought on ebay, the macbook I do not like, I do not need facebook or myspace or secondlife
I am not a nerd or lamer or troll or geek or hacker or cracker
and I have never voted to elect berlusconi

Offline

#4 2009-08-19 17:07:37

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: speed-up firefox using tmpfs

Thanks for the replies, all.  I think the two methods you guys suggest will just relocate the cache dir to a memory partition, not the entire profile.  Also, I have read on several blogs that Firefox has speed issues w/ no disk cache (I haven't confirmed it though).  In any case, thanks for the suggestions, particularly moving the cache to /dev/shm/x via browser.cache.disk.parent_directory smile

Last edited by graysky (2009-08-19 17:11:39)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2009-08-19 17:21:16

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: speed-up firefox using tmpfs

@Wintervenom - added your method to the wiki page.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2009-10-19 19:45:46

FSX
Member
Registered: 2009-08-06
Posts: 57

Re: speed-up firefox using tmpfs

This is awesome!

But I wonder what happens when the 128MB tmpfs is full. Does someone know?

Offline

#7 2009-10-19 20:58:05

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: speed-up firefox using tmpfs

Then swap is utilized until its gone..slower then!


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

Board footer

Powered by FluxBB