[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:36:38 CEST 2012
At Thu, 26 Jul 2012 11:31:09 +0800,
levin li wrote:
>
> On 2012年07月26日 11:25, 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?
> >
> > Thanks,
> >
> > Kazutaka
> >
>
> Currently, cached objects are store in disk not in RAM, it's not so easy
> to cause OOM.
Ah, I see, sorry for confusion.
Thanks,
Kazutaka
More information about the sheepdog
mailing list