ipfs/kubo

Block cache lock contention

Open

#6934 opened on Feb 26, 2020

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Go (13,906 stars) (2,725 forks)batch import
exp/experthelp wantedkind/enhancementstatus/readytopic/perf

Description

There is quite a bit of lock contention in the block cache. On the gateways, out of 32 walk threads:

  • 13 were waiting on the disk.
  • 19 were blocked on the cache.
    • 10 trying to add blocks
    • 9 trying to get them.

We're currently using github.com/hashicorp/golang-lru.

Contributor guide