rwatson fdcdf27f80 Revise locking strategy used for UNIX domain sockets in order to improve
concurrency:

- Add per-unpcb mutexes protecting unpcb connection state, fields, etc.

- Replace global UNP mutex with a global UNP rwlock, which will protect the
  UNIX domain socket connection topology, v_socket, and be acquired
  exclusively before acquiring more than per-unpcb at a time in order to
  avoid lock order issues.

In performance measurements involving MySQL, this change has little or no
overhead on UP (+/- 1%), but leads to a significant (5%-30%) improvement in
multi-processor measurements using the sysbench and supersmack benchmarks.

Much testing by:	kris
Approved by:		re (kensmith)
2007-02-26 20:47:52 +00:00
..
2007-02-26 16:36:48 +00:00
2007-02-26 08:26:44 +00:00
2007-02-26 08:26:44 +00:00
2007-01-08 20:37:02 +00:00
2007-02-26 08:26:44 +00:00
2006-07-17 21:00:42 +00:00
2006-11-11 16:19:12 +00:00
2007-02-26 08:26:44 +00:00
2007-02-26 08:26:44 +00:00
2006-05-28 22:15:28 +00:00