Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Sam5
New Contributor I
92 Views

SGX Loading

Jump to solution

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

Accepted Solutions
92 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
93 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
92 Views

Thanks for your detailed information