Community
cancel
Showing results for 
Search instead for 
Did you mean: 
chi__kai
Novice
142 Views

How to count EPC paging, EPC hits and EPC misses?

Hi,

I am looking for a way to count EPC hits and misses, and EPC paging.

For EPC paging I thought of counting the invocations of the EWB instruction. For that I placed a counter in:

static void sgx_evict_page(struct sgx_encl_page *entry,
			   struct sgx_encl *encl)

Every invocation would equal to 4kB of data. Is that correct?

I actually tried it out and for an enclave that processed some data in 30s it showed me 6000MB of EPC paging. Could that really be the number?

 

I struggle to find a way to count EPC hits and misses. Is there a way to detect an EPC access?

 

Best,

Kajetan

Labels (3)
0 Kudos
3 Replies
JananiC_Intel
Moderator
79 Views

Hi,


Thanks for posting in Intel forums.


Could you share your platform details?


Regards,

Janani Chandran


chi__kai
Novice
75 Views

I'm running Ubuntu 18.04.5 with kernel 5.3.0 on Intel Core i7-8565U CPU and  SGX driver v2.11

JananiC_Intel
Moderator
30 Views

Hi,


Sorry for the delay .We are checking with the concerned team. We will get back to you shortly.


Regards,

Janani Chandran