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 |