[sheepdog] [PATCH] sheep: check resource limit at startup

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Tue Jan 29 07:09:33 CET 2013


At Tue, 29 Jan 2013 13:01:11 +0800,
Liu Yuan wrote:
> 
> On 01/29/2013 12:56 PM, MORITA Kazutaka wrote:
> > If it's difficult to limit or reduce the number of consuming FDs,
> > let's find the safe value for RLIMIT_NOFILE we should suggest.  I
> > think the number highly depends on the number of sheep nodes and
> > running VMs.
> 
> It is fine to depend on the max nodes (1024) we support right now. but
> we can't guess how many VMs a node is supposed to run.
> 
> any suggestions?

How about assuming the following as a worst case?
 - we run 100 VMs for each node
 - sheep consumes 10 FDs for each VM

In this story, 1048576 (= 2^20) FDs look enough.  This is a really
rough estimate, though.

Thanks,

Kazutaka



More information about the sheepdog mailing list