Author Topic: Improve your browsing experience with Profile-sync-daemon!  (Read 17673 times)

0 Members and 1 Guest are viewing this topic.

Offline mips

  • Held Mitglied
  • *****
  • Posts: 2892
  • Valkyrja
  • Branch: Testing
  • Desktop: XFCE
  • GPU Card: GTX 960
  • GPU driver: video-nvidia
  • Kernel: 3.16
  • Skill: Intermediate
Besides my desktop I also have a old (2005) HP nx6110 Celeron laptop with 4200rpm HDD. A few days ago I was trying out a few different browsers as the browsing is a bit sluggish when I came across profile-sync-daemon.

Profile-sync-daemon relocates the browser cache from the HDD to RAM which speeds things up a lot as speeds accessing RAM is about a million times faster than accessing a mechanical HDD!

Profile-sync-daemon currently auto-detects & manages chromium conkeror, firefox, firefox-trunk, chrome, chromium, heftig's aurora, midori, opera, opera-next, qupzilla.

Backup your cache and settings before proceeding just in case.

Installation:
Code: [Select]
yaourt -S profile-sync-daemon

Configuration:
Edit as root /etc/psd.conf
Code: [Select]
# List users separated by spaces whose browser(s) profile(s) will get symlinked
# and sync'ed to tmpfs.
# Do NOT list a user twice!
USERS="username1 username2"

and specify your username as well as any additional usernames you would like. In this file you can also specify specific browsers or leave the default settings so it applies to all browsers.

Enable & start the service:
Code: [Select]
sudo systemctl enable psd.service psd-resync.service
sudo systemctl start psd.service psd-resync.service


More info here https://wiki.archlinux.org/index.php/Profile-sync-daemon
« Last Edit: 23. July 2013, 18:03:40 by mips »

Offline mkennedy150

  • Sr. Mitglied
  • ****
  • Posts: 309
  • Branch: Stable
  • Desktop: KDE
  • GPU Card: Intel 4000 HD
  • GPU driver: free
  • Kernel: linux39-x64
  • Skill: Intermediate
Re: Improve your browsing experience with Profile-sync-daemon!
« Reply #1 on: 23. July 2013, 18:04:44 »
I do this without a service.  I setup tmpfs for /tmp in my fstab and link my cache to /tmp does the same thing.

Offline handy

  • Global Moderator
  • *****
  • Posts: 5738
  • Desktop: Openbox 3.6.1-3 & Worker :)
  • GPU Card: intel...
  • GPU driver: open-source
  • Kernel: OpenBSD
  • Skill: Intermediate
Re: Improve your browsing experience with Profile-sync-daemon!
« Reply #2 on: 24. July 2013, 00:55:43 »
@mkennedy: Write a step by step for the interested users?
The ultimate tyranny in a society is not control
by martial law. It is control by the psychological
manipulation of consciousness, through which reality
is defined so that those who exist within do not even
realize that they are in prison.
  —  Barbara Marciniak

Offline mkennedy150

  • Sr. Mitglied
  • ****
  • Posts: 309
  • Branch: Stable
  • Desktop: KDE
  • GPU Card: Intel 4000 HD
  • GPU driver: free
  • Kernel: linux39-x64
  • Skill: Intermediate
Re: Improve your browsing experience with Profile-sync-daemon!
« Reply #3 on: 24. July 2013, 01:55:29 »
I sure will in the next couple days.  I do this mainly to cut down on writes to my SSD.

Offline Esclapion

  • Support Team
  • ****
  • Posts: 5523
    • manjaro
  • Branch: stable
  • Desktop: Lxqt
  • GPU Card: GTX 970
  • GPU driver: nonfree
  • Kernel: 4.4.6
  • Skill: Advanced
Re: Improve your browsing experience with Profile-sync-daemon!
« Reply #4 on: 24. July 2013, 04:04:06 »
I do this without a service.  I setup tmpfs for /tmp in my fstab and link my cache to /tmp does the same thing.

I do the same. I mount both in tmpfs.  ;)
Venez nous rejoindre sur l'IRC francophone
Patrice - Violence is the last refuge of the incompetent (Asimov)

Offline mips

  • Held Mitglied
  • *****
  • Posts: 2892
  • Valkyrja
  • Branch: Testing
  • Desktop: XFCE
  • GPU Card: GTX 960
  • GPU driver: video-nvidia
  • Kernel: 3.16
  • Skill: Intermediate
Re: Improve your browsing experience with Profile-sync-daemon!
« Reply #5 on: 24. July 2013, 16:15:44 »
To see what it does,

Code: [Select]
[reon@obelix ~]$ profile-sync-daemon parse
Profile-sync-daemon v5.38.2 on Manjaro Linux.

 Systemd service is currently active.
 Systemd resync service is currently active.

