[sheepdog] [PATCH v2 2/9] sheep: add cmd argument -W to specify a max cache size

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Thu Jul 26 05:45:25 CEST 2012


At Thu, 26 Jul 2012 11:32:42 +0800,
Liu Yuan wrote:
> 
> On 07/26/2012 11:25 AM, MORITA Kazutaka wrote:
> > At Thu, 26 Jul 2012 10:55:00 +0800,
> > Liu Yuan wrote:
> >>
> >> On 07/26/2012 09:49 AM, levin li wrote:
> >>> Currently, -W is not always needed even if -w is used, if no -W, it means
> >>> the cache will never be reclaimed.
> >>>
> >>> If we use -w like the way you mentioned, maybe we can not use it like the
> >>> following way to specify that no cache will be reclaimed.
> >>>
> >>> $ sheep -w -d /store
> >>
> >> maybe we can use -w 0 to indicate that we don't need cache reclaim?
> > 
> > Are there any cases where unlimited object cache is necessary?  Even
> > if we have a machine with 1 TB RAM, we should specify '-w 1048576' to
> > avoid OOM errors, shouldn't we?
> > 
> 
> Probably we more need automatic detection of best reclaim size. For e.g,
>  -w auto means automatic detection
>  -w user 10G means manual setting.

Looks good to me, but do you have any ideas about how to determine the
best reclaim size?

Thanks,

Kazutaka



More information about the sheepdog mailing list