On Thu, May 23, 2013 at 11:38:07AM +0800, Fam Zheng wrote:
> Introduce a cache quota: BDRVCURLState.cache_quota.
> When adding new CURLDataCache to BDRVCURLState, if number of existing
> CURLDataCache is larger than CURL_CACHE_QUOTA, try to release some first
> to limit the in memory cache size.
>
Introduce a cache quota: BDRVCURLState.cache_quota.
When adding new CURLDataCache to BDRVCURLState, if number of existing
CURLDataCache is larger than CURL_CACHE_QUOTA, try to release some first
to limit the in memory cache size.
A least used entry is selected for releasing.
Signed-off-by: Fam Zh