From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: xen-devel@lists.xensource.com, kurt.hackel@oracle.com, "Dugger,
Donald D" <donald.d.dugger@intel.com>,
"Xu, Dongxiao" <dongxiao.xu@intel.com>,
Keir Fraser <keir.fraser@eu.citrix.com>,
"Nakajima, Jun" <jun.nakajima@intel.com>,
"Zhang, Xiantao" <xiantao.zhang@intel.com>
Subject: Re: RE: Live migration fails due to c/s 20627
Date: Wed, 16 Dec 2009 09:38:25 -0800 [thread overview]
Message-ID: <4B291B11.2030202@goop.org> (raw)
In-Reply-To: <7e45dd6e-73f9-4f6a-8690-40cff3f468e7@default>
On 12/16/2009 08:23 AM, Dan Magenheimer wrote:
> As Jeremy has pointed out, this cpu/node information is exactly
> the same information that can be obtained by a system call.
> So the only reason that rdtscp is better than using the
> system call would be for performance.
>
No, not a system call. The vgetcpu vsyscall will return the info with
no syscalls, regardless of whether rdtscp is available. It encodes the
data in the segment limit of a special segment, and it can be read back
with the "lsl" instruction.
> Rdtscp is faster than a system call in many situations, but
> now is often emulated in Xen (even on processors that do support
> the hardware instruction*), so cannot be assumed to be much
> faster than a system call. And the difference in performance
> is only measurable if an app is executing rdtscp many thousands
> of times every second.
>
"lsl" is probably at least as fast as rdtscp when executed natively, and
definitely if rdtscp is emulated.
> Suppose a guest believes it has eight cores on a single
> processor/node.
[...]
> Suppose a guest believes it has a total of four cores,
> two cores on each of two nodes.
The pvops kernel never attempts to determine the underlying machine
topology; it always assumes a single NUMA node.
J
next prev parent reply other threads:[~2009-12-16 17:38 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-14 18:02 Live migration fails due to c/s 20627 Dan Magenheimer
2009-12-14 23:19 ` Keir Fraser
2009-12-15 4:40 ` Xu, Dongxiao
2009-12-15 15:56 ` Dan Magenheimer
2009-12-15 16:10 ` Xu, Dongxiao
2009-12-15 16:31 ` Dan Magenheimer
2009-12-15 17:08 ` Dan Magenheimer
2009-12-15 18:04 ` Xu, Dongxiao
2009-12-16 2:07 ` Nakajima, Jun
2009-12-16 2:43 ` Zhang, Xiantao
2009-12-16 4:14 ` Dan Magenheimer
2009-12-16 5:07 ` Zhang, Xiantao
2009-12-16 16:23 ` Dan Magenheimer
2009-12-16 17:38 ` Jeremy Fitzhardinge [this message]
2009-12-16 6:19 ` Jeremy Fitzhardinge
2009-12-16 15:20 ` Dan Magenheimer
2009-12-16 17:31 ` Jeremy Fitzhardinge
2009-12-15 17:12 ` Jeremy Fitzhardinge
2009-12-15 17:24 ` Xu, Dongxiao
2009-12-15 18:25 ` Jeremy Fitzhardinge
2009-12-15 19:20 ` Dan Magenheimer
2009-12-15 19:31 ` Keir Fraser
2009-12-15 19:52 ` Keir Fraser
2009-12-16 15:41 ` Andre Przywara
2009-12-16 16:54 ` Dan Magenheimer
2009-12-15 19:25 ` Keir Fraser
2009-12-15 18:05 ` Xu, Dongxiao
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=4B291B11.2030202@goop.org \
--to=jeremy@goop.org \
--cc=dan.magenheimer@oracle.com \
--cc=donald.d.dugger@intel.com \
--cc=dongxiao.xu@intel.com \
--cc=jun.nakajima@intel.com \
--cc=keir.fraser@eu.citrix.com \
--cc=kurt.hackel@oracle.com \
--cc=xen-devel@lists.xensource.com \
--cc=xiantao.zhang@intel.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.