From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Hajnoczi Subject: Re: [Qemu-devel] [RFC] Buffers/caches in VirtIO Balloon driver stats Date: Tue, 29 Aug 2017 10:57:26 +0100 Message-ID: <20170829095726.GL25960@stefanha-x1.localdomain> References: <20170827233033.7afa49b9@fiorina> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: qemu-devel@nongnu.org, virtio-dev@lists.oasis-open.org, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, "Michael S. Tsirkin" , Wei Wang To: =?utf-8?B?VG9tw6HFoSBHb2xlbWJpb3Zza8O9?= Return-path: Received: from mail-wm0-f68.google.com ([74.125.82.68]:38322 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751209AbdH2J5a (ORCPT ); Tue, 29 Aug 2017 05:57:30 -0400 Received: by mail-wm0-f68.google.com with SMTP id u26so3138054wma.5 for ; Tue, 29 Aug 2017 02:57:29 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20170827233033.7afa49b9@fiorina> Sender: kvm-owner@vger.kernel.org List-ID: On Sun, Aug 27, 2017 at 11:30:33PM +0200, Tomáš Golembiovský wrote: > Hi, I have CCed the relevant mailing lists and people most recently involved in virtio-balloon discussions. Hopefully this will help get the right people to see your questions. > We'd like to include information about reclaimable memory into the > statistics in VirtiO Balloon driver. Namely, we'd like to include > counters for bufferes and caches of Linux kernel. The patch itself is > pretty trivial -- no problem there. But before we do that I'd like to > get some input from the QEMU community. > > 1) Is there any reason not to have the stats there? > > 2) Considering the balloon device is multiplatform (Linux, BSD, > Windows), is there a problem with including buffers/caches? These seem > to be specific to the Linux virtual memory subsystem. Of course, other > OSes could just report zeros. Are there some internal stats on those > OSes that could be filled in? I don't now if such or similar statistic > are available on BSD. On Windows only SystemCache stat looks like > something relevant. Anyone familiar with those OSes has any suggestions? > > Tomas > > -- > Tomáš Golembiovský >