Hi,
SGX processors come with a 128MB for enclaves, while newer versions have a 256MB enclave size. I have a few questions about the simulation mode in terms of simulating various hardware enclave's memory size.
Q1- Can I set the EPC maximum size in simulation mode to simulate a 128 and 256 enclave, and how?
Q2- Will page swapping be triggered in simulation mode, and will it simulation mode simulate the performance overhead?
Thanks in advance.
Link Copied
Hello Kassem,
No, you cannot set the EPC size or simulate performance overhead in Simulation mode.
Simulation mode is merely for functional testing. Simulation mode allows you to test the functionality of your enclave and untrusted app on a non-SGX system . The app and enclave are treated like a regular application and are subject to regular page swapping by the OS.
Sincerely,
Jesus G.
Intel Customer Support
Hello Kassem,
No, you cannot set the EPC size or simulate performance overhead in Simulation mode.
Simulation mode is merely for functional testing. Simulation mode allows you to test the functionality of your enclave and untrusted app on a non-SGX system . The app and enclave are treated like a regular application and are subject to regular page swapping by the OS.
Sincerely,
Jesus G.
Intel Customer Support
This thread has been marked as answered and Intel will no longer monitor this thread. If you want a response from Intel in a follow-up question, please open a new thread.
For more complete information about compiler optimizations, see our Optimization Notice.