Skip to content

Conversation

@masaori335
Copy link
Contributor

I found that if OpenDir has own reader-writer lock, it doesn't need StripeSM mutex. This means we can avoid the StripeSM mutex lock contention issue for reader-while-writer cases.

Benchmarking RWW is a bit tricky but one of benchmark says max rps is improved 9.9% in below conditions.

Conditions:

  • 10 urls
  • plaintext http
  • response body size: 256 bytes
  • origin returns Cache-Control: public, max-age=0 ///< some requests goes RWW path
  • 63 exec_thread
  • 40 stripes (8 disks x 5 volumes)

Result:

  • vanilla: 58,220.9 req/s
  • patch: 63,999.7 req/s

part of #12788

@masaori335 masaori335 added this to the 10.2.0 milestone Jan 9, 2026
@masaori335 masaori335 self-assigned this Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant