Is it possible to dedicate a CPU to one Guest OS. For exemple, suppose that I have 4 xenolinux and 2 CPUs. Can I set CPU0 to xenolinux0 and CPU1 to 3 others? Guillaume ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> Is it possible to dedicate a CPU to one Guest OS. > For exemple, suppose that I have 4 xenolinux and 2 CPUs. Can I set CPU0 to > xenolinux0 and CPU1 to 3 others? > > GuillaumeCurrently Xen simply allocates guests to CPUs in round-robin order. Really the guest-to-CPU mapping should be managed by tools in domain 0 (perhaps falling back to a default policy of round-robin allocation). It should be very simple to fix this and is on the todo list. -- Keir ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
there currently is no api to set CPU affinitity. However, as at the moment guest oses are not migrated between cpus it should be trivial to provide an option to start a domain on a specific cpu. rolf On Thu, 2003-11-27 at 10:37, Guillaume Thouvenin wrote:> Is it possible to dedicate a CPU to one Guest OS. > For exemple, suppose that I have 4 xenolinux and 2 CPUs. Can I set CPU0 to > xenolinux0 and CPU1 to 3 others? > > Guillaume > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xen-devel------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> Is it possible to dedicate a CPU to one Guest OS. > For exemple, suppose that I have 4 xenolinux and 2 CPUs. Can I set CPU0 to > xenolinux0 and CPU1 to 3 others?Currently, domains get statically assigned in a round-robin fashion to CPUs. It makes sense to add a dom0_op to enable a domain to be pinned to a specified CPU -- I''ll knock up a patch for this. In the future, we intend to load balance (non pinned) domains between CPUs, but this isn''t very high on our todo list. [BTW: If you can''t wait for my patch, then you can ''hack'' it by creating tiny domains 2 and 4 that you never start. You''ll end up with 0 on CPU 0 and 1,3,5 on CPU 1. ] Best, Ian ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel