xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@eu.citrix.com>
To: Dario Faggioli <dario.faggioli@citrix.com>,
	xen-devel <xen-devel@lists.xenproject.org>
Cc: AndrewCooper <Andrew.Cooper3@citrix.com>,
	KeirFraser <keir@xen.org>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Ian Campbell <Ian.Campbell@citrix.com>,
	Jan Beulich <JBeulich@suse.com>
Subject: Re: [PATCH v6 7/9] xl: enable getting and setting soft
Date: Mon, 2 Jun 2014 16:20:53 +0100	[thread overview]
Message-ID: <538C9655.109@eu.citrix.com> (raw)
In-Reply-To: <1401237770-7003-8-git-send-email-dario.faggioli@citrix.com>

On 05/28/2014 01:42 AM, Dario Faggioli wrote:
> Getting happens via `xl vcpu-list', which now looks like this:
>
>   # xl vcpu-list -s
>   Name       ID VCPU CPU State Time(s) Affinity (Hard / Soft)
>   Domain-0   0     0  11  -b-     5.4  8-15 / all
>   Domain-0   0     1  11  -b-     1.0  8-15 / all
>   Domain-0   0    14  13  -b-     1.4  8-15 / all
>   Domain-0   0    15   8  -b-     1.6  8-15 / all
>   vm-test    3     0   4  -b-     2.5  0-12 / 0-7
>   vm-test    3     1   0  -b-     3.2  0-12 / 0-7
>
> Setting happens by specifying two pCPU masks to the `xl vcpu-pin'
> command, the first one will be hard affinity, the second soft
> affinity. If only one mask is specified, it is only hard affinity
> that is affected. To change only soft affinity, '-' can be used
> as the hard affinity mask parameter, and it will be left alone.
>
> xl manual page is updated accordingly.
>
> Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
> ---
> Changes from v5:
>   * change command line interface for 'vcpu-pin', as suggested during
>     review.
>
> Changes from v4:
>   * fix and rephrased the manual entry, as suggested during review;
>   * more refactoring to remove some leftover special casing, as
>     suggested during review.
>
> Changes from v3:
>   * fix typos in doc, rephrased the help message and changed
>     the title of the column for hard/soft affinity, as suggested
>     during review.
>
> Changes from v2:
>   * this patch folds what in v2 were patches 13 and 14;
>   * `xl vcpu-pin' always shows both had and soft affinity,
>     without the need of passing '-s'.
> ---
>   docs/man/xl.pod.1         |   32 ++++++++++++----
>   tools/libxl/xl_cmdimpl.c  |   90 +++++++++++++++++++++++++++++----------------
>   tools/libxl/xl_cmdtable.c |    2 +-
>   3 files changed, 84 insertions(+), 40 deletions(-)
>
> diff --git a/docs/man/xl.pod.1 b/docs/man/xl.pod.1
> index 30bd4bf..f646bf6 100644
> --- a/docs/man/xl.pod.1
> +++ b/docs/man/xl.pod.1
> @@ -651,16 +651,32 @@ after B<vcpu-set>, go to B<SEE ALSO> section for information.
>   Lists VCPU information for a specific domain.  If no domain is
>   specified, VCPU information for all domains will be provided.
>   
> -=item B<vcpu-pin> I<domain-id> I<vcpu> I<cpus>
> +=item B<vcpu-pin> [I<OPTIONS>] I<domain-id> I<vcpu> I<cpus hard> I<cpus soft>

Are there actually any OPTIONS left now?

  -George

  parent reply	other threads:[~2014-06-02 15:21 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-28  0:42 [PATCH v6 0/9] Implement vcpu soft affinity for credit1 Dario Faggioli
2014-05-28  0:42 ` [PATCH v6 1/9] xen: sched: rename v->cpu_affinity into v->cpu_hard_affinity Dario Faggioli
2014-05-28  7:28   ` Jan Beulich
2014-05-28  0:42 ` [PATCH v6 2/9] xen: sched: introduce soft-affinity and use it instead d->node-affinity Dario Faggioli
2014-05-28  7:33   ` Jan Beulich
2014-05-28 15:50     ` Dario Faggioli
2014-06-02 14:40   ` George Dunlap
2014-05-28  0:42 ` [PATCH v6 3/9] xen: derive NUMA node affinity from hard and soft CPU affinity Dario Faggioli
2014-05-28  7:36   ` Jan Beulich
2014-05-28  0:42 ` [PATCH v6 4/9] xen/libxc: sched: DOMCTL_*vcpuaffinity works with hard and soft affinity Dario Faggioli
2014-05-28  7:40   ` Jan Beulich
2014-05-28 15:09     ` Ian Campbell
2014-05-28  0:42 ` [PATCH v6 5/9] libxc: get and set soft and hard affinity Dario Faggioli
2014-05-28  0:42 ` [PATCH v6 6/9] libxl: get and set soft affinity Dario Faggioli
2014-05-28 15:13   ` Ian Campbell
2014-05-28 15:15     ` Dario Faggioli
2014-05-28 15:23   ` Ian Campbell
2014-06-05 12:59     ` Dario Faggioli
2014-06-06  8:46       ` Ian Campbell
2014-06-06 22:11         ` Dario Faggioli
2014-05-28  0:42 ` [PATCH v6 7/9] xl: enable getting and setting soft Dario Faggioli
2014-05-28 15:33   ` Ian Campbell
2014-05-28 16:01     ` Dario Faggioli
2014-06-02 15:20   ` George Dunlap [this message]
2014-05-28  0:42 ` [PATCH v6 8/9] xl: enable for specifying node-affinity in the config file Dario Faggioli
2014-05-28 15:48   ` Ian Campbell
2014-05-28 16:55     ` Dario Faggioli
2014-05-28  0:42 ` [PATCH v6 9/9] libxl: automatic NUMA placement affects soft affinity Dario Faggioli

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=538C9655.109@eu.citrix.com \
    --to=george.dunlap@eu.citrix.com \
    --cc=Andrew.Cooper3@citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=dario.faggioli@citrix.com \
    --cc=keir@xen.org \
    --cc=xen-devel@lists.xenproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).