Linux-Sgx Archive mirror
 help / color / mirror / Atom feed
From: "Huang, Kai" <kai.huang@intel.com>
To: "linux-sgx@vger.kernel.org" <linux-sgx@vger.kernel.org>,
	"Hansen, Dave" <dave.hansen@intel.com>,
	"Patel, Himanshu" <himanshu.patel@intel.com>
Cc: "Kuvaiskii, Dmitrii" <dmitrii.kuvaiskii@intel.com>,
	"Hossain, Md Iqbal" <md.iqbal.hossain@intel.com>
Subject: Re: SGX Information needed
Date: Tue, 27 Sep 2022 08:27:23 +0000	[thread overview]
Message-ID: <b6db6b4434f013b8a885cc0edd1bcc9f57111567.camel@intel.com> (raw)
In-Reply-To: <BL0PR11MB29631E761E1DBC175E0C21C180559@BL0PR11MB2963.namprd11.prod.outlook.com>

On Tue, 2022-09-27 at 07:41 +0000, Patel, Himanshu wrote:
> ++linux-sgx@vger.kernel.org
>  
> Please explain me the process for my below questions. 
>  
> Thanks
> Himanshu
>  
> From: Patel, Himanshu 
> Sent: Tuesday, September 27, 2022 10:48 AM
> To: Hansen, Dave <dave.hansen@intel.com>; Huang, Kai <kai.huang@intel.com>
> Cc: Hossain, Md Iqbal <md.iqbal.hossain@intel.com>; Kuvaiskii, Dmitrii
> <Dmitrii.Kuvaiskii@intel.com>
> Subject: SGX Information needed
>  
> Hi Dave/Kai,
>  
> I have some questions related to SGX. I am putting a scenario here.
>  
> suppose we have 16G PRM (per socket) and sgx_enclave_size=64G , so workload
> will need remote socket's enclave memory as well right.
> which entity (SGX driver?) is doing the job to decide remote sockets to
> fulfill workload's requirement?
>  
> If SGX driver is deciding , it must be looking somewhere(like any mapped table
> or anything else) to select remote sockets, what it that?
>  

Hi Himanshu,

Jarkko should be the person to answer, but I'll try first:  

Yes the SGX driver decides which node(s) to allocate.  Firstly the drive tries
to allocate from the local node.  If local node is running out of EPC page, the
driver tries to allocate EPC page from the 'next-highest node' (i.e. node 0 -> 1
-> 2 ...).

EPC doesn't have its own SRAT type, so it depends on SRAT table's memory
resource (which covers EPC in  practice, if I recall correctly)  affinity to
decide which EPC page belongs to which node.

Hope above helps.

-- 
Thanks,
-Kai



           reply	other threads:[~2022-09-27  8:27 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <BL0PR11MB29631E761E1DBC175E0C21C180559@BL0PR11MB2963.namprd11.prod.outlook.com>]

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=b6db6b4434f013b8a885cc0edd1bcc9f57111567.camel@intel.com \
    --to=kai.huang@intel.com \
    --cc=dave.hansen@intel.com \
    --cc=dmitrii.kuvaiskii@intel.com \
    --cc=himanshu.patel@intel.com \
    --cc=linux-sgx@vger.kernel.org \
    --cc=md.iqbal.hossain@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 read-only IMAP folder(s) and NNTP newsgroup(s).