Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: HOWTO: Prevent Firefox from fsync'ing to disk.

  1. #11
    Join Date
    Jan 2007
    Location
    $here ? $here : $there
    Beans
    3,717
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: Prevent Firefox from fsync'ing to disk.

    The syncing described here is caused by the way firefox uses sqlite and the fact that it writes to places.sqlite after every page loads (and that causes an fsync). Turning off the browser cache isn't a great idea but shouldn't cause any problems. Redirecting it to a tmpfs is a great idea though.
    Don't try to make something "fast" until you are able to quantify "slow".

  2. #12
    Join Date
    Jan 2008
    Beans
    4,757

    Re: HOWTO: Prevent Firefox from fsync'ing to disk.

    Quote Originally Posted by sdennie View Post
    The syncing described here is caused by the way firefox uses sqlite and the fact that it writes to places.sqlite after every page loads (and that causes an fsync). Turning off the browser cache isn't a great idea but shouldn't cause any problems. Redirecting it to a tmpfs is a great idea though.
    It is an especially great idea if you know what you are doing and get the crons that copy the data back to harddrive setup correctly. (Else, you are loosing all saved data every time you shutdown).

  3. #13
    Join Date
    Jan 2008
    Beans
    2

    Re: HOWTO: Prevent Firefox from fsync'ing to disk.

    Thanks a lot! Running Ubuntu/firefox on my Aspire One with SSD was slow (to put it mildly) before applying this hack.

    Another way of applying the hack:

    I put the fsync.so in /opt/mozilla/lib/ and created the following /usr/local/bin/firefox (with executable bit set):


    Code:
     #!/bin/sh
    
    export LD_PRELOAD=/opt/mozilla/lib/fsync.so
    /usr/bin/firefox "$@"
    Regards,
    Regnar

  4. #14
    Join Date
    Jan 2008
    Beans
    4,757

    Re: HOWTO: Prevent Firefox from fsync'ing to disk.

    Quote Originally Posted by rblyngso View Post
    Thanks a lot! Running Ubuntu/firefox on my Aspire One with SSD was slow (to put it mildly) before applying this hack.

    Another way of applying the hack:

    I put the fsync.so in /opt/mozilla/lib/ and created the following /usr/local/bin/firefox (with executable bit set):


    Code:
     #!/bin/sh
    
    export LD_PRELOAD=/opt/mozilla/lib/fsync.so
    /usr/bin/firefox "$@"
    Regards,
    Regnar
    May I just note that since the release of Firefox 3.5, this problem has been none existent.

    So the best solution for everyone in the end is to upgrade to Karmic Koala when the Official Release comes through in October.

    Regards
    Iain

  5. #15
    Join Date
    May 2007
    Beans
    77
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: HOWTO: Prevent Firefox from fsync'ing to disk.

    ehh, I'm experiencing this under karmic and lucid.

Page 2 of 2 FirstFirst 12

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
  •