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

performance optimization within enclave

Matthias_H_Intel
Employee
1,095 Views

Is there any tool (SEP, VTune ...) which would allow to somehow analyze enclave SW (non release, e.g. debug build). If so, is there any documentation? 

0 Kudos
1 Solution
Kuppusamy_R_Intel
1,095 Views

An enclave is an isolated environment. Performance analysis tools such as AQtime*, perf tools, VTune*, Valgrind* are not supported inside an enclave. The Intel® Software Guard Extensions Evaluation SDK provides a tool called sgx_emmt to measure the real usage of protected memory by the enclave at runtime.

Please refer the following link for more details "Intel® Software Guard Extensions Evaluation SDK" 

View solution in original post

0 Kudos
3 Replies
Kuppusamy_R_Intel
1,096 Views

An enclave is an isolated environment. Performance analysis tools such as AQtime*, perf tools, VTune*, Valgrind* are not supported inside an enclave. The Intel® Software Guard Extensions Evaluation SDK provides a tool called sgx_emmt to measure the real usage of protected memory by the enclave at runtime.

Please refer the following link for more details "Intel® Software Guard Extensions Evaluation SDK" 

0 Kudos
Francisco_C_Intel
1,095 Views

Chapter 7 of the PRM details some of the performance / debugging that is available in the architecture:

https://software.intel.com/sites/default/files/managed/48/88/329298-002.pdf

Searching for SGX in the VTune release notes indicates which version of VTune has some support for SGX:

https://software.intel.com/sites/default/files/managed/ae/63/release_notes_amplifier_windows.pdf

EDIT:
However, version 1.1 of the software does not include support for VTune.

0 Kudos
Francisco_C_Intel
1,095 Views

SGX 1.6 is now available, with "Support for profiling SGX applications using Intel® VTune™. To profile SGX applications, use VTune™ 2016 Update 2 which contains an analysis type, SGX Hotspots"

https://software.intel.com/en-us/sgx-sdk/download

 

 

0 Kudos
Reply