Live data from Hacker News

Heavy SSD Writes from Firefox

servethehome.com

81–90 of 361 posts

Re: Heavy SSD Writes from Firefox

#81
post #40

Earlier quoted context omitted.

Replace Browser Crash with: Accidentally pressing Ctrl-w And yes, there are browser crashes without Flash

Why should it save the whole page when it only needs to remember the URL? At most, maybe also any form data you have entered. Small enough to keep thousands of pages in memory.

And what if the server sends something different back when you visit the URL again?

The internet allows it to do that.

Re: Heavy SSD Writes from Firefox

#82
Firefox has been terrible for disk access for many years. I remember I had a post install script (to follow, I never actually automated) that I would run through in my linux boxes back in about 2003 that would cut down on this and speed up the whole system.

Basically chattr +i on a whole bunch of its files and databases, and everything's fine again...

Re: Heavy SSD Writes from Firefox

#83

The interesting question here is, why is the browser writing data to disk at this rate? If it's genuinely receiving new data at this rate, that's kind of concerning for those of us on capped/metered mobile connections. The original article mentions that cookies accounted for the bulk of the writes, which is distressing. If it's not, using incremental deltas is surely a no-brainer here?

If it's not, using incremental deltas is surely a no-brainer here?

Might be surprisingly hard or inefficient given that you're trying to capture "webpage state". Think about React sites etc.

Re: Heavy SSD Writes from Firefox

#84

Chrome, on my system, is even more abusive. Watch the size of the .config/google-chrome directory and you'll see that it grows to multi-GB in the profile file. There is a Linux utility that takes care of all browsers' abuse of your ssd called profile sync daemon, PSD. It's available in the debian repo or [1] for Ubuntu or [2] for source. It uses `overlay` filesystem to direct all writes to ram and only syncs back to…

Launchpad is such a shitty website, aimed at Ubuntu and only Ubuntu, links to source code or more information are nowhere to be found...

Searching on Github, this seems to be it. Turns out, there's releases for Arch, Debian, etc. and it's even in the repositories. No need to add a ppa. https://github.com/graysky2/profile-sync-daemon

For Debian and co:

    $ apt-cache show profile-sync-daemon
    $ sudo apt-get install profile-sync-daemon

Re: Heavy SSD Writes from Firefox

#85
post #70
post #30

Earlier quoted context omitted.

Some cheap drives (e.g. Crucial BX100) have an endurance rating of only about 40GB/day.

So even with a cheap drive, if you leave your browser open with tons of tabs, and the PC on 24/7, it'll still easily handle it? Real lifetimes are often a multitude of the endurance rating, BTW.

You're still using 1/4 of your write unendurable for your fricking web browser. And exceeding the endurance rating can make you ineligible for warranty service/replacement of the drive.

Re: Heavy SSD Writes from Firefox

#86
post #42

Maybe I am not understanding this right, but is this saying that Firefox will continually keep writing to the disk while idle? Does anyone know more about this? Why would this be needed to restore session/tabs? Seems like it should only write after a user action or if the open page writes to storage? Even if it was necessary to write continually while idle, how could it possibly consume so much data in such a short p…

Maybe I am not understanding this right, but is this saying that Firefox will continually keep writing to the disk while idle? Does anyone know more about this? Why would this be needed to restore session/tabs?

This is very much the feature working as intended: Firefox captures webpage state every 15 seconds, so a crash, power outage, accidentally closing the browser etc will not result in data loss for the user. For storing the data persistently, it uses the persistent storage, i.e. your harddrive. For the HN crowd, that's going to be an SSD. The SSD can easily deal with the resulting write traffic with negligible effect on its lifetime - I have no idea why people even think this is an issue.

Seems like it should only write after a user action or if the open page writes to storage

Webpages can change their contents or state without user interaction.

Webpages are also big and bloated. Storing a little data, all the time, 24/7, adds up over time to a surprisingly large number.

Re: Heavy SSD Writes from Firefox

#87
Putting aside how this may not be all that bad for most SSD's, does anyone know when this behavior started?

Firefox really started to annoy me with its constant and needless updates a few months back; the tipping point being breaking almost all legacy extensions (in 46, I believe). This totally broke the Zend Debugger extension, the only way forward would be to totally change my development environment. I'm 38 and now, and apparently well beyond the days when the "new and shiny" hold value. These days I just want stability and reliability.

Firefox keeps charging forward and, as far as I can tell, has brought nothing to the table except new security issues and breaking that which once worked.

I haven't updated since 41 and you know what, it's nearly perfect. It's fast, does what I need it to do, and just plain old works.

Firefox appears to have become a perfect example of developing for the sake of.

Re: Heavy SSD Writes from Firefox

#88
post #71
post #44

Earlier quoted context omitted.

I certainly care about it, although it's possible that my 50-odd browser tabs would be considered "clutter" by other people. I stopped using Edge because it only saves your tab session if you turn off the PC, not if you quit the browser. Mind you, for a while I ran Firefox using a RAMdisc for the profile simply because all that flushing makes a big negative impact on PC performance.

You're in good shape. I'm at 337 tabs. ;-)

I made a simple firefox/chrome extension for people like you and me that horde tabs. You might find it useful to find tabs and quickly navigate to them by clicking on the link in the list. It's free and open source. The github page has a gif showing usage.

Chrome Extension: https://chrome.google.com/webstore/detail/tabist/hdjegjggiog...

Firefox Extension: https://addons.mozilla.org/en-US/firefox/addon/tabist/

source code: https://github.com/fiveNinePlusR/tabist

Let me know if you find it useful or have any suggestions.

Re: Heavy SSD Writes from Firefox

#90

Chrome, on my system, is even more abusive. Watch the size of the .config/google-chrome directory and you'll see that it grows to multi-GB in the profile file. There is a Linux utility that takes care of all browsers' abuse of your ssd called profile sync daemon, PSD. It's available in the debian repo or [1] for Ubuntu or [2] for source. It uses `overlay` filesystem to direct all writes to ram and only syncs back to…

Just for info, profile-sync-daemon is available for Jessie only if you have the backport repos.
Post reply on HN