All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
	xen-devel@lists.xenproject.org, xudong.hao@intel.com,
	ian.campbell@citrix.com, wei.liu2@citrix.com
Subject: Re: xl cpu online/offline?
Date: Wed, 13 Jan 2016 15:15:20 +0000	[thread overview]
Message-ID: <56966A08.30006@citrix.com> (raw)
In-Reply-To: <20160113145359.GA23951@char.us.oracle.com>

On 13/01/16 14:53, Konrad Rzeszutek Wilk wrote:
> Hey,
>
> We have some libxc calls for onlining/offlining the CPU and they
> are quite good for testing how well Xen behaves without say
> doing an S3 suspend or such.
>
> It occurred to me that it would be nice to have them hook up in
> libxl/xl but I am not exactly sure what the right command line would be?
>
> And whether you want to make it super-duper smart to be able to deal
> with ranges or hex masks, etc (like xentrace does).
>
> Anyhow my first thought was:
>
>  xl cpu online/offline
>
> but most of the commands seem to follow one command per action, so perhaps:
>
>  xl cpu-online
>  xl cpu-offline
>
> ? 

Merging the xen-hptool functionality into xl would be a good improvement.

It uses:
andrewcoop@andrewcoop:~$ ssh idol xen-hptool
xen-hptool: Xen CPU/memory hotplug tool
Usage: xen-hptool <command> [args]
Commands:
  help                     display this help
  cpu-online    <cpuid>    online CPU <cpuid>
  cpu-offline   <cpuid>    offline CPU <cpuid>
  mem-online    <mfn>      online MEMORY <mfn>
  mem-offline   <mfn>      offline MEMORY <mfn>
  mem-status    <mfn>      query Memory status<mfn>

~Andrew

  reply	other threads:[~2016-01-13 15:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-13 14:53 xl cpu online/offline? Konrad Rzeszutek Wilk
2016-01-13 15:15 ` Andrew Cooper [this message]
2016-01-13 15:40   ` Konrad Rzeszutek Wilk
2016-01-14 10:55 ` Ian Campbell
2016-01-14 12: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=56966A08.30006@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=konrad.wilk@oracle.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    --cc=xudong.hao@intel.com \
    /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.