[Qemu-devel] [QEMU 2/7] virtio-balloon: add drop cache support

2016-06-13 Thread Liang Li
virtio-balloon can make use of the amount of free memory to determine the amount of memory to be filled in the balloon, but the amount of free memory will be effected by the page cache, which can be reclaimed. Drop the cache before getting the amount of free memory will be very helpful to relect th

Re: [Qemu-devel] [QEMU 2/7] virtio-balloon: add drop cache support

2016-06-18 Thread Michael S. Tsirkin
On Mon, Jun 13, 2016 at 06:16:44PM +0800, Liang Li wrote: > virtio-balloon can make use of the amount of free memory to determine > the amount of memory to be filled in the balloon, but the amount of > free memory will be effected by the page cache, which can be reclaimed. > Drop the cache before g

Re: [Qemu-devel] [QEMU 2/7] virtio-balloon: add drop cache support

2016-06-19 Thread Li, Liang Z
> On Mon, Jun 13, 2016 at 06:16:44PM +0800, Liang Li wrote: > > virtio-balloon can make use of the amount of free memory to determine > > the amount of memory to be filled in the balloon, but the amount of > > free memory will be effected by the page cache, which can be reclaimed. > > Drop the cach