Setting up a Profile-sync-daemon so the browsers profiles are in RAM and synchronized to disk:
sudo apt install fatrace && sudo fatrace -t|grep irefox # list disk writing done by Firefox
sudo apt install profile-sync-daemon # install deb/ubuntu
psd p # show what will daemon do
# Check the .conf file it outputs ( $HOME/.config/psd/.psd.conf ), I have NOT enabled overlayfs option since it is claimed to be insecure #286
# stop your browsers now manually
systemctl --user enable psd && systemctl --user stop psd && systemctl --user start psd
# start your browsers now manually
sudo fatrace -t|grep irefox # list disk writing done by Firefox. I can see that these are done at the /tmp
ncdu -x /tmp # directory sizes viewer shows 800MB of a disk space used by /tmp/cache2/entries
ps -eo rss,cmd | awk '/firefox/{sum+=$1} END {print sum/1024" MB"}' # shows 2547.52 MB of memory used
ps_mem tool shows "1.5 GiB" RAM and 5.2 GiB SWAP.
I hope that all is right, or I have missed something?