What are the ways to minimize data writes?

I bumped into this Firefox is eating your SSD - here is how to fix it in another context than TiddlyWiki and got two questions.

  1. Since TiddlyWiki runs in the browser as well, and single HTML file wikis are a few megabytes, does it take part in this horror? Does a browser with a loaded reasonably big wiki have to write big amounts of data in its session storage?

  2. Regarding single file TiddlyWikis - are they themselves offenders? If a 10MB wiki gets autosaved to disk entirely every time a tiddler is changed (add the state tiddlers here as well(?)), if it’s also encrypted, so changed data is unique everytime, then it only takes 100 times to accumulate 1GB of written data. The most obvious way here is to use Node.js if it’s possible, then only single files containing changed tiddlers get rewritten. Are there any other less obvious approaches to minimize the amount of TiddlyWiki data that gets written to disk?

Do note that this article is 8 years old. I haven’t followed up to see if this has improved meanwhile, but I would expect it.

Was mentioned here https://www.linuxquestions.org/questions/slackware-14/life-expectancy-of-nvme-drives-4175744303/

The thread is recent

If you are concerned with single file wikis, or you are accessing one over a slow link, turn off autosave and only save occasionaly after a big change or when exiting if your system is stable. If you included local storage for security of the data, I am not sure if it commits to disk or memory first, probably disk as I have had a wikis restore after a suddent reboot.

get a load of this ( pun intended )

some potential methods @ https://serverfault.com/questions/169676/how-to-check-disk-i-o-utilization-per-process

personal i would just boot “live-desktop” installer image
( meaning should run in ram** … not and write to ssd / hdd , unless its configured/instructed to do so )

** you need enough ram for this + browser ( methods are available to reduce browser default per sub process usage xD )

+remember to save to disk and sync !!!

TW does not use any session storage. Except if you use the Browser Storage pluign, which uses Local Stoarge … But you have to allow it.

If you open the Browser Dev Toolse with F12 and select the Storage tab, you can see, what’s going on with your wiki and the domain.

Depending on the browser, your settings will look different. I use FireFox
All browsers cache pages, that you did visit, which actually is an advantage. If you clear the browser cache, it has to download an temporarily write stuff again and again. …

That would not bother me all too much. You should have a look about how many terrabytes can be written to an SSD until it breaks. … It depends on the brand and what they guarantee. There should be a TBW (Terrabytes Written) value for your drive. So you should be able to find out, what your SSD can handle.

There is a relatively recent test, which did write 28 peta-bytes for Samsung 990 PRO vs 990 EVO: Which SSD Lasts Longer? Endurance & Reliability

You may find something similar for your drives.


There is a general rule for valuable data: Backup - Backup - Backup
You should have at least 2 extra physically independent backups.

Have fun!
Mario