You are not logged in.

#801 2017-06-21 08:45:12

OdinEidolon
Member
From: Belluno - Italy
Registered: 2011-01-31
Posts: 498

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

graysky wrote:

@OdinEidolon - Not sure... the oldest recovery snapshot should give the last-known-good profile.  I updated to 59 without issue hmm

I replaced "chromium" with all snapshots, but all present this problem. I suspect it might be chromium-related, and not PSD-related? Do you have any suggestion on what to look for?


Hardware: 2016 Dell XPS15 - matte FullHD - i5-6300HQ - 32GB DDR4 - Nvidia GTX960M - Samsung 840EVO 250GB SSD - 56Wh
Software: Plasma 5 - rEFInd - linux-ck - preload - prelink - verynice - psd - bumblebee

Offline

#802 2017-06-21 09:02:04

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,592
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

If you're rebuilding the profile,, keep psd out of the mix while you do it.  Get it setup the way you want and verify that it is working as expected.  Make a backup of it (tarball or whatever), and start psd.  Works as expected?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#803 2017-06-21 14:41:29

OdinEidolon
Member
From: Belluno - Italy
Registered: 2011-01-31
Posts: 498

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

graysky wrote:

If you're rebuilding the profile,, keep psd out of the mix while you do it.  Get it setup the way you want and verify that it is working as expected.  Make a backup of it (tarball or whatever), and start psd.  Works as expected?

Nope, I know I have to stop and restart PSD when I rename backups, I always do this. I am lost at this.
sad


Hardware: 2016 Dell XPS15 - matte FullHD - i5-6300HQ - 32GB DDR4 - Nvidia GTX960M - Samsung 840EVO 250GB SSD - 56Wh
Software: Plasma 5 - rEFInd - linux-ck - preload - prelink - verynice - psd - bumblebee

Offline

#804 2017-06-21 14:55:54

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,592
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

I am saying to rebuild the profile with all extensions, bookmarks, etc.  verify it works, backup, then try it with psd.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#805 2017-06-21 19:32:45

OdinEidolon
Member
From: Belluno - Italy
Registered: 2011-01-31
Posts: 498

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

graysky wrote:

I am saying to rebuild the profile with all extensions, bookmarks, etc.  verify it works, backup, then try it with psd.

Ok so you mean redoing the profile from scratch. Ok, I'll experiment more and then eventually end up doing that, probably. Thanks in the meantime.


Hardware: 2016 Dell XPS15 - matte FullHD - i5-6300HQ - 32GB DDR4 - Nvidia GTX960M - Samsung 840EVO 250GB SSD - 56Wh
Software: Plasma 5 - rEFInd - linux-ck - preload - prelink - verynice - psd - bumblebee

Offline

#806 2017-08-28 09:43:07

kihanos
Member
Registered: 2012-08-06
Posts: 13

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

Hey all,

I've been using psd for a while now, but I'm still having an issue I cannot solve on my own. Whenever psd is on, and a browser is opened (I tried Qupzilla, Firefox and Chomium), and the computer goes to sleep (suspend), then, on wake up, the browser has crashed.
Has anyone else experienced this kind of behaviour? I have tried both with and without overlayfs, with the same result. Note that if psd is not running, everything works fine.

Concerning usual outputs, the systemctl status is still nominal. A "psd p" just shows a lot of recovery folders (34 for Firefox, 3 for Qupzilla).

There is probably a more relevant output I could show you, but I don't know where to look exactly...

Thanks for your help :-)

Last edited by kihanos (2017-08-28 09:55:54)

Offline

#807 2017-08-28 10:05:56

OdinEidolon
Member
From: Belluno - Italy
Registered: 2011-01-31
Posts: 498

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

kihanos wrote:

Hey all,

I've been using psd for a while now, but I'm still having an issue I cannot solve on my own. Whenever psd is on, and a browser is opened (I tried Qupzilla, Firefox and Chomium), and the computer goes to sleep (suspend), then, on wake up, the browser has crashed.
Has anyone else experienced this kind of behaviour? I have tried both with and without overlayfs, with the same result. Note that if psd is not running, everything works fine.

