Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Auto-tune cache sizes #3876

Open
ara4n opened this issue Sep 15, 2018 · 4 comments
Open

Auto-tune cache sizes #3876

ara4n opened this issue Sep 15, 2018 · 4 comments
Labels
A-Performance Performance, both client-facing and admin-facing O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Blocks non-critical functionality, workarounds exist. T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.

Comments

@ara4n
Copy link
Member

ara4n commented Sep 15, 2018

Rather than expecting people to manually tune their cache sizes, surely Synapse should be able to figure it out itself (perhaps within some bounds), a bit like a JVM

@richvdh
Copy link
Member

richvdh commented Oct 21, 2020

related: #2123

@richvdh
Copy link
Member

richvdh commented Oct 21, 2020

also #6400

@erikjohnston
Copy link
Member

https://dgraph.io/blog/post/introducing-ristretto-high-perf-go-cache/ has interesting ideas we could steal

@squahtx squahtx added P3 (OBSOLETE: use S- labels.) Approved backlog: not yet scheduled, will accept patches S-Tolerable Minor significance, cosmetic issues, low or no impact to users. T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements. labels Jul 12, 2022
@erikjohnston
Copy link
Member

Specifically: it'd be a good start to implement TinyLFU to decide what we allow to be added to the cache. Not sure there are any python libraries for it, but there are Rust ones we might be able to use.

@DMRobertson DMRobertson added S-Minor Blocks non-critical functionality, workarounds exist. O-Occasional Affects or can be seen by some users regularly or most users rarely and removed z-p2 (Deprecated Label) P3 (OBSOLETE: use S- labels.) Approved backlog: not yet scheduled, will accept patches S-Tolerable Minor significance, cosmetic issues, low or no impact to users. labels Oct 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Performance Performance, both client-facing and admin-facing O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Blocks non-critical functionality, workarounds exist. T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.
Projects
None yet
Development

No branches or pull requests

6 participants