You are not logged in.

#776 2016-10-22 20:40:52

jpjenkins
Member
Registered: 2014-03-24
Posts: 104

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

Thanks for your patience.

The current issue appears to be simply that the service is not starting.

systemctl --user enable psd.service
Failed to enable unit: No such file or directory

As I mentioned above, I have the psd service files so it's unclear why psd isn't starting through systemctl, whatever the combination of commands I use.

Sorry I can't be of more help regarding troubleshooting. This is all I know at the moment.

Thanks

Offline

#777 2016-10-22 22:09:09

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

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

Perhaps you need to issue the following first?

systemctl --user daemon-reload

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

Offline

#778 2016-10-22 23:01:45

jpjenkins
Member
Registered: 2014-03-24
Posts: 104

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

No luck hmm

Offline

#779 2016-10-22 23:07:02

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

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

You installed from the AUR right?  What is the output of

pacman -Ql profile-sync-daemon | grep service

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

Offline

#780 2016-10-22 23:13:06

jpjenkins
Member
Registered: 2014-03-24
Posts: 104

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

I installed from yaourt "profile-sync-daemon-git".

The above command doesn't find anything. I had originally installed from pacman, just the standard package, but that caused problems with the pam_systemd, xdg fails etc. like other's experienced. I'm off to bed just now but I'll try the original again tomorrow and reply back with the results.

Thanks for your assistance!

The worst toilet in Scotland was in my hometown hehe. Hope it's got blue lights at least, keep the junkies away wink

Offline

#781 2016-10-22 23:36:33

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

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

Please build the stable version with makepkg not an AUR helper 'makepkg -srci' will do.  Yes, one of the best movies of the 90s!


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

Offline

#782 2016-10-23 10:07:06

jpjenkins
Member
Registered: 2014-03-24
Posts: 104

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

Built from source and now it's running with no issues smile Thanks!

Offline

#783 2016-10-23 10:13:23

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

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

jpjenkins wrote:

Built from source and now it's running with no issues smile Thanks!

So what was the problem?  You mentioned that you initially built using an AUR helper, correct?  When you said you just built from source does that mean with makepkg or from github, make, make install?


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

Offline

#784 2016-10-23 10:18:04

jpjenkins
Member
Registered: 2014-03-24
Posts: 104

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

I originally installed straight from pacman, this caused the logind to mess stuff up similar to other folks problems. Quite strange.

Then I installed from AUR which didn't let me start the service.

And now I've cloned from github, no issues smile

Thanks again man.

Offline

#785 2016-10-23 10:25:56

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

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

I am still confused as to why this is... you can of course install from source but that defeats the purposes of using package manager.  I recommend that you uninstall psd (stop it first then make uninstall as root).  Then download from the AUR, build with `makepkg -src` and then `pacman -U package.tar.xz`.  It works!


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

Offline

#786 2016-10-23 13:27:53

jpjenkins
Member
Registered: 2014-03-24
Posts: 104

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

I'm okay with the git to be honest, I understand the benefits of using package manager but I have few git installs now and manage them with no problems smile

One last question, though big_smile
I was looking at the wiki again and while wrapping my head around what psd actually does, I found this:

Note: Some browsers such as Chrome/Chromium, Firefox (since v21), Midori, and Rekonq actually keeps their cache directories separately from their profile directory. It is not within the scope of profile-sync-daemon to modify this behavior; users are encouraged to refer to the Chromium tweaks#Cache in tmpfs section for Chromium and to the Firefox on RAM article for several workarounds. An easy fix is to move the various browsers' cache directory from their default location (e.g. /home/$USER/.cache/<browser>/<profile>/) to the corresponding profile directory, e.g. /home/$USER/.mozilla/firefox/<profile>/cache, and then symlink the new cache folder back to its original location. This way, profile-sync-daemon will automatically take into account the cache folder too.

Has this been resolved? I want to have my browser cache being stored in ram to speed things up as much as possible. I was going to edit my fstab with a tmpfs pointing to my .cache folder but don't want to be messing things up smile

Cheers smile

Offline

#787 2016-10-23 13:35:10

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

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

jpjenkins wrote:

