Skip to content

Possible performance degradation under mutex contention #2

Description

@voximity

We have been considering the possibility of mutex contention causing performance degradation in snarkOS and snarkVM.

The two ecosystems make use of parking_lot for its Mutexes and RwLocks. It is known that parking_lot suffers from performance degradations when under heavy contention. We could confirm this when running the benchmark on a machine that runs a validator on the Canarynet.

image

Steps to Reproduce

N/A. We are looking into analyzing the prevalence of contention, as well as experimenting with replacing the usage of parking_lot with std::sync::Mutex.

Expected Behavior

N/A.

Your Environment

N/A. We tested the benchmark above in Ubuntu on WSL and Ubuntu on bare metal.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions