On Thu, Apr 24, 2014 at 12:07 AM, A, Keshava <[email protected]> wrote: > Hi, > > > > http://lxr.free-electrons.com/source/net/openvswitch/datapath.c > > > > Regarding the current locking mechanism in the OVS table I have some > question .. > > > > As per the code it looks like , there are Read Lock and Write Locks. > > Write Lock (write to device state add/remove data-path, port, set operation > on vport etc …) > > 1. Looks Like it is kept at complete table level and not at table Entry > Level. > > 2. Can locks go nested means à multiple thread can still waits on that lock > > > > Lock is it a global lock at table or at each table entry have separate > lock ? > > If there is a lock at table level , then if we increase the size of that > table to 20,000 flows will there be any impact on waiting for that lock ?
There is a global write lock and reads are protected by RCU. I don't know what you mean by taking it at each table entry or how nesting relates to this. _______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
