Ask Your Question

How to sync browser profile and cache into tmpfs?

asked 2014-02-18 15:53:39 -0500

Bucic gravatar image

I followed the article on ArchLinux wiki and the profile-sync-daemon is even available through Fedora repos but I got stuck at item 4.2 where it says:

Start psd and psd-resync service and enable them to start/stop at boot/shutdown (highly recommended).

1. How do I set up the services, as indicated, in Fedora?
2. Can I just set firefox about:config browser.cache.disk.parent_directory to /home/<username>/.mozilla/firefox/<profile>/ to have also cache synced once I successfuly set up psd? If not, how do I achieve this in Fedora?
3. Can 4.3 'Sync at more frequent intervals (optional)' be followed on Fedora exactly?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-02-19 08:05:39 -0500

Bucic gravatar image

updated 2014-03-05 14:01:44 -0500

0a. Backup your profile now and continue to do backups untill you properly TEST the method is actually working.
0b. The guide here is only a supplement of the Arch wiki article! Refer to the article to avoid loss of data.

  1. su -c 'yum install profile-sync-daemon' abd proceed per the Arch wiki article.
  2. Accomplish steps up to and including "Preview mode (parse)".
    Everything except the undetermined status (see below) of the services should be set up correctly.
  3. Set up the psd services:
    su -c 'systemctl enable psd
    su -c 'systemctl enable psd-resync
  4. reboot
  5. start the services:
    systemctl start psd
    WAIT 30 seconds...
    systemctl start psd-resync
    A directory by the name <yourprofilename>-backup should appear in your profile directory.
  6. Verify all is working by e.g. creating a new bookmark in Firefox and restarting your system. The bookmark should be there after you reboot.

To sync disk cache as well:
7. Enable the new disk caching back-end in Firefox.
about:config > browser.cache.use_new_backend;1
8. Set Firefox disk cache location to tmpfs dir used by psd for your profile (see the "Preview mode (parse)", e.g. /tmp/eugene-firefox-myffprofile.default

This is a very dirty trick but I don't know how to link (both ways?) a directory within Firefox profile with a standard mozilla cache directory which now resides in /home/<username>/.cache/mozilla/firefox/<profilename></profilename></username>

edit flag offensive delete link more


I can't find "browser.cache.disk.parent_directory" preference in Firefox, there's any update on how can I achieve that?

paladini gravatar imagepaladini ( 2015-08-16 21:10:27 -0500 )edit

answered 2014-02-18 16:51:42 -0500

cobra gravatar image

updated 2014-02-18 16:52:20 -0500

1 Fedora uses systemctl to control services, so you need to ensure the service scripts are configured with that in mind. The System V scripts still get forwarded through, so you can still use:

chkconfig psd on

to enable a service to start at startup and

service psd start

to start it by hand (or service psd stop or service psd restart, etc.)

Unfortunately, Systemd (the subsystem that provides systemctl and other tools) is quite a big change from the previous system V stuff. Fortunately it's reasonably well documented. I'm sorry to have to say that the best way to get your head round it is probably to read some of those docs. I suggest you start at the official fedoraproject docs here:

2 I'm not sure what effect changing that would have on that. But you might want to take a look at this answer: which carries a tweak to firefox to turn off the disk caching and force it to do it in memory. That way you wouldn't have to worry about psd syncing your cache to file or memory.

3 I've never actually set up psd before - I've always found the performance to be good enough not to need it. If you get it all working, though, I'm pretty sure you can do some tweaks and performance measurements. I'm also pretty sure there are plenty of people reading this site that would be interested in what you achieve with it.

edit flag offensive delete link more


Disabling disk cache is not an option for me. It's as impractical as a 'tweak' can get. Unless you reboot once a day or have 5 ms ping to most websites in the world. / Looking at it again, I think I don't get what the "start/stop at boot/shutdown" sentence means. Does it mean starting at boot and stopping at shutdown? If so a simple systemctl enable psd psd-resync would suffice.

Bucic gravatar imageBucic ( 2014-02-19 06:59:29 -0500 )edit

Yes, you are correct. Turning on a service to start when the system enters your runlevel used to be done with chkconfig, but it's now done with the command that you've put. The old version is now routed through to the new one, so you can actually use either. You should note that all services are stopped when the system shuts down - but enabling them this way will also cause them to be closed cleanly when you do a normal system shutdown.

cobra gravatar imagecobra ( 2014-02-19 07:42:34 -0500 )edit

Question Tools

1 follower


Asked: 2014-02-18 15:53:39 -0500

Seen: 2,014 times

Last updated: Mar 05 '14