Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Profile-sync-daemon

  1. #1
    Join Date
    Sep 2009
    Beans
    26

    Profile-sync-daemon

    Hello everybody.

    A first comment I want to make is that I didn't program this script myself.
    I just ported some scripts from Arch Linux to Ubuntu, so did minimal changes to the actual program script, only the boot script.
    This script solves the problem of always having to execute some commands to synchronize the browser profiles to RAM.

    The description on the Arch Linux wiki is:

    Running this daemon is beneficial for two reasons:
    - Reduced wear to physical discs
    - Speed
    Since the profile(s), browser cache, etc. are relocated into tmpfs, the corresponding onslaught of I/O associated with using the browser is also redirected from the physical disc to RAM, thus reducing wear to the physical disc and also greatly improving browser speed and responsiveness. The access time of RAM is on the order of nanoseconds while the access time of physical discs is on the order of milliseconds. This is a difference of six orders of magnitude or 1,000,000 times faster.

    Link: https://wiki.archlinux.org/index.php...le-sync-daemon

    Before installing the debian file you have to add one line to you're fstab file. The line is:
    tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0

    Link to the debian file: http://dl.dropbox.com/u/58201974/pro...ync-daemon.deb
    Source files: http://dl.dropbox.com/u/58201974/pro...-daemon.tar.gz
    After installing you need to edit the /etc/psd.conf file, and add at least one user to the list.

    I hope some people are willing to test this script themselves. When you discover some bugs feel free to mail me or leave a comment on this forum.

    Greetings Psycho Game
    Last edited by Psycho Game; February 8th, 2012 at 12:54 AM.

  2. #2
    Join Date
    Oct 2010
    Location
    Finland
    Beans
    18
    Distro
    Ubuntu 10.04 Lucid Lynx

    Lightbulb Re: Profile-sync-daemon

    Tested on Aspire One with Ubuntu netbook remix 10.04.

    Works like a charm, both browsers (firefox and chromium) are swift and responsive.

    The aspire has upgraded ram capacity too, from the original 512MB to 1,5GB so tmpfs fits there just fine.

  3. #3
    Join Date
    Sep 2009
    Beans
    26

    Re: Profile-sync-daemon

    Thank you for you're reply.
    I'm glad this program works for you.
    Hopefully some other ubuntu users will also benefit from these scripts.
    With chromium theres also one other tweak which is adding: --disk-cache-dir=/tmp/cache to the end of the chromium-browser command in the .desktop file and preferred applications.
    This will speed up chromium even more by placing the cache folder in RAM. Only this cache will be emptied every time the computer reboots.

    Greetings

    Psycho Game
    Last edited by Psycho Game; February 8th, 2012 at 04:21 PM.

  4. #4
    Join Date
    Apr 2012
    Beans
    2

    Re: Profile-sync-daemon

    you're great!! i'm using it under arch and now under ubuntu too! do you know any solution to make it work within an encrypted home folder (encryptfs, no full luks partition encryption). best regards!

  5. #5
    Join Date
    Nov 2009
    Location
    Caserta, Italy
    Beans
    59
    Distro
    Ubuntu

    Re: Profile-sync-daemon

    Ubuntu doesn't have rc.conf and the command rc.d doesn't work... what should I do? For now I have created the first file and "seems" that it works, but I'm not sure and I'm neither sure about the commands to sync, stop and start the daemon.

  6. #6
    Join Date
    Apr 2012
    Beans
    2

    Re: Profile-sync-daemon

    just install the deb file from the first post. the package has been adjusted for ubuntu. make sure that you entered your username in the config file.

    /etc/init.d/psd sync
    /etc/init.d/psd start
    /etc/init.d/psd stop

  7. #7
    Join Date
    Nov 2008
    Beans
    12
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Profile-sync-daemon

    Doesn't work very well for me.
    On startup the browsers profiles don't get loaded on RAM, so when I try to start Firefox it says it don't find the profile folder. (Indeed, the folder is not present in /tmp.)
    What I have to do is to stop psd and start it again. Then the folder /tmp/user-mozilla appears and I can start Firefox.

  8. #8
    Join Date
    Apr 2006
    Beans
    17

    Re: Profile-sync-daemon

    It works very well for me.
    The only "problem" is that now the sistem has become a lot slower at boot/login for it has to load the profile in cache.
    But at the end firefox is faster and with a lot less disk access.

  9. #9
    Join Date
    Mar 2007
    Beans
    15

    Re: Profile-sync-daemon

    Thank you for posting this. It works very well both on Ubuntu 11.10 and 12.04.

  10. #10
    Join Date
    Nov 2008
    Beans
    12
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Profile-sync-daemon

    I removed psd via apt-get but I cannot start Firefox anymore because profile is missing (it says). (It probably still looks for the profile folder in /tmp.) How can I solve the problem?

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •