- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am writing an intel sgx application on a multisocket machine. I am running some benchmarks and I need to do numa aware allocation inside the enclave. Is there a way I can force the enclave to allocate EPC pages on a specific numa socket? If that's not possible, how can I check on which numa socket are the epc pages being allocated? Is there a default policy for allocation?
Cheers,
Yassine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
If you are using Linux kernel 5.13 or newer with the SGX driver built in, it already has basic NUMA-aware allocation build in. This means that it will try to allocate all required EPC for a given enclave on a single CPU (so it won't span memory allocation across the sockets). You can read more about the patch here.
Sincerely,
Sahira
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
If you are using Linux kernel 5.13 or newer with the SGX driver built in, it already has basic NUMA-aware allocation build in. This means that it will try to allocate all required EPC for a given enclave on a single CPU (so it won't span memory allocation across the sockets). You can read more about the patch here.
Sincerely,
Sahira
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Is there a way to force the enclave to do cross numa allocation? I need this feature to do some benchmarking regarding the memory access latencies in case of cross numa memory access ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
There is no out of box way to force the enclave to do cross numa allocation. You would need to modify the kernel driver in order to accomplish this.
Sincerely,
Sahira
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page