[sheepdog] [PATCH v2 5/5] work: shrink the number of worker threads dynamically

Liu Yuan namei.unix at gmail.com
Thu Feb 28 12:28:32 CET 2013


On 02/28/2013 06:46 PM, MORITA Kazutaka wrote:
> +	if (wi->nr_pending + wi->nr_running <= wi->nr_threads / 2)
> +		/* we cannot shrink work queue during protection period. */
> +		return wi->tm_end_of_protection <= get_msec_time();

Why we need delay shrinking?

Thanks,
Yuan



More information about the sheepdog mailing list