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

Enclave Memory size in simulation mode

Kassem
Beginner
2,065 Views

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.

0 Kudos
1 Solution
JesusG_Intel
Moderator
2,052 Views

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


View solution in original post

0 Kudos
3 Replies
JesusG_Intel
Moderator
2,053 Views

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


0 Kudos
Kassem
Beginner
2,017 Views
Thanks Jesus for the detailed reply!
0 Kudos
JesusG_Intel
Moderator
2,001 Views

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.


0 Kudos
Reply