Red Hat Developer
Read post

Testing modern hash table designs in OVN and OVS

A Red Hat intern investigated whether OVN and OVS hashmap performance could be improved by replacing the existing intrusive chained hmap with Swiss table designs. The work covered three approaches: wrapping a custom C Swiss table library (dshmap) under the existing hmap API, integrating dshmap directly into hmap with dual chained/Swiss modes, and targeted replacement of specific high-traffic maps (ovsdb-idl and lflow-mgr). All global replacement attempts regressed performance by up to 2.4x. Targeted Swiss table usage showed modest improvements (up to 11% faster for ovsdb-idl) but not enough to justify adding a new hash table library to OVS. The conclusion is that OVN/OVS workloads are mutation-heavy rather than lookup-heavy, which favors the existing intrusive chained design over Swiss tables.

    #performance#c
Aug 05•12m read time•From developers.redhat.com
Post cover image
Table of contents
Starting point: Rosemarie's hmap experimentOVS hmapSwiss tablesThe dshmap libraryExperiment repositoryWrapping dshmap with OVS hmapIntegrating dshmap directly into hmapTargeted Swiss table usageWhy the experiments did not produce a clear winBenchmark setup
1.9K Impressions
Red Hat Developer's image
Red Hat Developer

Rhdev is a blog and resource hub dedicated to Ruby on Rails development, a popular web application f...

378 Followers

•

1.5K Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard