All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Vrabel <david.vrabel@citrix.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>, xen-devel@lists.xen.org
Subject: Re: [PATCH] xen/balloon: export balloon hotplug page stats to sysfs
Date: Fri, 21 Mar 2014 13:02:26 +0000	[thread overview]
Message-ID: <532C3862.1020109@citrix.com> (raw)
In-Reply-To: <20140320140120.GP16807@zion.uk.xensource.com>

On 20/03/14 14:01, Wei Liu wrote:
> 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.

What tools needs the value and how will it use it to make sensible
decisions?

If there isn't an answer and it just for diagnostics/debug then debugfs
is the right place.

David

  reply	other threads:[~2014-03-21 13:02 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
2014-03-21 13:02     ` David Vrabel [this message]
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=532C3862.1020109@citrix.com \
    --to=david.vrabel@citrix.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=wei.liu2@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.