[Qemu-devel] [PATCH v8 09/10] Add set_cachesize command

2012-04-05 Thread Orit Wasserman
Change XBZRLE cache size in MB (the size should be a power of 2). Signed-off-by: Orit Wasserman --- arch_init.c |8 hmp-commands.hx | 15 +++ hmp.c| 13 + hmp.h|1 + migration.c | 31 ++-

Re: [Qemu-devel] [PATCH v8 09/10] Add set_cachesize command

2012-04-05 Thread Avi Kivity
On 04/05/2012 03:15 PM, Avi Kivity wrote: > We need to either document the default or (better) add a command to get > the current cache size (perhaps with some statistics about hit rate and > average data reduction). > I see there already is a stats command, you can add the cache size to that. --

Re: [Qemu-devel] [PATCH v8 09/10] Add set_cachesize command

2012-04-05 Thread Avi Kivity
On 04/05/2012 01:47 PM, Orit Wasserman wrote: > Change XBZRLE cache size in MB (the size should be a power of 2). In bytes > > +void xbzrle_cache_resize(int64_t new_size) > +{ > +if (page_cache) { > +cache_fini(); > +cache_init(new_size); > +} > +} A little sad to drop