Skip to contentSkip to conversation

xl cpu online/offline?

DISCUSSION Konrad Rzeszutek Wilk 3 participants 5 messages Jan 13, 2016 – Jan 14, 2016

lore
Share & tools
lore
#0 lore raw

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

?

Thanks.

#1 lore raw
Quoted 14 lines · Konrad Rzeszutek Wilk

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:

Quoted 8 lines

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

#2 lore raw
Quoted 22 lines · Andrew Cooper
Quoted 21 lines · Konrad Rzeszutek Wilk

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

Quoted 6 lines
Quoted 1 line

?

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

It uses:

andrewcoop@andrewcoop:~$ ssh idol xen-hptool

/me nods.

Quoted 11 lines

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

#3 lore raw
In reply to Konrad Rzeszutek Wilk
Quoted 14 lines · Konrad Rzeszutek Wilk

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:

Quoted 7 lines

 xl cpu online/offline

but most of the commands seem to follow one command per action, so perhaps:

 xl cpu-online
 xl cpu-offline

For end users is the functionality provided by xl vcpu-set not easier and more appropriate?

AIUI the commands you are proposing differ in that they allow arbitrary sets of processors, rather than just the first N, to be manipulated? Perhaps adding a flag to xl vcpu-set would be a nice way to add this ability?

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#4 lore raw
Quoted 24 lines · Ian Campbell
Quoted 8 lines · Konrad Rzeszutek Wilk

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?

Quoted 6 lines

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:

Quoted 7 lines

 xl cpu online/offline

but most of the commands seem to follow one command per action, so perhaps:

 xl cpu-online
 xl cpu-offline

Quoted 9 lines

For end users is the functionality provided by xl vcpu-set not easier and
more appropriate?

AIUI the commands you are proposing differ in that they allow arbitrary sets of processors, rather than just the first N, to be manipulated? Perhaps adding a flag to xl vcpu-set would be a nice way to add this ability?

These hypercalls are for offllining and onling physical CPUs, not guest CPUs. As in the hypervisor one.

Quoted 1 line

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel