kernel - usched_dfly revamp (2), reduce token collisions
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 22 Sep 2012 01:34:09 +0000 (18:34 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 22 Sep 2012 01:34:09 +0000 (18:34 -0700)
commitb0da0c887b6297fd4334569862260a8c0fee1ec6
tree4dd0cd75e9728f837c3bf9cf0144703ffb437479
parent574339e6ad6d65d2b0324c54ef8db4373c7c2267
kernel - usched_dfly revamp (2), reduce token collisions

* Add wakeup_start_delayed() and wakeup_end_delayed().  These functions
  will attempt to delay any wakeup() calls made between them.

  Use the functions in the unix domain socket send code.

* This removes a lot of volatility from monster's 48:48 pgbench tests by
  delaying the wakeup()s related to a unix domain socket write until after
  the pool token has been released.

* Adjust usched_dfly parameters.  In particular, weight2 can be higher now.
sys/kern/kern_synch.c
sys/kern/uipc_usrreq.c
sys/kern/usched_dfly.c
sys/sys/globaldata.h
sys/sys/systm.h
sys/sys/thread.h