+2
−1
Loading
Margo returns a handle to its cache by appending it to a singly linked
free list, which walks the list to its tail while holding the
engine-wide ABT mutex. With many threads on one engine they queue behind
that mutex and throughput collapses (PC, one engine, 32 threads: 15k
stat RPC/s with the default size 32, 61k with size 0; FUSE with 32
processes: 2.4k vs 18.4k stat/s; exp-handlecache). With size 0 every RPC
creates and destroys its Mercury handle, at most 4 % slower with one
thread.
Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com>