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

SGX benchmark test

zhou__chen
Beginner
585 Views

I am doing a benchmark of ecall.But I came across a problem.

Due to the size limit of enclave, there will be a page thrashing when the data passed into the enclave exceeds the size of enclave.In  my experiment,different size of array is passed into enclave via ecall to be sorted using quicksort. I record the time the ecall used.

Below is opaque's(https://people.eecs.berkeley.edu/~wzheng/opaque.pdf) sort benchmarks. It can be seen that when the data is larger than the EPC,there will be a "jump".

opaque.png

 

 

 

 

 

 

 

 

 

 

 

 

 

Sadly,below is my benchmark.It is linear:

own.PNG

 

How does it happen?  Thanks!

  • CPU is Intel(R) Core(TM) i5-7400, 8 GB RAM.
  • SGX sdk and psw are both 2.2.
  • Experiment is under HW mode.
  • The enclave max heap size is 16MB.

 

0 Kudos
1 Reply
lim__wen_sheng
Beginner
585 Views

Hi, 

I am doing the same benchmark as yours, but when I passed data which exceeds the enclave size, I get Aborted (core dumped). Is there any method to avoid this issue?

Besides, are you find out the reason of your benchmark data (linearly)?

Thank.

0 Kudos
Reply