From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: xl cpu online/offline? Date: Wed, 13 Jan 2016 10:40:47 -0500 Message-ID: <20160113154047.GC23951@char.us.oracle.com> References: <20160113145359.GA23951@char.us.oracle.com> <56966A08.30006@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aJNXc-0003M5-BW for xen-devel@lists.xenproject.org; Wed, 13 Jan 2016 15:40:56 +0000 Content-Disposition: inline In-Reply-To: <56966A08.30006@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: xen-devel@lists.xenproject.org, xudong.hao@intel.com, ian.campbell@citrix.com, wei.liu2@citrix.com List-Id: xen-devel@lists.xenproject.org On Wed, Jan 13, 2016 at 03:15:20PM +0000, Andrew Cooper wrote: > 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 /me nods. > xen-hptool: Xen CPU/memory hotplug tool > Usage: xen-hptool [args] > Commands: > help display this help > cpu-online online CPU > cpu-offline offline CPU > mem-online online MEMORY > mem-offline offline MEMORY > mem-status query Memory status > > ~Andrew