2011年9月10日 星期六

奔跑吧火狐 – 用 RAMDisk 來加速 Firefox -- Linux

把存取頻繁的 Cache 放到 RAMDisk 效果不知道如何?Linux 下的方法很簡單!
例如要放在 /tmp/cache、大小是 128Mb。編輯 /etc/fstab,加上:
tmpfs  /tmp/cache tmpfs  size=128M  0  0
然後建立 /tmp/cache:
sudo mkdir /tmp/cache
接著 mount 起來:
sudo mount -a
這樣就完成 RAMDisk 的建立了。 
接著打開 Firefox,在網址列輸入「about:config」
「右鍵」->「新增」->「字串」,名稱輸入「browser.cache.disk.parent_directory」,內容是你要放快取的地方,例如「/tmp/cache」。

沒有留言:

張貼留言