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

Memory limit in enclave manifest and EPC paging performance

Hello, Is there a documented upper memory (heap) limit (HeapMaxSize in enclave config)? From testing it seems that the sign tool rejects values above around 0xfffcff000. I guess 64GB should be enough for everybody ;) On a similar topic, are there any tips for optimizing large memory accesses in enclaves? From my testing it seems that random memory access times drop 100-500x when EPC swapping is involved, compared to cases when all needed enclave memory fits in the EPC. Is there anything that can be done to improve enclave memory access performance when linear access is not an option and accesses cause EPC swapping?
0 Kudos
1 Reply

Complete SGX source code including memory management is available at for your analysis.

In addition, there is also a white paper on SGX performance considerations including EPC and memory usage at that may be of your interest.

0 Kudos