[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:25:05 CEST 2012


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?

Thanks,

Kazutaka



More information about the sheepdog mailing list