I''ve noticed this section in Xen 3.4 News( http://mail-index.netbsd.org/port-xen/2009/03/02/msg004800.html): CPU offline/hotplug: Xen 3.4 can offline physical CPUs on CPU-core granularity. CPU hotplugging works on CPU granularity. It''s meant as an recover-action for the case of machine-check errors. This feature requires Dom0 support to utilize it. This feature has been almost tested on Intel-CPUs only. Then I downloaded the stable version from xen.org and installed. But since the document is not updated, I don''t know the detail method to offline a physical CPU. Can anyone give me the hint? Thanks very much! -- Yours Sincerely, Ting Shen _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ting Shen
2009-May-12 14:47 UTC
[Xen-devel] need help about CPU offline/hotplug in Xen Unstable
I''ve noticed this section in Xen 3.4 News( http://mail-index.netbsd.org/port-xen/2009/03/02/msg004800.html): CPU offline/hotplug: Xen 3.4 can offline physical CPUs on CPU-core granularity. CPU hotplugging works on CPU granularity. It''s meant as an recover-action for the case of machine-check errors. This feature requires Dom0 support to utilize it. This feature has been almost tested on Intel-CPUs only. Then I downloaded the stable version from xen.org and installed. But since the document is not updated, I don''t know the detail method to offline a physical CPU. Can anyone give me the hint? Thanks very much! -- Yours Sincerely, Ting Shen _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2009-May-12 15:02 UTC
Re: [Xen-devel] need help about CPU offline/hotplug in Xen Unstable
On 12/05/2009 15:47, "Ting Shen" <christieshum@gmail.com> wrote:> Then I downloaded the stable version from xen.org <http://xen.org> and > installed. > But since the document is not updated, I don''t know the detail method to > offline a physical CPU.It''s available as a library function (xc_cpu_offline) but not actually plumbed into a xm command, or other tool. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jiang, Yunhong
2009-May-13 02:01 UTC
RE: [Xen-devel] need help about CPU offline/hotplug in Xen Unstable
We have a tools to achieve that (i.e. xm command). But as Xen tree is closed now, so we are waiting for it be open again and will send it out. --jyh xen-devel-bounces@lists.xensource.com wrote:> On 12/05/2009 15:47, "Ting Shen" <christieshum@gmail.com> wrote: > >> Then I downloaded the stable version from xen.org <http://xen.org> >> and installed. But since the document is not updated, I don''t know >> the detail method to offline a physical CPU. > > It''s available as a library function (xc_cpu_offline) but not actually > plumbed into a xm command, or other tool. > > -- Keir > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
ChristieShum@gmail.com
2009-May-13 04:29 UTC
Re: Re: [Xen-devel] need help about CPU offline/hotplug in Xen Unstable
Thanks a lot. Is there a sample or tutorial for how to implement the offline process using this library? On May 12, 2009 11:02pm, Keir Fraser <keir.fraser@eu.citrix.com> wrote:> On 12/05/2009 15:47, "Ting Shen" christieshum@gmail.com> wrote:> > Then I downloaded the stable version from xen.org http://xen.org> and> > installed.> > But since the document is not updated, I don''t know the detail method to> > offline a physical CPU.> It''s available as a library function (xc_cpu_offline) but not actually> plumbed into a xm command, or other tool.> -- Keir_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ke, Liping
2009-May-13 04:55 UTC
RE: Re: [Xen-devel] need help about CPU offline/hotplug in Xen Unstable
please try below test code piece. Hope it could help you. Thanks& Regards, Criping #include <stdio.h> #include <stdlib.h> #include <xenctrl.h> int main(int argc, char *argv[] ) { int cpu, xc_id; if ( argc < 2) { printf("Please input offline CPU-id\n"); exit(0); } cpu = atoi(argv[1]); printf("Offline CPU %d\n", cpu); xc_id = xc_interface_open(); xc_cpu_offline(xc_id, cpu); printf("CPU offlined\n"); xc_interface_close(xc_id); return 0; } ________________________________ From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of ChristieShum@gmail.com Sent: 2009年5月13日 12:30 To: Xen-devel Subject: Re: Re: [Xen-devel] need help about CPU offline/hotplug in Xen Unstable Thanks a lot. Is there a sample or tutorial for how to implement the offline process using this library? On May 12, 2009 11:02pm, Keir Fraser <keir.fraser@eu.citrix.com> wrote:> On 12/05/2009 15:47, "Ting Shen" christieshum@gmail.com> wrote: > > > > > Then I downloaded the stable version from xen.org http://xen.org> and > > > installed. > > > But since the document is not updated, I don't know the detail method to > > > offline a physical CPU. > > > > It's available as a library function (xc_cpu_offline) but not actually > > plumbed into a xm command, or other tool. > > > > -- Keir > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ting Shen
2009-May-13 05:40 UTC
Re: Re: [Xen-devel] need help about CPU offline/hotplug in Xen Unstable
Yes, It works well. Thank you very much indeed! 2009/5/13 Ke, Liping <liping.ke@intel.com>> please try below test code piece. Hope it could help you. > > Thanks& Regards, > Criping > > #include <stdio.h> > #include <stdlib.h> > > #include <xenctrl.h> > > int main(int argc, char *argv[] ) > { > int cpu, xc_id; > if ( argc < 2) { > printf("Please input offline CPU-id\n"); > exit(0); > } > cpu = atoi(argv[1]); > printf("Offline CPU %d\n", cpu); > xc_id = xc_interface_open(); > xc_cpu_offline(xc_id, cpu); > printf("CPU offlined\n"); > xc_interface_close(xc_id); > return 0; > } > > ------------------------------ > *From:* xen-devel-bounces@lists.xensource.com [mailto: > xen-devel-bounces@lists.xensource.com] *On Behalf Of * > ChristieShum@gmail.com > *Sent:* 2009年5月13日 12:30 > *To:* Xen-devel > *Subject:* Re: Re: [Xen-devel] need help about CPU offline/hotplug in Xen > Unstable > > Thanks a lot. > Is there a sample or tutorial for how to implement the offline process > using this library? > > On May 12, 2009 11:02pm, Keir Fraser <keir.fraser@eu.citrix.com> wrote: > > On 12/05/2009 15:47, "Ting Shen" christieshum@gmail.com> wrote: > > > > > > > > > Then I downloaded the stable version from xen.org http://xen.org> and > > > > > installed. > > > > > But since the document is not updated, I don''t know the detail method > to > > > > > offline a physical CPU. > > > > > > > > It''s available as a library function (xc_cpu_offline) but not actually > > > > plumbed into a xm command, or other tool. > > > > > > > > -- Keir > > > > > > > > > > >-- Yours Sincerely, Ting Shen _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel