FMallocBinnedCommonUtils::TrimThreadFreeBlockLists Hitches

FMallocBinnedCommonUtils::TrimThreadFreeBlockLists is causing 18+ ms hitches on series S (with SMT enabled) Is there any way to make this cheaper or split the work up across multiple threads

[Attachment Removed]

Hello Nick,

You can try setting `GMallocBinnedFlushRegisteredThreadCachesOnOneThread` to `0` (can be done via the cvar `MallocBinned.FlushRegisteredThreadCachesOnOneThread 0`). This comes at a cost of less trimming - idle threads are no longer visited - so you’ll want to keep an eye on the memory watermark. But in practice little difference is observed as standby threads usually do not have a lot of blocks to reclaim.

-Martin.

[Attachment Removed]

Yup that definitely helps thank you

[Attachment Removed]