Closed admirabilis closed 4 years ago
This problem seems to have stopped on Ubuntu Bionic. I'll reopen if it starts happening again!
No, this was not solved. Only if I logout and $XDG_RUNTIME_DIR
is left intact I don't have any problems. If I reboot, I still loose data!
The solution is running systemctl --user stop psd.service
by hand before shutdown/reboot.
Not sure why... on Arch, I don't need to do anything beyond reboot or shutdown from either KDE or xfce4. How does ubuntu do it differently that requires the manual step you describe and is it a failure of my code?
When I stop it manually, I see disk I/O activity for about 1 or 2 minutes before I can shutdown. I guess either my profile is too big or it takes long to sync back because I have a HDD, not a SSD. I haven't run many tests yet, but during shutdown, systemd probably just sends a SIGKILL to services that take longer than a few seconds to finish.
My profile is ~430 MB in size. I have just 7 extensions, but I guess Chrome leaves a lot of old cruft behind.
My question is: does psd depend on a proper service shutdown, or should it be irrelevant and the error is happening somewhere else?
Are you using an overlayfs? That is much faster. Yes, big profiles and slow disks/buses can cause delays.
Yes, I've always used USE_OVERLAYFS. Large profiles seem to be a given for Chrome and Chromium based browsers. My VS Code profile is even larger than that, not even counting extensions, which are in a separate directory.
Not sure why... on Arch, I don't need to do anything beyond reboot or shutdown from either KDE or xfce4. How does ubuntu do it differently that requires the manual step you describe and is it a failure of my code?
I'm not sure what to do with this issue. Are you still facing it?
I recently got a laptop with a SSD. I want to try psd again, but the machine has an overheating problem. I'll update with more details when I'm able. The ridiculous constant writes with fsync() by Chrome has always bothered me a lot (and I find it really strange that nobody else seems to care).
OK, please open a new ticket if you're experiencing an issue.
I have been using psd for the last few weeks because Google Chrome calls fsync() about every second. In my test, psd does save some battery, and I'd like to have it working reliably for when I buy a SSD.
The problem is that because of psd, when I close Chrome and logout/reboot - my settings are restored from a state of days or weeks ago (probably the state of when I last started Chrome - I leave it open for a long time). I generally lose all my open tabs, recent bookmarks and even extensions. This happens most of the time.
psd was installed and configured as the following:
In an attempt to stop psd from restoring old configurations, I have tried setting
BACKUP_LIMIT=1
and nowUSE_BACKUPS=no
, but neither made any difference. The current status is: