level-zero icon indicating copy to clipboard operation
level-zero copied to clipboard

[Question] Measuring page-faults

Open jjfumero opened this issue 3 years ago • 3 comments

Is there any example of how to measure page-faults associated with a Level-Zero buffer with Level Zero? I guess I would need this data structure: zet_debug_event_info_page_fault_t but I can't find how to query this.

https://spec.oneapi.io/level-zero/latest/tools/api.html#zet-debug-event-info-page-fault-t

I am looking for something similar to NVIDIA nvprof and "GPU page fault groups" but for Intel GPUs with Level Zero.

jjfumero avatar Oct 06 '22 10:10 jjfumero

@jjfumero are you asking about measuring the overhead of a pagefault, to understand the performance?

jandres742 avatar Oct 06 '22 14:10 jandres742

I would like to get the number of pagefaults for a given execution. Also, the overhead of page fault in Level Zero would be useful. is it possible to get this with the current API?

jjfumero avatar Oct 06 '22 14:10 jjfumero

thanks for the clarification @jjfumero . At this moment we dont have that interface because we dont know of support in L0 drivers to be able to implement such feature. Of course, that could change in the future.

jandres742 avatar Oct 07 '22 18:10 jandres742