Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: configurable SQLite cache size#10571

Open
calmh wants to merge 3 commits intosyncthing:mainfrom
calmh:jb/confcachesize
Open

chore: configurable SQLite cache size#10571
calmh wants to merge 3 commits intosyncthing:mainfrom
calmh:jb/confcachesize

Conversation

@calmh
Copy link
Member

@calmh calmh commented Feb 11, 2026

TBD

Signed-off-by: Jakob Borg <[email protected]>
Signed-off-by: Jakob Borg <[email protected]>
Signed-off-by: Jakob Borg <[email protected]>
@github-actions github-actions bot added the chore label Feb 11, 2026
@jtek
Copy link

jtek commented Feb 17, 2026

You might want to look at the last commits in our PR: #10567

I just added an auto-tuning feature for cache_size in it based on what is theoretically needed to make the garbage collection tasks hit the cache reliably for their index usage.

This is in test on our large folders system (just restarted Syncthing with this code). If it works properly I was still wondering if it should be :

  • automatic, assuming that large instances should have the RAM for it,
  • behind an option : "autotune the cache_size yes/no",
  • behind an option and overriding is possible manually by the user.

As cache_size is effectively max_cache_size I'll monitor the RAM usage of our instance (using 7GiB for one folder and 2GiB for the other) to see if it is used and report here if you are interested.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants