graysky2 / profile-sync-daemon

Symlinks and syncs browser profile dirs to RAM thus reducing HDD/SDD calls and speeding-up browsers.
https://wiki.archlinux.org/index.php/Profile-sync-daemon
Other
910 stars 88 forks source link

PSD seems to slow boot #65

Closed leleleSDX closed 10 years ago

leleleSDX commented 10 years ago

I've been experiencing slow boots recently, I checked my system using systemd. It turns out PSD is using 25 secs total, 11 secs on just itself. Am I doing something wrong here? I enabled it using systemctl, and I updated the frequency to make it every 10 mins, other than that, I didn't do anything much. Any help will be gladly appreciated.

graysky2 commented 10 years ago

How big are your profiles that your syncing and how fast is your hdd or ssd? Guessing your profile is really big or your disk is really slow... Or both, try profile-cleaner to optimize the databases and see if that helps.

On Monday, February 3, 2014, leleleSDX notifications@github.com wrote:

I've been experiencing slow boots recently, I checked my system using systemd. It turns out PSD is using 25 secs total, 11 secs on just itself. Am I doing something wrong here? I enabled it using systemctl, and I updated the frequency to make it every 10 mins, other than that, I didn't do anything much. Any help will be gladly appreciated.

— Reply to this email directly or view it on GitHubhttps://github.com/graysky2/profile-sync-daemon/issues/65 .

Sent from Gmail Mobile

leleleSDX commented 10 years ago

Ok, I'll try that. Thanks.

graysky2 commented 10 years ago

Should have mentioned that you can query the size of what you're syncing by running psd p Example:

% psd p
Profile-sync-daemon v5.45.1 on Arch Linux.

 Systemd service is currently active.
 Systemd resync service is currently active.

Psd will manage the following per /etc/psd.conf settings:

 browser/psname:  chromium/chromium
 owner/group id:  facade/100
 sync target:     /home/facade/.config/chromium
 tmpfs dir:       /tmp/facade-chromium
 profile size:    77M
graysky2 commented 10 years ago

Any update?

leleleSDX commented 10 years ago

I tried running psd as is, took forever. I'm inclined to assume that psd is just slow on my pc. As to why or how, do you need anything from me? I'm still trying to make phoronix work on my pc, but I would like to help in anyway I could.

graysky2 commented 10 years ago

Start by posting the output of psd p

leleleSDX commented 10 years ago

psd p

Profile-sync-daemon v5.45.1 on Arch Linux.

 Systemd service is currently active.
 Systemd resync service is currently active.

Psd will manage the following per /etc/psd.conf settings:

 browser/psname:  chromium/chromium
 owner/group id:  bimbi/10
 sync target:     /home/bimbi/.config/chromium
 tmpfs dir:       /tmp/bimbi-chromium
 profile size:    104M

 browser/psname:  firefox/firefox
 owner/group id:  bimbi/10
 sync target:     /home/bimbi/.mozilla/firefox/mwad0hks.default
 tmpfs dir:       /tmp/bimbi-firefox-mwad0hks.default
 profile size:    41M

 browser/psname:  opera/opera
 owner/group id:  bimbi/10
 sync target:     /home/bimbi/.opera
 tmpfs dir:       /tmp/bimbi-opera
 profile size:    13M

systemd-analyze blame| grep psd

      27.550s psd.service
           215ms psd-resync.service
graysky2 commented 10 years ago

I'm guessing you have a slower HDD In the system since 160 MB is not that large and shouldn't take that long to sync. Any chance you can swap out your HDD for an SSD? By comparison, my profile is 79 M and syncs over in <1 sec on an SSD. Other factors any inflence these times on your machine including not just the HDD speed but the bus speed and CPU speed, other loads on the system, etc.

Since this isn't a psd issue, I will close.

% systemd-analyze blame | grep psd
           459ms psd.service
            56ms psd-resync.service
jorgicio commented 10 years ago

This happens to me.

Profile-sync-daemon v5.45.1

Systemd service is currently active. Systemd resync service is currently active.

Psd will manage the following per /etc/psd.conf settings:

browser/psname: chromium/chromium owner/group id: jorgicio/1000 sync target: /home/jorgicio/.config/chromium tmpfs dir: /media/wintendo/tmp_browser/jorgicio-chromium profile size: 294M

┌─[21:27:02][jorgicio@hackenherr][~] └─| $ > systemd-analyze blame | grep psd 2min 27.433s psd.service 1.375s psd-resync.service

:S

nefelim4ag commented 10 years ago

@jorgicio, usual psd start slow by data read reasons. Chromium profile can be large or store many small files, what can result slow booting. Also this can be affected by filesystem reasons. Try clean chromium cache and history.

jorgicio commented 10 years ago

@TimofeyTitovets Ok. Tried removing all cache and data, and now takes 53 secs. to start. Well... thanks.