All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ryan Harper <ryanh@us.ibm.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>,
	xen-devel@lists.xensource.com, Ryan Harper <ryanh@us.ibm.com>
Subject: Re: [PATCH][RESUBMIT] don't schedule unplugged vcpus
Date: Wed, 8 Jun 2005 17:00:04 -0500	[thread overview]
Message-ID: <20050608220004.GG13586@us.ibm.com> (raw)
In-Reply-To: <0e458b5371820d127c90ac838f760c9c@cl.cam.ac.uk>

* Keir Fraser <Keir.Fraser@cl.cam.ac.uk> [2005-06-08 16:57]:
> 
> On 8 Jun 2005, at 22:42, Ian Pratt wrote:
> 
> >I don't see why we care about vcpus that are down. From the user's 
> >point
> >of view they've gone for good -- it just happens that Xen hasn't freed
> >the memory in anticipation of it being used again. What do you think?
> >
> >I'd be inclined just to enter '-1' in the vcpu_to_cpu map. BTW: we 
> >could
> >make it an s16 rather than s32 at the same time. I think 32,768 CPUs
> >should keep be enough for anyone :-)
> 
> This is how I view it. We don't free the vcpu structure only because it 
> isn't reference counted. We can only be sure that noone has a reference 
> to the structure when the entire domain's refcnt falls to zero. Given 
> the small amount of memory involved, it's not worth the pain or 
> run-time cost of adding per-vcpu reference counts.
> 
> So VCPU_down == invisible outside Xen.

So, when I trigger a vcpu to go down via dom0 xm operation, I have to
trust that it worked?  I have no way of knowing at some point later
which vcpus are up or down?  I don't see any cost to this other than
during the getdominfo hcall.  

-- 
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253   T/L: 678-9253
ryanh@us.ibm.com

  reply	other threads:[~2005-06-08 22:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-08 21:42 [PATCH][RESUBMIT] don't schedule unplugged vcpus Ian Pratt
2005-06-08 21:51 ` Keir Fraser
2005-06-08 22:00   ` Ryan Harper [this message]
2005-06-08 22:03     ` Keir Fraser
2005-06-08 22:18       ` Ryan Harper
2005-06-09  7:58         ` Keir Fraser
2005-06-08 21:52 ` Ryan Harper
  -- strict thread matches above, loose matches on Subject: below --
2005-06-08 21:59 Ian Pratt
2005-06-08 22:12 ` Ryan Harper
2005-06-06 21:03 [PATCH] " Ryan Harper
2005-06-08 21:29 ` [PATCH][RESUBMIT] " Ryan Harper

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=20050608220004.GG13586@us.ibm.com \
    --to=ryanh@us.ibm.com \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=m+Ian.Pratt@cl.cam.ac.uk \
    --cc=xen-devel@lists.xensource.com \
    /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.