Note: Some browsers such as Chrome/Chromium, Firefox (since v21), Midori, and Rekonq actually keeps their cache directories separately from their profile directory. It is not within the scope of profile-sync-daemon to modify this behavior; users are encouraged to refer to the Chromium tweaks#Cache in tmpfs section for Chromium and to the Firefox on RAM article for several workarounds. An easy fix is to move the various browsers' cache directory from their default location (e.g. /home/$USER/.cache/<browser>/<profile>/) to the corresponding profile directory, e.g. /home/$USER/.mozilla/firefox/<profile>/cache, and then symlink the new cache folder back to its original location. This way, profile-sync-daemon will automatically take into account the cache folder too.

Has this been resolved? I want to have my browser cache being stored in ram to speed things up as much as possible. I was going to edit my fstab with a tmpfs pointing to my .cache folder but don't want to be messing things up smile

The resolution is the tmpfs mount which doesn't mess up anything in my experience.


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

Offline

#788 2016-10-23 20:31:59

jpjenkins
Member
Registered: 2014-03-24
Posts: 104

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

Hi graysky,

Everything has been set up nicely now.

Put this in my fstab:

tmpfs   /home/jamie/.cache/chromium     tmpfs   noatime,nodev,nosuid,size=700M  0       0

Rebooted and did a check:

$ findmnt --target ~/.cache/chromium
TARGET                                        SOURCE FSTYPE OPTIONS
/home/jamie/.cache/chromium tmpfs  tmpfs  rw,nosuid,nodev,noatime,size=716800k

Detailing for other's who could benefit too smile
This means I can stretch another year out of my already 7 year old laptop hehe. Thanks for your patience!

Offline

#789 2016-12-02 16:33:36

kogone
Member
Registered: 2015-06-10
Posts: 5

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

i'm on a dell chromebook with silvermont dual core & 4gb ram

i patched uksm into linux-lts-ck for the RAM benefits.  i try out every tweak to improve
performance due to its limited resources.

by using thunderbird as only an IMAP client with psd and storing its cache with psd,
it moved from "this is going to be really annoying but the situation calls for it" category
into the "tolerable" category!

running firefox with 20 tabs open & thunderbird takes up 1gb ram on a lxde environment.

definitely worth checking out if you have a similar setup.

thanks @graysky for making such enhancements available to everyone

Offline

#790 2017-01-30 00:31:51

HansAnderson
Member
Registered: 2013-12-17
Posts: 13

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

psd p
/usr/bin/psd: line 341: ${#DIRArr[@]##*/}: bad substitution

it's help

oops sorry ))

Last edited by HansAnderson (2017-02-01 13:03:44)

Offline

#791 2017-01-30 20:42:50

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

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

@Hans - What version are you running; this was merged 4 months ago.


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

Offline

#792 2017-03-31 14:54:25

jpjenkins
Member
Registered: 2014-03-24
Posts: 104

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

I've been experiencing some problems with psd. It crashes my xdg often and certain things that use the cache become slower too. For instance, using hover zoom becomes problematic with certain sites, perhaps this is just coincidence but imgur just doesn't work anymore  with hover zoom and I suspect that it's psd.

Anyway, I'd like to stop using it yet I have no psd.service, I installed with git and now I don't know how to stop/uninstall/delete it. Can you point me in the right direction please?

Thanks

Offline

#793 2017-03-31 18:20:12

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

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

You installed with git meaning you used the git package from the AUR or you just make make install from a git pull?  You can run make uninstall and it should capture everything just be sure you stop is first.  Also remember that there is a psd.service but it is a user service not a system service.


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

Offline

#794 2017-06-19 17:03:40

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

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

After a crash it seems that my chromium profile was completely borked.

Chromium starts and works fine, but look at the result when it is started:
http://imgur.com/a/TTgSP
NJCBFrL.png

All extensions are gone! The rest seems to work fine...

I have several chromium-backup-crashrecovery-* folder, but rotating them does not solve the issue. How can I proceed?

EDIT: oh wait wait. Could it be that I updated chromium to 59? Maybe at the same time, I'm not sure.

Last edited by OdinEidolon (2017-06-19 18:39:35)


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

#795 2017-06-20 07:10:38

emphire
Member
From: Canada
Registered: 2007-03-21
Posts: 203

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

Maybe I'm missing something but it doesn't seem to be working for me. Please let me know if you have any ideas.

