You are not logged in.
Wrote my own daemonized version of a script that will symlink your browser's profile directories to tmpfs and keep them sync'ed using rsync. My stuff is based on this script which I've been using for years except my version is both daemonized and handles the following browsers automatically:
*Chromium
*Conkeror
*Firefox
*Google-chrome
*Heftig's Aurora
*Midori
*Opera
*Opera-next
*QupZilla
Try running psd in 'parse' mode which will show you exactly what it plans to sync and manage for you based on your /etc/psd.conf
Works natively with systemd. Feedback is welcomed.
AUR: https://aur.archlinux.org/packages.php?ID=54516
Wiki: https://wiki.archlinux.org/index.php/Pr … ync-daemon
Source: https://github.com/graysky2/profile-sync-daemon
Last edited by graysky (2012-12-02 21:07:43)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Online
This is a very slick tool. Thank you for supporting Opera!
Offline
You're welcome. Love your avatar btw!
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Online
I installed this, then was forced to hard reboot machine due to unknown gnome3 problem. Upon restart Firefox complains with "Profile missing" and sure enough, there's no /tmp/$USER-mozilla anymore, even if I ask psd to sync.
Copying ~/.mozilla-backup to /tmp/$USER-mozilla fixes this, but is there any reason why psd can't do it automatically?
Offline
I installed this, then was forced to hard reboot machine due to unknown gnome3 problem. Upon restart Firefox complains with "Profile missing" and sure enough, there's no /tmp/$USER-mozilla anymore, even if I ask psd to sync.
Copying ~/.mozilla-backup to /tmp/$USER-mozilla fixes this, but is there any reason why psd can't do it automatically?
Instead of handling this automatically, I would suggest a "recover $USER" command in "rc.psd".
Offline
I installed this, then was forced to hard reboot machine due to unknown gnome3 problem. Upon restart Firefox complains with "Profile missing" and sure enough, there's no /tmp/$USER-mozilla anymore, even if I ask psd to sync.
Copying ~/.mozilla-backup to /tmp/$USER-mozilla fixes this, but is there any reason why psd can't do it automatically?
@therico - Good call! Just updated to version 2.4 which now auto-recovers stale files/link due to a system crashes or other ungraceful states.
Last edited by graysky (2011-12-10 11:14:36)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Online
Hi, thanks for your work! This script is great, my hard disk has never been so happy!
I have just one little problem: I'm using systemd, and when I start my pc, login and start firefox, all my add-ons are not loaded... So I have to manually sync the profile with
# rc.d restart psd
The output of
# systemctl status psd.service
is
psd.service - Legacy unit for psd.service
Loaded: loaded (/run/systemd/generator/arch-daemons.target.wants/psd.service)
Active: failed since Mon, 12 Dec 2011 12:52:22 +0100; 30min ago
Process: 508 ExecStart=/etc/rc.d/psd start (code=killed, signal=TERM)
CGroup: name=systemd:/system/psd.service
Obviously "psd" is in my "rc.conf" daemons list.
Is there any way to make it work right with systemd?
Thank you.
Last edited by neuromancer85 (2011-12-12 12:43:46)
Offline
Sorry man, I have no experience with systemd at all. Actually, your post caused me to google it . You know more than I do at this point. In principal, I see no reason why it shouldn't work with an alternative initd. I also can't think why your extensions/addons aren't copied over on startup. Maybe others have more experience with systemd.
Last edited by graysky (2011-12-12 21:45:10)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Online
Can you add support for midori? It is in [extra].
Offline
Done, enjoy!
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Online
@graysky: Fine, I've made it work now, I just had to put "psd" after "slim" in the rc.conf daemons list
Thanks for the support
Offline
would luakit benefit from this?
Offline
If it saves your browser cache, temp files, profile, etc. to a profile directory then, yes. Any browser that does a lot of read/write to the HDD will benefit. Let me know.
Last edited by graysky (2011-12-14 09:28:13)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Online
would luakit benefit from this?
Does laukit even cache files to disk? I tried it before and it only puts your config files in ~/.config/laukit so it probably does not matter.
Offline
I guess you're right.
Offline
graysky,
I wasn't using your plugin, but "firefox-tmpfs", just because I found it before, which works almost the same than yours, and my computer crashed. When I rebooted the information of one plugin, "session manager", went back to the state it was about one week ago. This is weird, because I had rebooted the computer many times during this week, and I had a cron job to sync the profiles, but it didn't go back to the state it was in the last sync, but to a partial state.
I assume that I had a partial sync when the computer crashed. To prevent this the sync process could be made like this:
1 - Initially, rename .mozilla to .mozilla-backup, like you do
2 - Then, instead of sync /dev/shm with .mozilla-backup, sync to .mozilla-backup-partial
3 - when rsync is done, swap .mozilla-backup-partial and .mozilla-backup
This way, .mozilla-backup would never be in a middle partial state.
Last edited by Pajaro (2011-12-20 12:30:54)
Offline
this daemon is truly awesome and it helps me reducing I/O of my SSD!
would it be possible to support thunderbird? in my case, thunderbird is running the all day minimized to tray and i noticed that it reads/writes to the hd very often (once in 10 sec)
Offline
Problem with thunderbird is that folks like me have 200+ Meg's of old emails POP3 saved. I wouldn't wanna sync that load all the time. you can spin up a 'thunderbird-sync-daemon' that does just that if you base it on this script, but I want to keep psd limited to browsers. Go ahead and fork it from my github if you wish: https://github.com/graysky2/profile-sync-daemon
Last edited by graysky (2011-12-20 19:56:33)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Online
Great work, graysky! I checked out your package a few weeks ago, as well as https://aur.archlinux.org/packages.php?ID=54386/ while searching for ways speed up my system. I wish I could remember or kept better notes on the problems I was having. They weren't from your script, but rather from me installing/uninstalling and moving all kinds of stuff around on my system. It had something to do with an odd combination of the original profile,backup, and link being present/missing. Anyway, I used your script as the basis and inspiration for my newest tweaking project of installing the browsers along with along side the browser profiles in tmpfs. Thanks.
Offline
Wow, can't thank you enough for this. Been using it for a while with great results on Firefox but had the idea today I could add Second Life clients ... Mind you, the cache for something like Firestorm is 1-2 gbs but it almost doubled my frame rate. Very cool.
github ○
Offline
i'm not good at writing wiki articles but someone should definitely add psd to the maximizing performance article
https://wiki.archlinux.org/index.php/Ma … erformance
Offline
I keep having problems with PSD.
After nearly every system start my chromium profile is empty and started with a fresh one.
I even start psd in foreground in rc.conf
Offline
Very odd. What is your partition setup? Post:
grep DAEMONS /etc/rc.conf
cat /etc/fstab
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Online
I love you graysky
questions:
1) how to benchmark this?
2) how much memory psd can eat with time?
Offline
I love you graysky
questions:
1) how to benchmark this?
2) how much memory psd can eat with time?
1) Dunno - for me it's more about saving SSD access than a speed gain.
2) Psd doesn't use any memory itself. The amount of RAM used is dependant entirely on:
*How many users you are syncing (defined in /etc/psd.conf)
*How many browsers you are syncing (currently if you have browser profiles for the users you defined that relate to firefox, chromium and opera they get synced automatically)
*The size of individual profile directories for each browser
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Online