[sheepdog] [PATCH v3] work queue: introduce dynamic roof to max nr threads
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Tue Mar 5 10:16:19 CET 2013
At Tue, 5 Mar 2013 09:35:08 +0800,
Liu Yuan wrote:
>
> From: Liu Yuan <tailai.ly at taobao.com>
>
> This patch add dynamic roof to max # of work threads of one particular queue,
> which is proportional to the nr of nodes in the cluster. This is needed to
> prevent push storm from object cache, which might otherwise saturate the cluster
> with push threads.
>
> Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
> ---
> v3: refine wq_get_roof()
>
> sheep/sheep.c | 8 ++++----
> sheep/work.c | 60 ++++++++++++++++++++++++++++++++++++++++++---------------
> sheep/work.h | 10 ++++++++--
> 3 files changed, 56 insertions(+), 22 deletions(-)
Applied, thanks!
Kazutaka
More information about the sheepdog
mailing list