Psd will manage the following per /etc/psd.conf settings:

 browser/psname:  chromium/chromium
 owner/group:     reon/users
 sync target:     /home/reon/.config/chromium
 tmpfs dir:       /tmp/reon-chromium
 profile size:    37M

 browser/psname:  firefox/firefox
 owner/group:     reon/users
 sync target:     /home/reon/.mozilla/firefox/9shb6xj3.default
 tmpfs dir:       /tmp/reon-firefox-9shb6xj3.default
 profile size:    14M

 browser/psname:  midori/midori
 owner/group:     reon/users
 sync target:     /home/reon/.config/midori
 tmpfs dir:       /tmp/reon-midori
 profile size:    20K

 browser/psname:  qupzilla/qupzilla
 owner/group:     reon/users
 sync target:     /home/reon/.config/qupzilla
 tmpfs dir:       /tmp/reon-qupzilla
 profile size:    45M

Offline manyaro

  • Vollwertiges Mitglied
  • ***
  • Posts: 231
  • Branch: unstable
  • Desktop: kde
  • GPU Card: intel
  • GPU driver: non-free
  • Kernel: 3.9
  • Skill: Guru
Re: Improve your browsing experience with Profile-sync-daemon!
« Reply #6 on: 24. July 2013, 21:59:13 »

Edit as root /etc/psd.conf


well...do not have it!
MAKE TROLLS DISAPPEAR: ->
Choose your Manjaro Profile -> choose the Modify Profile drop down menu -> choose the Buddies/Ignore List... -> Edit Ignore List -> add the Troll's user name -> the Troll is now gone!
-------------------------------------------------------------------------

I HATE 'GTK'!

Offline manyaro

  • Vollwertiges Mitglied
  • ***
  • Posts: 231
  • Branch: unstable
  • Desktop: kde
  • GPU Card: intel
  • GPU driver: non-free
  • Kernel: 3.9
  • Skill: Guru
Re: Improve your browsing experience with Profile-sync-daemon!
« Reply #7 on: 25. July 2013, 00:04:04 »
...?...
MAKE TROLLS DISAPPEAR: ->
Choose your Manjaro Profile -> choose the Modify Profile drop down menu -> choose the Buddies/Ignore List... -> Edit Ignore List -> add the Troll's user name -> the Troll is now gone!
-------------------------------------------------------------------------

I HATE 'GTK'!

Offline graysky

  • Neuling
  • *
  • Posts: 1
    • repo-ck.com
  • Skill: Advanced
Re: Improve your browsing experience with Profile-sync-daemon!
« Reply #8 on: 27. August 2013, 08:44:09 »
... A few days ago I was trying out a few different browsers as the browsing is a bit sluggish when I came across profile-sync-daemon

Thanks for the props - glad you're finding it useful.

I do this without a service.  I setup tmpfs for /tmp in my fstab and link my cache to /tmp does the same thing.

You can relocate your cache to tmpfs but psd does much more that that... your entire profile is relocated to tmpfs and synchronized with a backup on the file system (once / hr is the default).  It also syncs back when you reboot or shutdown so you do not lose any data/browser history/bookmarks, etc.

@mkennedy: Write a step by step for the interested users?

I assume manjaro mounts up /tmp to tmpfs by default?  Test this by:
Code: [Select]
df -h | grep /tmp
tmpfs           7.7G  107M  7.6G   2% /tmp

See: https://wiki.archlinux.org/index.php/Chromium_Tips_and_Tweaks#Cache_in_tmpfs
« Last Edit: 27. August 2013, 08:51:40 by graysky »

Offline mips

  • Held Mitglied
  • *****
  • Posts: 2892
  • Valkyrja
  • Branch: Testing
  • Desktop: XFCE
  • GPU Card: GTX 960
  • GPU driver: video-nvidia
  • Kernel: 3.16
  • Skill: Intermediate
Re: Improve your browsing experience with Profile-sync-daemon!
« Reply #9 on: 27. August 2013, 16:54:06 »
Thanks for the props - glad you're finding it useful.

No thank you for the deamon ;)

Offline aaditya

  • OpenRC Team
  • ****
  • Posts: 2844
    • My Website
  • Branch: Testing
  • Desktop: Xfce, Openbox
  • GPU Card: Intel HD 4000
  • Kernel: Linux 4.4 x86_64
  • Skill: Intermediate
Re: Improve your browsing experience with Profile-sync-daemon!
« Reply #10 on: 06. October 2013, 08:51:04 »
Sticky ;)

Offline bloomode

  • Vollwertiges Mitglied
  • ***
  • Posts: 247
  • Branch: testing
  • Desktop: varies
  • GPU Card: ATI
  • GPU driver: open source
  • Kernel: x86_64 GNU/Linux
  • Skill: Advanced
