All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jarkko Sakkinen <jarkko@kernel.org>
To: linux-sgx@vger.kernel.org, haitao.huang@intel.com
Cc: dan.j.williams@intel.com, Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
	x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	linux-kernel@vger.kernel.orgc
Subject: Re: [PATCH v2] x86/sgx: Add a basic NUMA allocation scheme to sgx_alloc_epc_page()
Date: Thu, 25 Feb 2021 10:14:54 +0200	[thread overview]
Message-ID: <YDdcfrqlitSS/aw/@kernel.org> (raw)
In-Reply-To: <20210223213541.284871-1-jarkko@kernel.org>

On Tue, Feb 23, 2021 at 11:35:41PM +0200, Jarkko Sakkinen wrote:
> Background
> ==========
> 
> EPC section is covered by one or more SRAT entries that are associated with
> one and only one PXM (NUMA node). The motivation behind this patch is to
> provide basic elements of building allocation scheme based on this premise.
> 
> It does not try to fully address NUMA. For instance, it does not provide
> integration to the mempolicy API, but neither does introduce any
> bottlenecks to address this later on. Memory allocation is a complex topic,
> and thus it's better to start with baby steps.
> 
> Solution
> ========
> 
> Use phys_to_target_node() to associate each NUMA node with the EPC sections
> contained within its range.
> 
> In sgx_alloc_epc_page(), first try to allocate from the NUMA node, where
> the CPU is executing. If that fails, fallback to the legacy allocation.
> 
> Link: https://lore.kernel.org/lkml/158188326978.894464.217282995221175417.stgit@dwillia2-desk3.amr.corp.intel.com/
> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>

In [1], 'numa' branch is tip/master with the patch set on top.

Haitao, Any chances that you might have time to give a shot at testing
this, when the bandwidth allows?

[1] https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-sgx.git:

/Jarkko

      reply	other threads:[~2021-02-25  8:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-23 21:35 [PATCH v2] x86/sgx: Add a basic NUMA allocation scheme to sgx_alloc_epc_page() Jarkko Sakkinen
2021-02-25  8:14 ` Jarkko Sakkinen [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=YDdcfrqlitSS/aw/@kernel.org \
    --to=jarkko@kernel.org \
    --cc=bp@alien8.de \
    --cc=dan.j.williams@intel.com \
    --cc=dave.hansen@linux.intel.com \
    --cc=haitao.huang@intel.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.orgc \
    --cc=linux-sgx@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.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.