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

Liu Yuan namei.unix at gmail.com
Thu Jul 26 05:32:42 CEST 2012


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.

Unlimited object cache seems not necessary to me.

Thanks,
Yuan



More information about the sheepdog mailing list