Woju was unclear on this, but I think he was replying to "Are
there are performance hits on system call, network io, anything
that causes transitions outside of enclave?" - so, it was only
about transitions to the outside of the enclave.
On 3/22/24 16:30, Vij, Mona wrote:
> I wouldn't say that there is significant performance drop as a general statement. It depends on your workload. If your application does not fit in EPC then you may see big overheads. But limited EPC is an issue with older hardware, most of new server parts have upto 1TB of EPC, so EPC size problem is not an issue anymore, and that is why we see little perf issue with most applications. If your application fits within the EPC then in some cases we have seen as low as 2-3% overhead. > > So really depends on the workload and we have several tuning optimizations to improve your performance in Gramine. > > See https://gramine.readthedocs.io/en/stable/performance.html > > Thanks > Mona > > -----Original Message----- > From: gramin...@googlegroups.com <gramin...@googlegroups.com> On Behalf Of Wojtek Porczyk > Sent: Friday, March 22, 2024 3:08 AM > To: Raghudeep Kannavara <ragh...@meta.com> > Cc: us...@gramineproject.io > Subject: Re: Gramine Enclave size and performance >On Thu, Mar 21, 2024 at 05:37:33PM +0000, 'Raghudeep Kannavara' via Gramine Users wrote:
> 1.
> Is there a size limitation on applications that can run in gramine SGX?
> i.e., without application modification or application refactoring?
Not directly, but there are performance discontinuities related to the size of the application's memory. One is, on not-very-recent silicon there's limited Enclave Page Cache (EPC) and if you run too big app or too many enclaves at once, this might cause excessive swapping.
> 2.
> Are there are performance hits on system call, network io, anything
> that causes transitions outside of enclave?
There is significant performance drop compared to running app outside of SGX enclave. You need to measure it yourself for your own workload on a particular configuration.
To view this discussion on the web visit https://groups.google.com/d/msgid/gramine-users/BY3PR15MB5026E49BB24E324EDCEA46EFD5F52%40BY3PR15MB5026.namprd15.prod.outlook.com.
RA_TLS_EPID_API_KEY=1111111111111111111111111111111