From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Keir Fraser <keir@xen.org>,
Ian Campbell <ian.campbell@citrix.com>,
Ian Jackson <ian.jackson@eu.citrix.com>, Tim Deegan <tim@xen.org>,
xen-devel@lists.xen.org, Tiejun Chen <tiejun.chen@intel.com>
Subject: Re: [PATCH] xen/domctl: lower loglevel of XEN_DOMCTL_memory_mapping
Date: Wed, 9 Sep 2015 10:50:13 -0400 [thread overview]
Message-ID: <20150909145013.GH28134@l.oracle.com> (raw)
In-Reply-To: <55F05F7002000078000A15B9@prv-mh.provo.novell.com>
On Wed, Sep 09, 2015 at 08:33:52AM -0600, Jan Beulich wrote:
> >>> On 09.09.15 at 16:20, <konrad.wilk@oracle.com> wrote:
> > Perhaps the solution is remove the first printk(s) and just have them
> > once the operation has completed? That may fix the outstanding tasklet
> > problem?
>
> Considering that this is a tool stack based retry, how would the
> hypervisor know when the _whole_ operation is done?
I was merely thinking of moving the printk _after_ the map_mmio_regions
so there wouldn't be any outstanding preemption points in map_mmio_regions
(so it can at least do the 64 PFNs).
But going forward a couple of ideas:
- The 64 limit was arbitrary. It could have been 42 or PFNs / num_online_cpus(),
or actually finding out the size of the BAR and figuring the optimal
case so that it will be done under 1ms. Or perhaps just provide an
boot time parameter for those that really are struggling with this.
- Perhaps add a new API to the P2M code so it can do the operations
in batches. Our map_mmio_region iterates over every PFN which is
surely not efficient. Some batching could help? Maybe? What other
code could benefit from this? Would the boot-time creation of IOMMU
page-tables also help with this (which takes 10 minutes on a 1TB box
BTW)
- This printk can be altogether removed in the hypervisor and moved
in the toolstack. That is the libxl xc_domain_add_to_physmap
could itself use the logging facility (xc_report?) the action.
>
> Jan
>
next prev parent reply other threads:[~2015-09-09 14:50 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-09 6:50 [PATCH] xen/domctl: lower loglevel of XEN_DOMCTL_memory_mapping Tiejun Chen
2015-09-09 14:20 ` Konrad Rzeszutek Wilk
2015-09-09 14:33 ` Jan Beulich
2015-09-09 14:50 ` Konrad Rzeszutek Wilk [this message]
2015-09-09 14:55 ` Jan Beulich
2015-09-09 15:05 ` Konrad Rzeszutek Wilk
2015-09-09 15:19 ` Malcolm Crossley
2015-09-09 15:44 ` Jan Beulich
2015-09-10 5:28 ` Chen, Tiejun
2015-09-10 8:13 ` Jan Beulich
2015-09-10 8:55 ` Chen, Tiejun
2015-09-10 8:59 ` Jan Beulich
2015-09-10 17:55 ` Konrad Rzeszutek Wilk
2015-09-11 0:44 ` Chen, Tiejun
2015-09-11 0:59 ` Konrad Rzeszutek Wilk
2015-09-11 9:17 ` Jan Beulich
2015-09-11 10:28 ` Malcolm Crossley
2015-09-11 11:11 ` Jan Beulich
2015-09-11 12:05 ` Malcolm Crossley
2015-09-11 14:11 ` Jan Beulich
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=20150909145013.GH28134@l.oracle.com \
--to=konrad.wilk@oracle.com \
--cc=JBeulich@suse.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=keir@xen.org \
--cc=tiejun.chen@intel.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.org \
/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.