Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

SGX Loading

Sam5
New Contributor I
1,351 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
1,351 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

0 Kudos
2 Replies
Surenthar_S_Intel
1,352 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

0 Kudos
Sam5
New Contributor I
1,351 Views

Thanks for your detailed information

0 Kudos
Reply