In Linux where should this be written? Inside the home folder? Maybe moving this folder to a HDD should suffice.
Or ramdisk if you have a stable system.
Heavy SSD Writes from Firefox
271–280 of 361 posts
Re: Heavy SSD Writes from Firefox
#272Earlier quoted context omitted.
Why is there so much data in the session restore anyway? If the goal is to have the URLs of the currently opened tabs, I'd expect that just the given URLs should be enough? I think I've seen some unexpected stuff there like the images base64 encoded? Maybe there's enough users that would be satisfied just with the URLs? At least for them the "rewrite" would be seldom needed. Or, maybe to reformulate, which wild scena…
Session store contains open tabs, windows, history for each tab, form fields, referrers (so we can re-request the page correctly), titles (so we can restore tabs without re-fetching every page), favicons, charsets, some timestamps, extension data, some kinds of site storage, scroll positions, and a few other things. The goal of session restore is to restore your session -- your open tabs should come back, the same pa…
It would be interesting if somebody would actually analyze what takes the most of the mentioned 300 MB. I see a lot of base64 encoded stuff, if they are "favicons," come-on. There are so many caches in Firefox already, JSON files certainly aren't the place for these images.
Re: Heavy SSD Writes from Firefox
#273Earlier quoted context omitted.
Ctrl-W is not that bad, but I sometimes want to close tab by Ctrl-W but instead hit Ctrl-Q...
I've been setting browser.showQuitWarning to true for years to stop ^Q from killing the browser and with it my state.
Re: Heavy SSD Writes from Firefox
#274Doing all this work is also probably burning battery life. An SSD can use several watts while writing, versus as low as 30-50 milliwatts at idle (with proper power management).
Re: Heavy SSD Writes from Firefox
#275Re: Heavy SSD Writes from Firefox
#276Chrome, 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…
Re: Heavy SSD Writes from Firefox
#277Earlier quoted context omitted.
Anecdote; I have had one of the OG intel x-25 80GB MLC SSD drives and after 5+ years of usage first as a boot drive and now as a video editing scratch disk the wear leveling firmware has done an excellent job. Intel's monitoring software still claims the disk has 95% of it's write capacity remaining and I have not observed any changes to it's benchmark IO performance over the life of the drive.
You're lucky... mine died after the original 1 year warranty (a few days over, it detected as 10MB drive or some such), I replaced it before they had a fix for the issue... that said, every drive I've had since has been very solid, mostly using Samsung drives these days.
You still lose all your data though :(
Re: Heavy SSD Writes from Firefox
#278Hi, I’m one of the Firefox developers who was in charge of Session Restore, so I’m one of the culprits of this heavy SSD I/O. To make a long story short: we are aware of the problem, but fixing it for real requires completely re-architecturing Session Restore. That’s something we haven’t done yet, as Session Restore is rather safety-critical for many users, so this would need to be done very carefully, and with plent…
OTOH SSD lifetime is rather safety-critical for many users...
Re: Heavy SSD Writes from Firefox
#279Earlier quoted context omitted.
Anecdote; I have had one of the OG intel x-25 80GB MLC SSD drives and after 5+ years of usage first as a boot drive and now as a video editing scratch disk the wear leveling firmware has done an excellent job. Intel's monitoring software still claims the disk has 95% of it's write capacity remaining and I have not observed any changes to it's benchmark IO performance over the life of the drive.
You're lucky... mine died after the original 1 year warranty (a few days over, it detected as 10MB drive or some such), I replaced it before they had a fix for the issue... that said, every drive I've had since has been very solid, mostly using Samsung drives these days.
Re: Heavy SSD Writes from Firefox
#280Does firefox sync() the data? If not, these continuous overwrites of the same file may not even hit the disk at all, as it could all end up being cached. Even if some data is being written, it could still be orders of magnitude lower than the writes executed by the program. There are legitimate pros/cons of using sync() or not. Missing it out could mean that the file data is lost if your computer crashes. But if fire…