HomeFreeBSD

Convert the if_lagg rwlock to an rmlock.

Description

Convert the if_lagg rwlock to an rmlock.

We've been seeing lots of cache line contention (but not lock contention!)
in our workloads between the various TX and RX threads going on.

The write lock is only grabbed when configuration changes are made - which
are infrequent.

With this patch, the contention and cycles spent waiting for updates
disappear.

Sponsored by: Netflix, Inc.

Details

Provenance
adrianAuthored on Aug 29 2013, 7:35 PM
Parents
rG0289d87d9cf4: Fix atomic operations on context_flag without altering semantics.
Branches
Unknown
Tags
Unknown

Event Timeline