Intel® Software Guard Extensions (Intel® SGX)
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.

SGX Loading

Sam5
New Contributor I
204 Views

Hi,

Is it possible to load a program larger than the EPC memory to an enclave? I got an error immediately when loading big programs.

-Thanks

0 Kudos
1 Solution
Surenthar_S_Intel
204 Views

Hi Sam,

No, you cannot at this time load an enclave that is larger than the EPC. Due to the current lack of paging support (and lack of dynamic page allocation that v2 will provide) this means that the combined HeapMaxSize of all enclaves loaded at the same time cannot exceed said ~90MB. So your enclave will have to use well below 90MB of heap size on current hardware.

Thanks and Reagrds,
Surenthar Selvaraj

View solution in original post

2 Replies
Surenthar_S_Intel
205 Views

Hi Sam,

No, you cannot at this time load an enclave that is larger than the EPC. Due to the current lack of paging support (and lack of dynamic page allocation that v2 will provide) this means that the combined HeapMaxSize of all enclaves loaded at the same time cannot exceed said ~90MB. So your enclave will have to use well below 90MB of heap size on current hardware.

Thanks and Reagrds,
Surenthar Selvaraj

View solution in original post

Sam5
New Contributor I
204 Views

Thanks for your detailed information

Reply