SliTaz SliTaz Forum

You are not logged in.

#1 2017-02-07 13:32:08

ray
Member
Registered: 2017-01-16
Posts: 21

Firefox on RAM

The ideas are taken mainly from archlinux: https://wiki.archlinux.org/index.php/Firefox/Profile_on_RAM

Benefits: reduced drive read/writes; better responsiveness; several sessions of firefox simultaneously.

Main files of package “firefox-official” (32-bit) are located at:

- folder “/opt/mozilla/firefox” -  application files (~110MB for Firefox version 51.0)

- folder “~/.mozilla” - a user's profile (~60 MB)

- folder “~/.cache/mozilla/firefox” - a user's cash (~10 MB)

If you have enough free RAM (check in terminal: $ free -m), you can copy Firefox to ramdisk and run it  independently (and with profile management) from already installed Firefox.

How-to:

1.Make folder /mnt/ramdisk

2.Create ramdisk by adding the following line to file /etc/fstab :

tmpfs   /mnt/ramdisk tmpfs   size=200M,user,exec 0 0

3.Check that ramdisk was created: $df -h

4.Copy folder /opt/mozilla/firefox to /mnt/ramdisk

5.Create a folder for a new profile: /mnt/ramdisk/profile1

Then run Firefox in terminal and create the new profile.

$  /mnt/ramdisk/firefox/firefox -P

6.After closing Firefox, you can back up or sync files from ramdisk to your drive for future usage (they will be lost after poweroff).

Offline

#2 2017-02-12 17:33:52

Guest
Guest

Re: Firefox on RAM

Man,

there's a native solution

http://lifehacker.com/5687850/speed-up-firefox-by-moving-your-cache-to-ram-no-ram-disk-required.

#3 2017-02-13 20:49:20

ray
Member
Registered: 2017-01-16
Posts: 21

Re: Firefox on RAM

@moulefrite

Thanks for your feedback. Ramdisk allows you to run two sessions of Firefox simultaneously, as well as do other tricks.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]