$ ls /run/user/1000/jon*
ls: cannot access '/run/user/1000/jon*': No such file or directory

Here is my setup:

$ systemctl --user start psd
$ systemctl --user status -l psd
● psd.service - Profile-sync-daemon
   Loaded: loaded (/usr/lib/systemd/user/psd.service; disabled; vendor preset: e
   Active: active (exited) since Mon 2017-06-19 23:59:32 PDT; 3s ago
     Docs: man:psd(1)
           man:profile-sync-daemon(1)
           https://wiki.archlinux.org/index.php/Profile-sync-daemon
  Process: 26913 ExecStop=/usr/bin/profile-sync-daemon unsync (code=exited, stat
  Process: 27051 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
 Main PID: 27051 (code=exited, status=0/SUCCESS)
   CGroup: /user.slice/user-1000.slice/user@1000.service/psd.service

Jun 19 23:59:32 ghost systemd[440]: Starting Profile-sync-daemon...
Jun 19 23:59:32 ghost systemd[440]: Started Profile-sync-daemon.

$ 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/jon/.config/psd/psd.conf:

 browser/psname:  google-chrome/chrome
 owner/group id:  jon/1000
 sync target:     /home/jon/.config/google-chrome
 tmpfs dir:       /run/user/1000/jon-google-chrome
 profile size:    81M
 overlayfs size:  
 recovery dirs:   none

 browser/psname:  firefox/firefox
 owner/group id:  jon/1000
 sync target:     /home/jon/.mozilla/firefox/sy691yzi.default
 tmpfs dir:       /run/user/1000/jon-firefox-sy691yzi.default
 profile size:    21M
 overlayfs size:  
 recovery dirs:   none

 browser/psname:  epiphany/epiphany
 owner/group id:  jon/1000
 sync target:     /home/jon/.config/epiphany
 tmpfs dir:       /run/user/1000/jon-epiphany
 profile size:    3.6M
 overlayfs size:  
 recovery dirs:   none

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

I tested and confirmed that I have passwordless access to execute psd-overlay-helper

$ sudo psd-overlay-helper 
Do not call this script directly; psd will do so for you. Thank you, come again.

I did see this in my logs every time I tried to start the psd.service:

Jun 20 00:06:12 gsys systemd[440]: psd-resync.service: Main process exited, code=exited, status=1/FAILURE
Jun 20 00:06:12 gsys systemd[440]: Failed to start Timed resync.
Jun 20 00:06:12 gsys systemd[440]: psd-resync.service: Unit entered failed state.
Jun 20 00:06:12 gsys systemd[440]: psd-resync.service: Failed with result 'exit-code'.

I also tried without USE_OVERLAYFS and had the same results. I don't imagine it would have an impact but I am running on btrfs raid with compression enabled and I'm using chromium-vaapi-bin from AUR as a browser.

Offline

#796 2017-06-20 19:31:21

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

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

@OdinEidolon - Not sure... the oldest recovery snapshot should give the last-known-good profile.  I updated to 59 without issue hmm
@emphire - I don't know about the btrfs piece as I am not a fan of that filesystem.  Can you try to minimize the variables here:

1) Stop psd.
2) Edit the config and just manage your primary browser initially.
Same result when starting?


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

Offline

#797 2017-06-20 21:27:29

emphire
Member
From: Canada
Registered: 2007-03-21
Posts: 203

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

Thanks graysky, I tried with just Chromium and it has the same error but when I try with just Firefox enabled it works. Any ideas on how I can narrow down the issue with Chromium?

Offline

#798 2017-06-20 21:29:50

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

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

I am using chromium (from the repos) as my primary browser without issue... I have not encountered this before.  Are you certain that /run/user/... is not being created for chromium but it is for firefox?


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

Offline

#799 2017-06-20 21:38:27

emphire
Member
From: Canada
Registered: 2007-03-21
Posts: 203

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

Sorry, my mistake, I had a chromium window still open on another desktop. I had an issue with adding epiphany but found there was a process running in the background called epiphany-search. I killed it and now everything works with BROWSERS commented out.

Thanks for your help!

Offline

#800 2017-06-20 21:44:54

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

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

You're welcome... systemd logging makes it tough for you to see but psd won't sync be design is browsers are running while you try to do it.


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

Offline

Board footer

Powered by FluxBB