-
Hi All, I think I am a bit confused about when exactly the files mentioned in the My questions are:
Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The latter. The files are copied inside the enclave only on demand.
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 If you have a modern big CPU (e.g., Intel Icelake Server, aka ICX) and you enable the EDMM feature (will be available in Gramine v1.4 under
Very good question. Basically, three things:
After this fresh enclave is created, Gramine jumped into its entrypoint, and then the rest of the initialization happens (now inside the SGX enclave itself): loading the LibOS component of Gramine, loading the interpreter ( For the sources, you can look at this: gramine/python/graminelibos/sgx_sign.py Line 205 in 5fb3154 |
Beta Was this translation helpful? Give feedback.
The latter. The files are copied inside the enclave only on demand.
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…