All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Dorman <pauld@cwa.co.nz>
To: xen-devel@lists.sourceforge.net
Subject: Re: xen affinity in an SMP system
Date: Tue, 12 Oct 2004 07:23:08 +1300	[thread overview]
Message-ID: <200410120723.08911.pauld@cwa.co.nz> (raw)
In-Reply-To: <E1CGw3d-0003Ay-00@mta1.cl.cam.ac.uk>

On Monday 11 October 2004 10:01 pm, Keir Fraser wrote:
> > > As I understand it, a domain is tied to a specific CPU on startup, and
> > > if it can be changed, it can only be changed manually. Is that right?
> >
> > Yup, it's changed manually using an xm command (probably "xm pincpu [dom]
> > [cpu]" but I've never used it and could be wrong ;-).
>
> Yes, that works.
>
> > > Is it possible to have xen (or xend) check at regular intervals and
> > > move a domain to another physical CPU depending on current load?
> >
> > Currently this isn't done but it's perfectly feasible.  Sensible options
> > are: 1) Have an scheduler in Xen that will migrate domains about at run
> > time. 2) Have the load balancer task in Xend.
>
> Alternatively you could do it with a small external program. This
> would poll either xend to get load stats for each domain, or could use
> libxc directly. It would then talk to xend to re-pin appropriate
> domains.
>
> A nice simple modular piece of functionality that would be easy to
> maintain and modify.

This is the approach I like for sure. It's much easier for someone like me 
(who isn't a low-level systems programmer) to write scripts to do this sort 
of stuff. I think you'll get much more community input this way too, and it 
doesn't negate the possibility of building load-balancing capabilities in at 
a later date.

I intend to use a combination of tools on the VMs themselves, reporting back 
to a central control script, and whatever auxilliary information I can get 
from Xen and dom-0's proc.

Paul


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

  reply	other threads:[~2004-10-11 18:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-10 23:57 xen affinity in an SMP system James Harper
2004-10-11  0:20 ` Mark A. Williamson
2004-10-11  9:01   ` Keir Fraser
2004-10-11 18:23     ` Paul Dorman [this message]
2004-10-11 13:48 ` Problems with loopback and sda1 Rune Johan Andresen
2004-10-11 14:26   ` Ian Pratt
2004-10-11 14:51   ` Mark A. Williamson
2004-10-11 16:29     ` Rune Johan Andresen

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=200410120723.08911.pauld@cwa.co.nz \
    --to=pauld@cwa.co.nz \
    --cc=xen-devel@lists.sourceforge.net \
    /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.