Skip to content

Ways to reduce disk writes #4620

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
foresto opened this issue Apr 25, 2025 · 0 comments
Open

Ways to reduce disk writes #4620

foresto opened this issue Apr 25, 2025 · 0 comments

Comments

@foresto
Copy link

foresto commented Apr 25, 2025

I run with a filesystem on flash storage, and have noticed that HDT does a lot of disk writes in normal operation, putting needless wear on the "disk". This can be problematic when running from an SD card, and a bit wasteful even with an SSD (especially a cheap one). I'm looking for ways to reduce the writes.

From a brief investigation, it looks like much of the writes are to DeckStats.xml, DailyEventsCount.xml, LastGames.xml, their corresponding .bak files, and the daily zip archives in the Backups directory. It would be nice if HDT allowed me to configure how often these files are (re)written and how often backups are made. For example, options like these would be appealing:

  • Update DeckStats.xml and its siblings no more often than once per hour or only at program exit. (My system is stable enough to make that plenty.)
  • Create config file zip archives in the Backups dir no more often than once a week or when a new version is first run.
  • Do not create DeckStats.xml.bak or similar .bak files. (My backup software makes them unnecessary.)
  • Do not create config file zip archives.

I searched for a few relevant words in the config file, looking for settings that might accomplish this, but didn't find any. Maybe I missed something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant