From: Wei Liu <wei.liu2@citrix.com>
To: David Vrabel <david.vrabel@citrix.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>,
Wei Liu <wei.liu2@citrix.com>,
xen-devel@lists.xen.org
Subject: Re: [PATCH] xen/balloon: export balloon hotplug page stats to sysfs
Date: Thu, 20 Mar 2014 14:01:20 +0000 [thread overview]
Message-ID: <20140320140120.GP16807@zion.uk.xensource.com> (raw)
In-Reply-To: <532AEB4D.1050900@citrix.com>
On Thu, Mar 20, 2014 at 01:21:17PM +0000, David Vrabel wrote:
> On 20/03/14 12:56, Wei Liu wrote:
> > --- a/drivers/xen/xen-balloon.c
> > +++ b/drivers/xen/xen-balloon.c
> > @@ -129,6 +129,11 @@ module_exit(balloon_exit);
> > BALLOON_SHOW(current_kb, "%lu\n", PAGES2KB(balloon_stats.current_pages));
> > BALLOON_SHOW(low_kb, "%lu\n", PAGES2KB(balloon_stats.balloon_low));
> > BALLOON_SHOW(high_kb, "%lu\n", PAGES2KB(balloon_stats.balloon_high));
> > +#ifdef CONFIG_XEN_BALLOON_MEMORY_HOTPLUG
> > +BALLOON_SHOW(hotplug_kb, "%lu\n", PAGES2KB(balloon_stats.hotplug_pages));
> > +BALLOON_SHOW(balloon_hotplug_kb, "%lu\n",
> > + PAGES2KB(balloon_stats.balloon_hotplug));
> > +#endif
>
> Extending the kernel's ABI requires justification. How are these values
> useful for userspace tools? If it's just for debug purposes, using
> debugfs would be preferred.
>
My original thought is that userspace tools have the right to know how
many pages balloon driver has. Missing the hotplug pages is not very
desirable. But I have yet known any tools that require balloon hotplug
page stat -- after all they probably don't know there's such a thing is
nothing is exported. Also note that these BALLOON_SHOW fields are
read-only, so exporting more stats won't in any way affect system
behavior.
If you prefer debugfs I can switch to use that.
Wei.
> David
next prev parent reply other threads:[~2014-03-20 14:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-20 12:56 [PATCH] xen/balloon: export balloon hotplug page stats to sysfs Wei Liu
2014-03-20 13:21 ` David Vrabel
2014-03-20 14:01 ` Wei Liu [this message]
2014-03-21 13:02 ` David Vrabel
2014-03-21 13:34 ` Wei Liu
2014-03-20 19:38 ` Konrad Rzeszutek Wilk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140320140120.GP16807@zion.uk.xensource.com \
--to=wei.liu2@citrix.com \
--cc=boris.ostrovsky@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.