All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Xu, Dongxiao" <dongxiao.xu@intel.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "Andrew Cooper (andrew.cooper3@citrix.com)"
	<andrew.cooper3@citrix.com>,
	"Jan Beulich (JBeulich@suse.com)" <JBeulich@suse.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: Xen Platform QoS design discussion
Date: Thu, 1 May 2014 00:56:29 +0000	[thread overview]
Message-ID: <40776A41FC278F40B59438AD47D147A9119F42A2@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <1398877340.5166.13.camel@kazak.uk.xensource.com>

> -----Original Message-----
> From: Ian Campbell [mailto:Ian.Campbell@citrix.com]
> Sent: Thursday, May 01, 2014 1:02 AM
> To: Xu, Dongxiao
> Cc: Jan Beulich (JBeulich@suse.com); Andrew Cooper
> (andrew.cooper3@citrix.com); xen-devel@lists.xen.org
> Subject: Re: Xen Platform QoS design discussion
> 
> On Wed, 2014-04-30 at 16:47 +0000, Xu, Dongxiao wrote:
> > domain related QoS data. Here I propose to use the domctl style
> > hypercall to get QoS data for specific domain. This has the advantage
> > of simplifying the libxl QoS APIs for user-space developers, and also
> > make the QoS memory allocation in Xen much easier.
> 
> Note that the libxl QoS API need not have any particular resemblance to
> the underlying hypercall API, it is perfectly reasonable for libxl (or
> libxc even) to massage the data provided by the raw hypercall (or
> several hypercalls) into something nicer for end user consumption.

Yes, I understand.
If use sysctl to get per-domain QoS info, Xen still needs to provide the entire QoS data for user, and libxl QoS API may extract the per-domain data from it. However this is not high efficient.
While using domctl, Xen provides the exact info that needed by Dom0 toolstack.

> 
> The important thing about any libxl level interface is that the library
> API cannot change once it has been introduced, so thought needs to be
> given to extensibility and future proofing. The API should also be
> structured (so no binary blobs, or arrays of numbers which need special
> knowledge to interpret etc).

Agree.
Previously we are returning an 2-dimention array of nr_rmids * nr_sockets number of data back to Dom0 toolstack. Since the size may already very big, so we structure the data in binary blob to save memory space. If using domctl, then the data is only 1-dimention and much less, and we can use structured data to present to libxl users.

> 
> Have you asked yourself whether this information even needs to be
> exposed all the way up to libxl? Who are the expected consumers of this
> interface? Are they low-level CLI tools (i.e. like xenpm is) or are you
> expecting toolstacks to plumb this information all the way up to their
> GUI or CLI (e.g. xl or virsh)?

The information returned to libxl users is the cache utilization for a certain domain in certain socket, and the main consumers are cloud users like openstack, etc. Of course, we will also provide an xl command to present such information.

Thanks,
Dongxiao

> 
> Ian.

  reply	other threads:[~2014-05-01  0:56 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-30 16:47 Xen Platform QoS design discussion Xu, Dongxiao
2014-04-30 17:02 ` Ian Campbell
2014-05-01  0:56   ` Xu, Dongxiao [this message]
2014-05-02  9:23     ` Jan Beulich
2014-05-02 12:30       ` Xu, Dongxiao
2014-05-02 12:40         ` Jan Beulich
2014-05-04  0:46           ` Xu, Dongxiao
2014-05-06  9:10             ` Ian Campbell
2014-05-06  1:40           ` Xu, Dongxiao
2014-05-06  7:55             ` Jan Beulich
2014-05-06 10:06             ` Andrew Cooper
2014-05-07  2:08               ` Xu, Dongxiao
2014-05-07  9:10                 ` Ian Campbell
2014-05-07 13:26               ` George Dunlap
2014-05-07 21:18                 ` Andrew Cooper
2014-05-08  5:21                   ` Xu, Dongxiao
2014-05-08 11:25                     ` Andrew Cooper
2014-05-09  2:41                       ` Xu, Dongxiao
2014-05-13  1:53                       ` Xu, Dongxiao
2014-05-16  5:11                       ` Xu, Dongxiao
2014-05-19 11:28                         ` George Dunlap
2014-05-19 11:45                           ` Jan Beulich
2014-05-19 12:13                             ` George Dunlap
2014-05-19 12:41                               ` Jan Beulich
2014-05-22  8:19                                 ` Xu, Dongxiao
2014-05-22  8:39                                   ` Jan Beulich
2014-05-22  9:27                                     ` George Dunlap
2014-05-26  0:51                                       ` Xu, Dongxiao
2014-05-29  0:45                                       ` Xu, Dongxiao
2014-05-29  7:01                                         ` Jan Beulich
2014-05-29  7:31                                           ` Xu, Dongxiao
2014-05-29  9:11                                             ` Jan Beulich
2014-05-30  9:10                                               ` Ian Campbell
2014-05-30 11:17                                                 ` Jan Beulich
2014-05-30 12:33                                                   ` Ian Campbell
2014-06-05  0:48                                                   ` Xu, Dongxiao
2014-06-05 10:43                                                     ` George Dunlap
2014-05-29  9:13                                             ` Andrew Cooper
2014-05-30  1:07                                               ` Xu, Dongxiao
2014-05-30  6:23                                                 ` Jan Beulich
2014-05-30  7:51                                                   ` Xu, Dongxiao
2014-05-30 11:15                                                     ` Jan Beulich
2014-05-02 12:50         ` Andrew Cooper
2014-05-04  2:34           ` Xu, Dongxiao
2014-05-06  9:12             ` Ian Campbell
2014-05-06 10:00             ` Andrew Cooper

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=40776A41FC278F40B59438AD47D147A9119F42A2@SHSMSX104.ccr.corp.intel.com \
    --to=dongxiao.xu@intel.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@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.