You are not logged in.

#876 2020-08-24 14:21:44

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

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

graysky wrote:

This is not a psd thing, it's a chromium thing.  I do not like chromium caching to my disk.  See: https://wiki.archlinux.org/index.php/Ch … e_in_tmpfs

If you want to do this, recommend you:
1) stop psd
2) close chromium
3) backup your profile just in case you screw up something
4) Impliment the wiki's suggestion I linked
5) optionally manually delete the cached items outside of that scope
For example, I routinely delete:
~/.config/chromium/Service\ Worker/CacheStorage/*
~/.config/chromium/GPUCache/*

6) restart psd

Well on the other hand I don't have 3GB of spare RAM to cache all the Application Cache (which is what is taking up most of the space)... though choice. Thanks anyway.


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

#877 2020-08-24 17:15:44

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

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

You don't need to relocate all application cache to tmpfs, you can do it just for your browser.  See the link.


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

Offline

#878 2020-08-24 18:34:21

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

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

graysky wrote:

You don't need to relocate all application cache to tmpfs, you can do it just for your browser.  See the link.

Thanks, I know that. However, my chromium Application Cache folder is 3GB (no idea why it is that large). I do not mean the cache for all system applications!

The one located in
~/.config/chromium/Default/Application Cache/Cache/


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

#879 2021-01-28 09:25:39

InvisibleRasta
Member
Registered: 2017-04-12
Posts: 77

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

been trying to get psd working but after installing and running psd and editing the config file... I launch the daemon with systemctl --user start psd   and it fails:

Job for psd.service failed because the control process exited with error code.
See "systemctl --user status psd.service" and "journalctl --user -xe" for details.
systemctl --user status psd.service
● psd.service - Profile-sync-daemon
     Loaded: loaded (/usr/lib/systemd/user/psd.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Thu 2021-01-28 10:21:24 CET; 3min 31s ago
       Docs: man:psd(1)
             man:profile-sync-daemon(1)
             https://wiki.archlinux.org/index.php/Profile-sync-daemon
    Process: 6139 ExecStart=/usr/bin/profile-sync-daemon startup (code=exited, status=1/FAILURE)
   Main PID: 6139 (code=exited, status=1/FAILURE)

Jan 28 10:21:24 arch systemd[833]: Starting Profile-sync-daemon...
Jan 28 10:21:24 arch profile-sync-daemon[6139]: Refusing to start; firefox is running by invra!
Jan 28 10:21:24 arch systemd[833]: psd.service: Main process exited, code=exited, status=1/FAILURE
Jan 28 10:21:24 arch systemd[833]: psd.service: Failed with result 'exit-code'.
Jan 28 10:21:24 arch systemd[833]: Failed to start Profile-sync-daemon.  

Offline

#880 2021-01-28 09:36:18

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

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

Do you have firefox running?  Close it before starting psd.

InvisibleRasta wrote:
...
Jan 28 10:21:24 arch profile-sync-daemon[6139]: Refusing to start; firefox is running by invra!
...

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

Offline

#881 2021-02-09 09:04:15

cookiewookie
Member
Registered: 2020-12-03
Posts: 5

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

Thank you for this great contribution.

I wonder if I could misuse the tool to achieve a secondary sync via network.

My goal is to have several browsers ,*chrome,chromium, firefox, firefox-dev in sync on 2 machines ,*arch and macos, at home.

Would this be possible in theory?

The browser sync services do not suffice as these miss many settings especially regarding the browser profiles and extension profiles.

best

Last edited by cookiewookie (2021-02-09 09:05:18)

Offline

#882 2021-03-29 15:25:06

DAC324
Member
Registered: 2020-03-12
Posts: 51

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

Thanks a lot from my side for this nice program.
Unfortunately, it seems to have some problems with the latest Chromium Developer versions. They spit out an error message saying "your profile may be damaged" and as a consequence, all your settings are lost.

UPDATE: Looks like, especially when setting up psd for more than one browser, you will have to increase the size of the tmpfs directory used.

Last edited by DAC324 (2021-03-29 15:58:46)

Offline

#883 2021-05-31 10:45:25

ziltoid
Member
Registered: 2020-10-15
Posts: 12

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

Hello and thanks for the program.

I recently installed it but I'm not sure if it's working as intended in my setup. Comparing the output of psd p found in Profile-sync-daemon#Preview_(parse)_mode and that obtained on my pc

Profile-sync-daemon v6.44

 systemd service: active
 resync-timer:    active
 sync on sleep:   disabled
 use overlayfs:   enabled

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

 browser/psname:  firefox/firefox
 owner/group id:  ziltoid/1000
 sync target:     /home/ziltoid/.mozilla/firefox/lt3s81c4.default
 tmpfs dir:       /home/ziltoid/.config/ziltoid-firefox-lt3s81c4.default
 profile size:    4.0K
 overlayfs size:  
 recovery dirs:   none

 browser/psname:  firefox/firefox
 owner/group id:  ziltoid/1000
 sync target:     /home/ziltoid/.mozilla/firefox/64tjav0j.default-release
 tmpfs dir:       /home/ziltoid/.config/ziltoid-firefox-64tjav0j.default-release
 profile size:    211M
 overlayfs size:  
 recovery dirs:   none

I can see that in my case the overlayfs size is absent and the recovery dirs are not specified. Is it normal?

I have also relocated FF cache on RAM as wrote in https://wiki.archlinux.org/title/Firefo … disk_cache and the .default files are linked to the /run dir.

ls -Alh ~/.mozilla/firefox 
total 32K
lrwxrwxrwx  1 ziltoid ziltoid   55 mag 31 09:13  64tjav0j.default-release -> /run/user/1000/ziltoid-firefox-64tjav0j.default-release
drwx------ 16 ziltoid ziltoid 4.0K mag 31 11:34  64tjav0j.default-release-back-ovfs
drwx------ 16 ziltoid ziltoid 4.0K mag 31 00:01  64tjav0j.default-release-backup
drwx------  3 ziltoid ziltoid 4.0K mag  6 18:50 'Crash Reports'
-rw-r--r--  1 ziltoid ziltoid   62 feb  1 21:10  installs.ini
lrwxrwxrwx  1 ziltoid ziltoid   47 mag 31 09:13  lt3s81c4.default -> /run/user/1000/ziltoid-firefox-lt3s81c4.default
drwx------  2 ziltoid ziltoid 4.0K mag 31 09:13  lt3s81c4.default-back-ovfs
drwx------  2 ziltoid ziltoid 4.0K mag 30 21:11  lt3s81c4.default-backup
drwx------  2 ziltoid ziltoid 4.0K ott 15  2020 'Pending Pings'
-rw-r--r--  1 ziltoid ziltoid  259 feb  1 21:10  profiles.ini

Last edited by ziltoid (2021-05-31 10:57:06)

Offline

#884 2021-05-31 12:33:42

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

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

No, the size should be 0 if no data are written.  Did you make changes to psd.conf while it was running?  They will be applied the next time you start the daemon.  Exit your browser, and restart the daemon.


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

Offline

#885 2021-05-31 14:18:40

ziltoid
Member
Registered: 2020-10-15
Posts: 12

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

Just to be sure I quit FF and stopped and restarted the service with

[ziltoid@arch ~]$ systemctl --user stop psd.service 
[ziltoid@arch ~]$ systemctl --user enable --now psd.service

but the output of psd p is the same as before.

Offline

Board footer

Powered by FluxBB