Skip to content

Adjust RouteCache to mitigate contention#998

Open
FelixMcFelix wants to merge 4 commits into
masterfrom
routecache-tuning
Open

Adjust RouteCache to mitigate contention#998
FelixMcFelix wants to merge 4 commits into
masterfrom
routecache-tuning

Conversation

@FelixMcFelix
Copy link
Copy Markdown
Collaborator

This PR follows up on the steps outlined in #997. The main changes are to increase the table size, and to minimise the amount of time holding the write lock on a miss by fetching a new route before taking the lock. This includes refusing to attempt an insert on a failed lookup in a full table.

One of the steps outlined in the issue, not evicting present entries, was already implemented.

Closes #997.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Need to better handle contention around RouteCache

1 participant