[Sheepdog] [PATCH 2/2] sheep: make gateway and io workers configurable

Christoph Hellwig hch at infradead.org
Fri Apr 13 18:45:43 CEST 2012


On Fri, Apr 13, 2012 at 10:38:05AM +0800, Liu Yuan wrote:
>    Thanks for your test numbers, I didn't expect this large threads to
> run not-so-fast disk busy.
>    How many cpus do you have on your box? I think this number has a
> great dependency with the host available cpu number.

This was on a 2 core box, but it's been a while.  It would be good
to reproduce the numbers before making decisions based on hearsay.

>    I am not sure, I'd love to set 64 as default since our servers has a
> considerable cpu cores, but for the boxes with limited cpus (Say, only
> 2), is 64 threads okay for them too(Do not waste memory resource for
> unnecessary task_struct)?

We spend about 10 to 12kb on each kernel thread.  I don't think that
adds up for a less than a hundred thread, but we of course still have
the option.



More information about the sheepdog mailing list