Whamcloud - gitweb
b=14846 dynamically grow/shrink connd threads pool
authorLiang Zhen <liang@whamcloud.com>
Mon, 31 Jan 2011 08:18:29 +0000 (16:18 +0800)
committerJohann Lombardi <johann.lombardi@oracle.com>
Wed, 2 Feb 2011 12:37:50 +0000 (13:37 +0100)
commit40ce16eee8dda3cfc5fbe8ff29fb8907dfdbd765
tree39224ae6b82c4e6f8e46edf4f64f77b4819a77eb
parent05f5babc05491d6d8289118927e355c57d5b7d48
b=14846 dynamically grow/shrink connd threads pool

i=isaac

if multiple nodes are down, all socklnd connds could be blocked for a
long while, we can workaround this by increase default nconnds but it
always requires to have unnecessary number of threads.
This patch can support dynamically grow/shrink connd threads pool, it
can create new thread if there's pending active connecting, it will
kill some threads if there are too many idle connds.
lnet/klnds/socklnd/socklnd.c
lnet/klnds/socklnd/socklnd.h
lnet/klnds/socklnd/socklnd_cb.c
lnet/klnds/socklnd/socklnd_modparams.c