Concerning usual outputs, the systemctl status is still nominal. A "psd p" just shows a lot of recovery folders (34 for Firefox, 3 for Qupzilla).

There is probably a more relevant output I could show you, but I don't know where to look exactly...

Thanks for your help :-)

Suspend works without a glitch for me. Firefox and chromium.


Hardware: 2016 Dell XPS15 - matte FullHD - i5-6300HQ - 32GB DDR4 - Nvidia GTX960M - Samsung 840EVO 250GB SSD - 56Wh
Software: Plasma 5 - rEFInd - linux-ck - preload - prelink - verynice - psd - bumblebee

Offline

#808 2017-09-08 00:01:08

buttcake
Member
Registered: 2016-10-16
Posts: 36

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

Does psd have an option to never touch the physical disk ?

Offline

#809 2017-09-09 19:25:38

Neven
Member
Registered: 2014-05-02
Posts: 74

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

buttcake wrote:

Does psd have an option to never touch the physical disk ?

Look here:
https://bbs.archlinux.org/viewtopic.php?pid=1733118

The second script there (called 'tb') does what you want (if I understood you correctly). And the other ones should also be useful for a Chrom{e,ium} user (there's a wrapper to open the bookmark manager and a script that sends Unix signals to root processes in a Chromium process tree, to kill it safely).

Last edited by Neven (2017-09-09 19:26:38)

Offline

#810 2017-11-14 06:41:33

Batou
Member
Registered: 2017-01-03
Posts: 259

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

I've been running psd for few months and absolutely love it! Thank you, graysky and rest of the devs!

I have a question about the cache. My cache is currently in ~/.cache/chromium/Default and I've noticed that it's not being moved to RAM by psd. I've looked at the wiki and noticed that there are suggestions about moving the cache to tmpfs. Well, how about using psd to handle the cache as well? I've been thinking about moving it to ~/.config/chromium by using something like: chromium --disk-cache-dir=~/.config/chromium and then letting the psd to handle it as well.

Any harm in doing that? Has anyone done this?


Please vote for all the AUR packages you're using. You can mass-vote for all of them by doing: "pacman -Qqm | xargs aurvote -v" (make sure to run "aurvote --configure"  first)

Offline

#811 2017-11-14 08:52:34

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,592
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

man psd wrote:

*Note that some browsers such as Chrome/Chromium, Firefox (since v21), Midori, and Rekonq actually keeps their cache directories separately from their browser profile directory. It is not within the scope of profile-sync-daemon to modify this behavior; users wishing to relocate this directory, may refer to the following url for several work-arounds: https://wiki.archlinux.org/index.php/Ch … e_in_tmpfs


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#812 2017-11-14 09:46:38

Batou
Member
Registered: 2017-01-03
Posts: 259

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

graysky wrote:
man psd wrote:

*Note that some browsers such as Chrome/Chromium, Firefox (since v21), Midori, and Rekonq actually keeps their cache directories separately from their browser profile directory. It is not within the scope of profile-sync-daemon to modify this behavior; users wishing to relocate this directory, may refer to the following url for several work-arounds: https://wiki.archlinux.org/index.php/Ch … e_in_tmpfs

Yep, I read that. Issue is that if I mount it on a tmpfs, cache won't be preserved between reboots. Since psd uses rsync, I was thinking about moving it to the same folder and just letting psd rsync everything over.

Last edited by Batou (2017-11-14 09:47:06)


Please vote for all the AUR packages you're using. You can mass-vote for all of them by doing: "pacman -Qqm | xargs aurvote -v" (make sure to run "aurvote --configure"  first)

Offline

#813 2017-11-14 10:59:47

adesh
Member
Registered: 2016-10-05
Posts: 167

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

or you can use asd for the cache.

Offline

#814 2017-11-14 20:17:41

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,592
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

I never cared to nor noticed an ill effect of having ~/.cache as tmpfs.  Your use case might be different.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#815 2017-11-15 01:04:54

Batou
Member
Registered: 2017-01-03
Posts: 259

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

I've looked at the psd's source and the way it syncs and don't see any reasons why it wouldn't sync properly some extra folders inside of the "Default". I'm actually tempted to do this but Chromium (the Arch build from extras anyway) has been extremely buggy for me lately and plan on abandoning it for another browser so I probably won't bother with it for now.


Please vote for all the AUR packages you're using. You can mass-vote for all of them by doing: "pacman -Qqm | xargs aurvote -v" (make sure to run "aurvote --configure"  first)

Offline

#816 2017-11-15 01:11:02

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,592
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

Again, I recommend just using tmpfs and trashing it between boots.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#817 2017-11-17 13:29:34

Batou
Member
Registered: 2017-01-03
Posts: 259

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

graysky wrote:

Again, I recommend just using tmpfs and trashing it between boots.

Alright, I've been running Chromium for the past day with cache on a tmpfs and haven't had any issues. Thanks for the advice graysky.


Please vote for all the AUR packages you're using. You can mass-vote for all of them by doing: "pacman -Qqm | xargs aurvote -v" (make sure to run "aurvote --configure"  first)

Offline

#818 2017-11-23 17:10:35

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,891
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

Running systemd --user does not seem to work

Profile-sync-daemon v6.31 on Arch Linux

 /usr/bin/psd [option]
  preview	Parse config file (/home/mrgreen/.config/psd/.psd.conf) to see which profiles will be managed.
  clean		Clean (delete without prompting) ALL crashrecovery dirs for all profiles.

 It is HIGHLY DISCOURAGED to directly call /usr/bin/psd to sync, resync, or to unsync.

 Instead, use systemd to start/stop profile-sync-daemon.

 systemctl --user [option] psd
  start		Turn on daemon; make symlinks and actively manage targets in tmpfs.
  stop		Turn off daemon; remove symlinks and rotate tmpfs data back to disc.
  enable	Autostart daemon when system comes up.
  disable	Remove daemon from the list of autostart daemons.
[mrgreen@arch ~]$ systemctl --user enable psd
[mrgreen@arch ~]$ systemctl | grep psd
[mrgreen@arch ~]$ systemctl --user start psd
[mrgreen@arch ~]$ systemctl | grep psd
[mrgreen@arch ~]$ 

Am I doing something wrong?


Mr Green

Offline

#819 2017-11-29 21:08:30

carlitos
Member
Registered: 2016-01-20
Posts: 16

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

Mr Green wrote:

Am I doing something wrong?

You probably are, try querying as --user:

systemctl --user|grep psd

Cheers


“We are what we repeatedly do. Excellence is not an act, but a habit.”

Offline

#820 2017-11-29 22:19:57

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,592
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

@Mr Green - Sorry, I did not see your reply.  I believe that carlitos is correct.  Try his command as simple: `psd p`

% psd p
Profile-sync-daemon v6.31 on Arch Linux

 Systemd service is currently active.
 Systemd resync-timer is currently active.
 Overlayfs v23 is currently active.

Psd will manage the following per /home/facade/.config/psd/.psd.conf:

 browser/psname:  chromium/chromium
 owner/group id:  facade/100
 sync target:     /home/facade/.config/chromium
 tmpfs dir:       /run/user/1000/facade-chromium
 profile size:    160M
 overlayfs size:  68M
 recovery dirs:   none

Or

% systemctl --user status psd
● psd.service - Profile-sync-daemon
   Loaded: loaded (/usr/lib/systemd/user/psd.service; enabled; vendor preset: enabled)
   Active: active (exited) since Wed 2017-11-29 14:59:16 EST; 2h 20min ago
     Docs: man:psd(1)
           man:profile-sync-daemon(1)
           https://wiki.archlinux.org/index.php/Profile-sync-daemon
  Process: 544 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
 Main PID: 544 (code=exited, status=0/SUCCESS)
   CGroup: /user.slice/user-1000.slice/user@1000.service/psd.service

Nov 29 14:59:16 ease systemd[538]: Starting Profile-sync-daemon...
Nov 29 14:59:16 ease systemd[538]: Started Profile-sync-daemon.

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#821 2017-11-30 16:45:24

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,891
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

Look like it is running:

[mrgreen@arch ~]$ psd d
Profile-sync-daemon v6.31 on Arch Linux

 /usr/bin/psd [option]
  preview	Parse config file (/home/mrgreen/.config/psd/.psd.conf) to see which profiles will be managed.
  clean		Clean (delete without prompting) ALL crashrecovery dirs for all profiles.

 It is HIGHLY DISCOURAGED to directly call /usr/bin/psd to sync, resync, or to unsync.

 Instead, use systemd to start/stop profile-sync-daemon.

 systemctl --user [option] psd
  start		Turn on daemon; make symlinks and actively manage targets in tmpfs.
  stop		Turn off daemon; remove symlinks and rotate tmpfs data back to disc.
  enable	Autostart daemon when system comes up.
  disable	Remove daemon from the list of autostart daemons.
[mrgreen@arch ~]$ systemctl --user status psd
● psd.service - Profile-sync-daemon
   Loaded: loaded (/usr/lib/systemd/user/psd.service; enabled; vendor preset: enabled)
   Active: active (exited) since Thu 2017-11-30 16:33:50 GMT; 4min 22s ago
     Docs: man:psd(1)
           man:profile-sync-daemon(1)
           https://wiki.archlinux.org/index.php/Profile-sync-daemon
  Process: 454 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
 Main PID: 454 (code=exited, status=0/SUCCESS)
   CGroup: /user.slice/user-1000.slice/user@1000.service/psd.service

Nov 30 16:33:50 arch systemd[447]: Starting Profile-sync-daemon...
Nov 30 16:33:50 arch systemd[447]: Started Profile-sync-daemon.

Mr Green

Offline

#822 2017-12-02 18:05:14

c00ter
Member
From: Alaskan in Washington State
Registered: 2014-08-28
Posts: 386

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

Mr Green, did you change /home/user/.config/psd/psd.conf to reflect the browser(s) you will be using with PSD? And did you change /etc/sudoers to use the overlayfs mode as the PSD wiki suggests?   https://wiki.archlinux.org/index.php/Pr … fs_mode.3F


UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn

Offline

#823 2017-12-02 18:53:44

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,891
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

  seamonkey
#  surf
#  vivaldi
#  vivaldi-snapshot
#
BROWSERS="firefox"

# Uncomment and set to "no" to completely disable the crash recovery feature.
#

Have not got overlay set....


Mr Green

Offline

#824 2018-01-05 14:16:14

PBS
Member
Registered: 2015-06-28
Posts: 52

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

@graysky Is there an advantage of this approach as opposed to just blocking fsync? As far as I can see, mounting the filesystem with commit=(some large number) and turning on libeatmydata has exactly the same benefits as psd does in overlayfs mode. (Granted, psd has a backup system, and some users may only want this enabled for browsers.)

Offline

#825 2018-01-14 09:29:26

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,891
Website

Re: profile-sync-daemon - keep browser profiles in tmpfs and sync'ed

I have tried to get psd running again but output I get seems to show psd has stopped?

[mrgreen@arch system]$ systemctl --user status psd.service
● psd.service - Profile-sync-daemon
   Loaded: loaded (/usr/lib/systemd/user/psd.service; enabled; vendor preset: enabled)
   Active: active (exited) since Sun 2018-01-14 09:20:55 GMT; 2min 37s ago
     Docs: man:psd(1)
           man:profile-sync-daemon(1)
           https://wiki.archlinux.org/index.php/Profile-sync-daemon
  Process: 446 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
 Main PID: 446 (code=exited, status=0/SUCCESS)

Jan 14 09:20:55 arch systemd[440]: Starting Profile-sync-daemon...
Jan 14 09:20:55 arch systemd[440]: Started Profile-sync-daemon.
[mrgreen@arch system]$ 

Mr Green

Offline

Board footer

Powered by FluxBB