Conversation
The configuration parser clips tcache_nslots_small_max at 2048, even though cache bins can represent up to CACHE_BIN_NCACHED_MAX entries. The tcache code already enforces that representation limit. Use the representation limit when parsing the option, and add a regression test for clipping to that limit. The default remains unchanged.
|
No problem. I’m also really looking forward to the Adapt tcache fill and retention feature. Since we use a 64 KB page size by default, Adapt tcache fill is even more important for us. Thanks! |
It is on a |
|
Sounds great. I’ll try it on some internal services next week. We currently set |
|
@xinydev It is pretty common to have unbalanced threads. Besides adaptive filling, another approach worthy trying is to reduce the global If you have a chance to try either approach, would really appreciate any data points shared. |
|
@spredolac @guangli-dai The tcache-related metrics looked like this:
So it does look like we’re doing fewer fills, while bringing in more objects per fill. |
@xinydev , thanks for the metrics. This is good news (that is all flat for you as well). I am surprised about fills going up, but based in the numbers calculated overall fills+flushes going down by 6.1%. The number we like especially is -33% in fills. This is so because we plan to do some work on slow path and running fewer slow-paths gives us better buffer. Given that all is flat I am not worried abut reslabs, this is a product of more objects being pulled in fills I think. |
The configuration parser clips tcache_nslots_small_max at 2048, even though cache bins can represent up to CACHE_BIN_NCACHED_MAX entries. The tcache code already enforces that representation limit.
Use the representation limit when parsing the option, and add a regression test for clipping to that limit. The default remains unchanged.