[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon
From: |
Adam Litke |
Subject: |
[Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon driver |
Date: |
Wed, 11 Nov 2009 09:08:34 -0600 |
On Wed, 2009-11-11 at 13:13 +1030, Rusty Russell wrote:
> > It's not laziness, it's consistency. How is actual different than free
> > memory or any other stat?
>
> Because it's a COLLECTION of stats. For example, swap in should be < swap
> out. Now, the current Linux implementation of all_vm_events() is non-atomic
> anyway, so maybe we can just document this as best-effort. I'm saying that
> if it *is* a problem, I think we need a vq.
I can't see why we would care about the atomicity of the collection of
statistics. Best-effort is good enough. Any variance within the stats
will be overshadowed by the latency of the host-side management daemon.
> But it raises the question: what stats are generally useful cross-OS? Should
> we be supplying numbers like "unused" (free) "instantly discardable" (ie.
> clean), "discardable to disk" (ie. file-backed), "discardable to swap"
> (ie. swap-backed) and "unswappable" instead?
While I see the virtue in presenting abstracted memory stats that seem
more digestible in a virtualization context, I think we should keep the
raw stats. This concentrates the complexity in the host-side management
daemon, and allows the host daemon to make better decisions (ie. by
reacting to trends in individual statistics). Different OSes (or
different versions of the same OS), may also have different sets of
statistics that will provide the answers that a management daemon needs.
--
Thanks,
Adam
- Re: [Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon driver, (continued)
- Re: [Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon driver, Anthony Liguori, 2009/11/10
- Re: [Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon driver, Jamie Lokier, 2009/11/11
- Re: [Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon driver, Daniel P. Berrange, 2009/11/11
- Re: [Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon driver, Adam Litke, 2009/11/11
- Re: [Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon driver, Avi Kivity, 2009/11/11
- Re: [Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon driver, Rusty Russell, 2009/11/10
- [Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon driver, Anthony Liguori, 2009/11/10
- [Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon driver, Rusty Russell, 2009/11/10
- [Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon driver, Anthony Liguori, 2009/11/10
- [Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon driver, Rusty Russell, 2009/11/10
- [Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon driver,
Adam Litke <=
- [Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon driver, Rusty Russell, 2009/11/11
Re: [Qemu-devel] [RFC] virtio: Report new guest memory statistics pertinent to memory ballooning (V2), Jamie Lokier, 2009/11/09
Re: [Qemu-devel] [RFC] virtio: Report new guest memory statistics pertinent to memory ballooning (V2), Jamie Lokier, 2009/11/09