Re: Improve your browsing experience with Profile-sync-daemon!
« Reply #11 on: 06. October 2013, 09:12:53 »
 this is a  worthwhile daemon for most ....Graysky knows his stuff
 but for me Im spoiled I already have a lightening fast connection and
  any advantage wasnt really appreciable for me but its worth a go for most...
end~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                ((((((((([ 'Karma..........  she always waits' ])))))))))

                        https://www.noisebridge.net/

Offline moumin

  • Vollwertiges Mitglied
  • ***
  • Posts: 150
  • Branch: stable
  • Desktop: xfce 4.10
  • GPU Card: intel
  • GPU driver: free
  • Kernel: linux312-x64
  • Skill: Novice
Re: Improve your browsing experience with Profile-sync-daemon!
« Reply #12 on: 06. October 2013, 19:54:03 »
I'm sorry, I couldn't install it...

curl: (22) The requested URL returned error: 504 Gateway Time-out

Offline mips

  • Held Mitglied
  • *****
  • Posts: 2892
  • Valkyrja
  • Branch: Testing
  • Desktop: XFCE
  • GPU Card: GTX 960
  • GPU driver: video-nvidia
  • Kernel: 3.16
  • Skill: Intermediate
Re: Improve your browsing experience with Profile-sync-daemon!
« Reply #13 on: 06. October 2013, 21:42:04 »
I'm sorry, I couldn't install it...

curl: (22) The requested URL returned error: 504 Gateway Time-out


You must have network issues of some sort, I just tried it here and it works. Try again a bit later maybe.

Offline handy

  • Global Moderator
  • *****
  • Posts: 5738
  • Desktop: Openbox 3.6.1-3 & Worker :)
  • GPU Card: intel...
  • GPU driver: open-source
  • Kernel: OpenBSD
  • Skill: Intermediate
Re: Improve your browsing experience with Profile-sync-daemon!
« Reply #14 on: 07. October 2013, 01:17:03 »
I had forgotten about this topic until I saw it pop up yesterday. After I installed & set it up, I found that I had to kill Firefox & restart Openbox (with Firefox temporarily set to not automatically open) before I could run the following line successfully:

Code: [Select]
sudo systemctl start psd.service psd-resync.service
When I run:

Code: [Select]
profile-sync-daemon parse
I get a list of seven browsers that are set up. I'll edit /etc/psd.conf & slim that lot down.

Also, when I check in my ~/.mozilla/firefox/ I have the following, which looks like things are working as they should:

Code: [Select]
[handy@jarmano ~]$ ls .mozilla/firefox
0ysoc2vq.default-backup/  0ysoc2vq.default@  profiles.ini

This is now how /tmp looks:

Code: [Select]
[handy@jarmano ~]$ ls /tmp
flashgot.0ysoc2vq.default/       handy-opera/       orbit-handy/       serverauth.IykSWNgQzy
handy-chromium/                  handy-opera-next/  worker-handy/      zim-deamon.log
handy-firefox-0ysoc2vq.default/  handy-qupzilla/    yaourt-tmp-handy/
handy-midori/                    handy-rekonq/      zim-handy/
________


[edit:] OK, so I just killed psd with the following command:

Code: [Select]
sudo systemctl stop psd.service psd-resync.service
Which also shuts down Firefox.

Then I removed the # comment mark from the beginning of the following line in /etc/psd.conf & added firefox to it like so:

Code: [Select]
# Uncomment and select which browsers to manage if you wish
# Otherwise all available/supported browsers will be managed
BROWSERS="firefox"

Saved & restarted Openbox (with Firefox set to not auto-start), then ran the following command line:

Code: [Select]
sudo systemctl start psd.service psd-resync.service
Then opened Firefox, which immediately created the link ( this one - 0ysoc2vq.default@ ) to the /tmp file inside of the ~/.mozilla/firefox directory, like so:

Code: [Select]
[handy@jarmano ~]$ ls .mozilla/firefox
0ysoc2vq.default-backup/  0ysoc2vq.default@  profiles.ini

& made my /tmp file contents look a little slimmer & take up less space, like so:

Code: [Select]
[handy@jarmano ~]$ ls /tmp
flashgot.0ysoc2vq.default/       orbit-handy/   yaourt-tmp-handy/  serverauth.RMM3oayaMs
handy-firefox-0ysoc2vq.default/  worker-handy/  zim-handy/         zim-deamon.log

So all in all psd isn't hard to configure, start/stop & such.  8) I'll just have to run it for a while now & see if I notice it speeding up my browser.  ;)
« Last Edit: 07. October 2013, 01:41:49 by handy »
The ultimate tyranny in a society is not control
by martial law. It is control by the psychological
manipulation of consciousness, through which reality
is defined so that those who exist within do not even
realize that they are in prison.
  —  Barbara Marciniak