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
The first attempt to use trylock in tcache_dalloc (part of #800) resulted in a significant CPU & memory regression under a production workload. However, stats showed that # of bytes cached in tcache hardly increased, and were far from the amount of rss regressed. @jasone pointed out that purging looked less effective, e.g. extents purged were smaller. This indicates the regression is likely caused by fragmentation, or even false sharing if it's a remote arena.
A few things to try:
if it's a remote arena, don't use trylock;
maybe in flush logic, find out items from remote arena, and flush them first;
upon trylock failure, instead of move on to the next item, move all items from this arena to the bottom of the bin.
instead of trylock once, do a spin loop (per arena);
Activity