All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Liu <bob.liu@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Bob Liu <lliubbo@gmail.com>,
	ian.campbell@citrix.com, andrew.cooper3@citrix.com,
	dario.faggioli@citrix.com, xen-devel@lists.xen.org
Subject: Re: [RFC PATCH 2/2] xen: tmem: make tmem aware of NUMA affinity
Date: Thu, 20 Mar 2014 19:59:30 +0800	[thread overview]
Message-ID: <532AD822.4060107@oracle.com> (raw)
In-Reply-To: <532AC23F0200007800126089@nat28.tlf.novell.com>


On 03/20/2014 05:26 PM, Jan Beulich wrote:
>>>> On 19.03.14 at 18:12, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
>> Would you perhaps reconsider reviewing the code that Bob
>> posted and ignore the committing part of it until a later time
>> (when tmem has gotten throught the security audit).
> 
> The code looked reasonable, albeit I'm not certain it's to the
> point: Aren't certain types of pages sharable between domains?

Yes.

> For those, setting the affinity based on the domain for which
> the allocation gets done doesn't seem ideal. Plus the domain

The ideal situation for tmem is try to allocate pages from nodes in
domain's node_affinity, if there isn't enough memory on those nodes then
fall back to other online nodes.

Do you have any suggestion how to implement this?

> heap use of tmem was found to be broken anyway, and hence

Yes, but I think it's still better if tmem prefers nodes in
domain->node_affinity rather than all online nodes.

> extending the respective allocation interface seems odd from a
> second viewing angle too.
> 
> On the upside of things I would expect to find further uses for
> the extended domain page allocation interface. I'm wondering
> though whether we couldn't get away without adding yet
> another wrapper function: Considering that the passed in
> node mask is ignored if d != NULL, making the first argument
> a transparent union and adding _MEMF_nodemask to indicate
> that the passed in pointer is to a nodemask_t rather than a
> struct domain, we could stay with the current single interface.
> Inline type-safe accessors to both variants would then seem
> to be the way to go.
> 

Thank you for your review!

-- 
Regards,
-Bob

  reply	other threads:[~2014-03-20 11:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-18 12:25 [RFC PATCH 1/2] xen: page_alloc: introduce alloc_domheap_pages_nodemask() Bob Liu
2014-03-18 12:25 ` [RFC PATCH 2/2] xen: tmem: make tmem aware of NUMA affinity Bob Liu
2014-03-18 14:29   ` Jan Beulich
2014-03-19 17:12     ` Konrad Rzeszutek Wilk
2014-03-20  9:26       ` Jan Beulich
2014-03-20 11:59         ` Bob Liu [this message]
2014-03-20 12:30           ` Jan Beulich
2014-03-19 18:54 ` [RFC PATCH 1/2] xen: page_alloc: introduce alloc_domheap_pages_nodemask() Dario Faggioli

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=532AD822.4060107@oracle.com \
    --to=bob.liu@oracle.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=dario.faggioli@citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=lliubbo@gmail.com \
    --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.