Re: [Qemu-devel] [PATCH 03/10] XBZRLE: optimize XBZRLE to decrease the cache missing

2014-03-18 Thread Gonglei (Arei)
Sorry for late. > > > @@ -161,6 +171,11 @@ int cache_insert(PageCache *cache, uint64_t addr, > const uint8_t *pdata) > > /* actual update of entry */ > > it = cache_get_by_addr(cache, addr); > > > > +if ((it->it_data != NULL) && (it->it_age + > > +CACHED_PAGE_LIFETIME > cur

Re: [Qemu-devel] [PATCH 03/10] XBZRLE: optimize XBZRLE to decrease the cache missing

2014-03-11 Thread Eric Blake
On 03/11/2014 06:53 AM, arei.gong...@huawei.com wrote: > From: ChenLiang > > Avoid the hot pages being replaced by others to remarkable decrease cache s/the hot/hot/ s/remarkable/remarkably/ > missing. The counter of updating dirty bitmap is used to indicate the cached s/missing/misses/ > pag

Re: [Qemu-devel] [PATCH 03/10] XBZRLE: optimize XBZRLE to decrease the cache missing

2014-03-11 Thread Juan Quintela
wrote: > From: ChenLiang > > Avoid the hot pages being replaced by others to remarkable decrease cache > missing. The counter of updating dirty bitmap is used to indicate the cached > page age. > > Signed-off-by: ChenLiang > Signed-off-by: Gonglei > /** > * get_cached_data: Get the data ca

[Qemu-devel] [PATCH 03/10] XBZRLE: optimize XBZRLE to decrease the cache missing

2014-03-11 Thread arei.gonglei
From: ChenLiang Avoid the hot pages being replaced by others to remarkable decrease cache missing. The counter of updating dirty bitmap is used to indicate the cached page age. Signed-off-by: ChenLiang Signed-off-by: Gonglei --- arch_init.c| 8 +--- include/migration/