- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the maximum available memory of the enclave? How much should I set the stack and heap so that the enclave can encapsulate the maximum data?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello enclave_research,
You are requesting to allocate 32 GB to each of the heap and stack and that is causing memory issues because, I suspect, you don't have that much RAM. On my system, it compiles very slowly and errors out at runtime with SGX_OUT_OF_MEMORY. Try allocating less memory so that it at least fits into your available RAM and you still have room for other processes to run.
Sincerely,
Jesus G.
Intel Customer Support
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The best answer is "it depends". Legacy CPU supporting SGX were limited to 128 or 256Mbytes, but Intel recently increased this limit...dramatically...up to 1Tbyte. Intel's ARK CPU pages might help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When compiling enclaves, if the requested memory exceeds 64G, it will prompt that the requested memory is too large and the compilation fails.Why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello enclave_research,
Ensure you have configured your project to compile as x64. If this doesn't work, send us more details including source code, makefiles, Visual Studio sln, etc, so we can reproduce your issue.
Have you tested your problematic code snippet as a separate test program outside of the enclave to ensure that it can compile?
Sincerely,
Jesus G.
Intel Customer Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello enclave_research,
Do you still need help with this issue?
Sincerely,
Jesus G.
Intel Customer Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I compile example SealUnseal on the Ubuntu server,Other codes remain unchanged,but Enclave_Seal.config.xml is:
<StackMaxSize>0x7ffc00000</StackMaxSize>
<HeapMaxSize>0x7ffc00000</HeapMaxSize>
<TCSNum>1</TCSNum>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello enclave_research,
You are requesting to allocate 32 GB to each of the heap and stack and that is causing memory issues because, I suspect, you don't have that much RAM. On my system, it compiles very slowly and errors out at runtime with SGX_OUT_OF_MEMORY. Try allocating less memory so that it at least fits into your available RAM and you still have room for other processes to run.
Sincerely,
Jesus G.
Intel Customer Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello enclave_research,
Refer to section Enclave Memory Measurement Tool in the SGX Linux Developer Reference Guide to learn how to use sgx-gdb and sgx_emmt to help determine how much stach and heap to allocate to your enclave based on how much memory the enclave uses.
Sincerely,
Jesus G.
Intel Customer Support
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page