From: Gianluca Guida <gianluca.guida@eu.citrix.com>
To: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
Ian Pratt <Ian.Pratt@eu.citrix.com>,
xen-devel mailing list <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] Add new location of Linux direct-map to theplaces to look for writable mappings
Date: Fri, 12 Sep 2008 21:32:56 +0100 [thread overview]
Message-ID: <48CAD1F8.2090507@eu.citrix.com> (raw)
In-Reply-To: <DD74FBB8EE28D441903D56487861CD9D35C65107@lonpexch01.citrite.net>
Sorry for the double-quote, I never received bizarrely Dan's email and I
have only Ian's answer.
>> I haven't even looked at this code so sorry for my
>> possibly naive comment, but isn't this just asking for
>> trouble to hardcode constants that apply to specific
>> OS's? Isn't there a way to "sense" that this address is
>> used a lot and add it to a dynamic list that can be
>> checked? Else sooner or later some user is going to say
>> "I tried Xen on xxx OS and performance sucked and it
>> was fine on (unnamed virtualization platform)". But that
>> user might not be as diligent about reporting to
>> xen-devel as Todd was.
I would just like to note that this disastrous benchmark result was due
to two consecutive problems, the OS heuristic being only a secondary issue.
Usually, removing write access to an out-of-sync page shouldn't need at
all the OS heuristic guessing, since it is a very frequent operation and
that would affect performances (as we all have seen). Fixup tables exist
exactly for this purpose, acting basically as reverse map for writable
mappings of pagetables.
What was happening is that the fixup tables were failing, thus the
research of the writable mappings was falling back to guest heuristic.
This is bad per se, but it was working well enough until 2.6.27.
So, while I agree that having hard-coded addresses into the hypervisor
is not nice, in case of failure of this mechanism the results shouldn't
be as bad as the one we've seen. That was all my fault. :)
Thanks,
Gianluca
next prev parent reply other threads:[~2008-09-12 20:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-12 15:38 [PATCH] Add new location of Linux direct-map to the places to look for writable mappings George Dunlap
2008-09-12 15:57 ` Daniel Magenheimer
2008-09-12 19:19 ` [PATCH] Add new location of Linux direct-map to theplaces " Ian Pratt
2008-09-12 20:32 ` Gianluca Guida [this message]
2008-09-15 8:31 ` Tim Deegan
2008-09-15 10:56 ` George Dunlap
2008-09-12 23:49 ` [PATCH] Add new location of Linux direct-map to the places " Jeremy Fitzhardinge
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=48CAD1F8.2090507@eu.citrix.com \
--to=gianluca.guida@eu.citrix.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=Ian.Pratt@eu.citrix.com \
--cc=dan.magenheimer@oracle.com \
--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.