You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently tcache does GC after every N (fixed) requests. We experimented that in some workload reducing the GC frequency could yield a measurable perf win. We'd like to avoid adding another runtime option for this. Let's consider other options to improve things here.
Possible directions:
combine wall time w/ # of iterations, e.g. do rate limiting on top of fixed N requests.
when background_thread is enabled, make it scan tcache stats etc to make smarter decisions about the interval.
also consider fragmentation when making the decision, e.g. how many extents are covered in the bins, any extents from remote arenas. Investigate trylock in tcache_dalloc #807 could also help when done properly.
Activity
davidtgoldblatt commentedon May 16, 2017
@djwatson, you were experimenting a signal-based approach for this sort of thing, right? Did you discover anything interesting?
djwatson commentedon May 17, 2017
Here it is:
https://gist.github.com/djwatson/3658c153141d4b67e290906315c61eb2
It was very sensitive to tuning, but did seem to reduce memory usage in some cases. I didn't see performance improvement otherwise.
Perhaps surprisingly, I didn't see any issues in prod due to extra use of signals.