All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: "Chen, Tiejun" <tiejun.chen@intel.com>
Cc: Keir Fraser <keir@xen.org>,
	Ian Campbell <ian.campbell@citrix.com>, Tim Deegan <tim@xen.org>,
	IanJackson <ian.jackson@eu.citrix.com>,
	xen-devel@lists.xen.org, Jan Beulich <JBeulich@suse.com>,
	Malcolm Crossley <malcolm.crossley@citrix.com>
Subject: Re: [PATCH] xen/domctl: lower loglevel of XEN_DOMCTL_memory_mapping
Date: Thu, 10 Sep 2015 20:59:20 -0400	[thread overview]
Message-ID: <20150911005920.GD16994@konrad-lan.dumpdata.com> (raw)
In-Reply-To: <55F22402.5020506@intel.com>

On Fri, Sep 11, 2015 at 08:44:50AM +0800, Chen, Tiejun wrote:
> >>Right, that's one of the things that would need taking care of.
> >>(Whether enforcing an upper limit is actually needed I'm not
> >>sure - we generally allow the admin to shoot himself in the foot
> >>if he wants to. And whether the lower limit should be 64 instead
> >>of just ensuring the limit is not zero is another question.)
> >
> >64 was semi-arbitrary  - it ended up giving good latency on
> >highly scalar machines (8 socket). Higher numbers ended up
> >affecting the latency.
> >
> >But higher numbers on small socket machines were OK.
> >(As they do not have 8 IOMMU VT-d chipsets all potentially
> >flodding the QPI with serialized cache flushes).
> >>
> 
> So we should make this range [8, <Its up to the user>] here, but 64 by
> default. Right?

Not sure I follow you. The 8 was based on 8 socket machines having 8
IOMMUs..

If you want a formula I would do:

#define MAX_SOCKETS 8

 max_pfns = pow(2,(MAX_SOCKETS - (max(nr_iommus(), MAX_SOCKETS)))) * 64;

Where nr_iommus would have to be somehow implemented, ditto for pow.

This should give you:
 8	-> 64
 7	-> 128
 6	-> 256
 5	-> 512
 4	-> 1024
 3	-> 2048
 2	-> 4096
 1	-> 16384

> 
> Thanks
> Tiejun
> 

  reply	other threads:[~2015-09-11  0:59 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
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 [this message]
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=20150911005920.GD16994@konrad-lan.dumpdata.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=malcolm.crossley@citrix.com \
    --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.