- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Intel,
It is my understanding that you can run multiple enclaves on the same SGX enabled chip and run multiple threads if it has more than 1 core.
My question is if there is any benefit to running multiple enclaves without threads on a server with 8 cores vs. a server with 2, does the system do some context switching and make use of the cores or are the cores not helpful in that scenario.
Furthermore, what determines how many enclaves you can have running at the same time on a single SGX chip.
Best Regards,
Mads
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
"The number of threads that can run simultaneously inside an enclave is limited by the number of TCSes. The number of TCSes is limited by the amount of EPC memory available."
TCS is Thread Control Structure. Basically, you are limited to the 128MB or 256MB of EPC memory available on your platform. You can run as many enclaves as you can fit in that space.
Regards,
Jesus
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello damgaard22,
This post on SGX Threading answers your question.
Regards,
Jesus
Intel Customer Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jesus,
Thanks, that cleared up some things.
But i am still wondering what limits the amount of enclaves running on say an 8 core processors.
If i do not use threading in my enclaves am i still limited on the amount of cores?
So if i have 8 cores can i run a maximum of 8 enclaves at once?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
"The number of threads that can run simultaneously inside an enclave is limited by the number of TCSes. The number of TCSes is limited by the amount of EPC memory available."
TCS is Thread Control Structure. Basically, you are limited to the 128MB or 256MB of EPC memory available on your platform. You can run as many enclaves as you can fit in that space.
Regards,
Jesus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jesus,
Perfect, that makes sense.
Since i am working on linux which supports paging, is the limit still 256MB or is it increased to the max heapsize of 3.75GB due to paging.
(Though this probably comes with some performance costs).
If this should be a new thread, then just say so.
Best Regards.
Mads
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Mads, you are limited to the amount of EPC memory.
Regards,
Jesus
Intel Customer Support

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page