From: "Yu, Zhang" <yu.c.zhang@linux.intel.com>
To: David Vrabel <david.vrabel@citrix.com>, xen-devel@lists.xen.org
Cc: kevin.tian@intel.com, keir@xen.org, ian.campbell@citrix.com,
stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com,
ian.jackson@eu.citrix.com, Paul.Durrant@citrix.com,
zhiyuan.lv@intel.com, jbeulich@suse.com, wei.liu2@citrix.com
Subject: Re: [PATCH v2 3/3] tools: introduce parameter max_wp_ram_ranges.
Date: Wed, 27 Jan 2016 15:03:02 +0800 [thread overview]
Message-ID: <56A86BA6.4060403@linux.intel.com> (raw)
In-Reply-To: <56A7557E.3030701@citrix.com>
On 1/26/2016 7:16 PM, David Vrabel wrote:
> On 22/01/16 03:20, Yu Zhang wrote:
>> --- a/docs/man/xl.cfg.pod.5
>> +++ b/docs/man/xl.cfg.pod.5
>> @@ -962,6 +962,24 @@ FIFO-based event channel ABI support up to 131,071 event channels.
>> Other guests are limited to 4095 (64-bit x86 and ARM) or 1023 (32-bit
>> x86).
>>
>> +=item B<max_wp_ram_ranges=N>
>> +
>> +Limit the maximum write-protected ram ranges that can be tracked
>> +inside one ioreq server rangeset.
>> +
>> +Ioreq server uses a group of rangesets to track the I/O or memory
>> +resources to be emulated. Default limit of ranges that one rangeset
>> +can allocate is set to a small value, due to the fact that these ranges
>> +are allocated in xen heap. Yet for the write-protected ram ranges,
>> +there are circumstances under which the upper limit inside one rangeset
>> +should exceed the default one. E.g. in XenGT, when tracking the per-
>> +process graphic translation tables on intel broadwell platforms, the
>> +number of page tables concerned will be several thousand(normally
>> +in this case, 8192 could be a big enough value). Not configuring this
>> +item, or setting its value to 0 will result in the upper limit set
>> +to its default one. Users who set his item explicitly are supposed
>> +to know the specific scenarios that necessitate this configuration.
>
> This help text isn't very helpful. How is a user supposed to "know the
> specific scenarios" that need this option?
>
Thank you for your comment, David. :)
Well, "know the specific scenarios" may seem too ambiguous. Here the
"specific scenarios" means when this parameter is used:
1> for virtual devices other than vGPU in GVT-g;
2> for GVT-g, there also might be some extreme cases, e.g. too many
graphic related applications in one VM, which create a great deal of
per-process graphic translation tables.
3> for GVT-g, future cpu platforms which provide even more PPGGTs.
Other than these cases, 8192 is a suggested value for this option.
So how about we add a section to point out these scenarios in this
text?
> Why doesn't the toolstack (or qemu) automatically set this value based
> on whether GVT-g/GVT-d is being used? Then there is no need to even
> present this option to the user.
>
> David
>
By now, this parameter is used in GVT-g, but we are expecting more
usages for other devices which adopt this mediated pass-through idea.
Indeed, XenGT has an xl configuration flag, and several other XenGT
specific parameters. We have plans to upstream these options later
this year. After these XenGT options are accepted, we can set this
"max_wp_ram_ranges" to a default value if GVT-g is detected and the
"max_wp_ram_ranges" is not explicitly configured.
prev parent reply other threads:[~2016-01-27 7:03 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-22 3:20 [PATCH v11 0/3] Refactor ioreq server for better performance Yu Zhang
2016-01-22 3:20 ` [PATCH v11 1/3] Refactor rangeset structure " Yu Zhang
2016-01-22 3:20 ` [PATCH v11 2/3] Differentiate IO/mem resources tracked by ioreq server Yu Zhang
2016-01-22 11:43 ` Jan Beulich
2016-01-26 7:59 ` Yu, Zhang
2016-01-26 11:24 ` Jan Beulich
2016-01-27 7:02 ` Yu, Zhang
2016-01-27 10:28 ` Jan Beulich
2016-01-22 3:20 ` [PATCH v2 3/3] tools: introduce parameter max_wp_ram_ranges Yu Zhang
2016-01-22 8:01 ` Jan Beulich
2016-01-26 7:32 ` Yu, Zhang
2016-01-26 11:00 ` Jan Beulich
2016-01-27 7:01 ` Yu, Zhang
2016-01-27 10:27 ` Jan Beulich
2016-01-27 14:13 ` Yu, Zhang
2016-01-27 14:32 ` Jan Beulich
2016-01-27 14:56 ` Yu, Zhang
2016-01-27 15:12 ` Jan Beulich
2016-01-27 15:23 ` Yu, Zhang
2016-01-27 15:58 ` Jan Beulich
2016-01-27 16:12 ` Yu, Zhang
2016-01-26 11:16 ` David Vrabel
2016-01-27 7:03 ` Yu, Zhang [this message]
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=56A86BA6.4060403@linux.intel.com \
--to=yu.c.zhang@linux.intel.com \
--cc=Paul.Durrant@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=david.vrabel@citrix.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=keir@xen.org \
--cc=kevin.tian@intel.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.org \
--cc=zhiyuan.lv@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).