Skip to content

When exactly files are loaded inside the enclave? and what happens during enclave initialization? #1165

Answered by dimakuv
jogi343 asked this question in Q&A
Discussion options

You must be logged in to vote

Are they copied during enclave initialization? or are they copied when they are actually needed during execution?

The latter. The files are copied inside the enclave only on demand.

If they are copied inside the enclave when they are actually needed, then what things happen during enclave initialization? (as enclave initialization takes a relatively long time to finish)...

Enclave initialization takes a long time to finish for a single reason -- in SGX v1 (without the EDMM feature), the whole enclave memory is mapped at startup. So, if you have a sgx.enclave_size = "16G" enclave, then the whole 16GB of enclave pages will be loaded at startup (more specifically, these pages will be EAD…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jogi343
Comment options

Answer selected by jogi343
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants