ipfs/kubo

Block cache lock contention

Open

#6,934 opened on Feb 26, 2020

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

Repository metrics

Stars
 (13,906 stars)
PR merge metrics
 (Avg merge 4d 2h) (28 merged PRs in 30d)

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