User Manual
Features Overview and ConfigurationRev 2.3-1.0.1
Mellanox Technologies
158
Example:
struct ibv_exp_prefetch_attr prefetch_attr;
prefetch_attr.flags = IBV_EXP_PREFETCH_WRITE_ACCESS;
prefetch_attr.addr = addr;
prefetch_attr.length = length;
prefetch_attr.comp_mask = 0;
ibv_exp_prefetch_mr(mr, &prefetch_attr);
For further information, please refer to the ibv_exp_prefetch_mr manual page.
3.2.7.6.6 ODP Statistics
To aid in debugging and performance measurements and tuning, ODP support includes an exten-
sive set of statistics. The statistics are divided into 2 sets: standard statistics and debug statistics.
Both sets are maintained on a per
-device basis and report the total number of events since the
device was registered.
The standard statistics are reported as sysfs entries with the following format:
/sys/class/infiniband_verbs/uverbs[0/1]/
invalidations_faults_contentions
num_invalidation_pages
num_invalidations
num_page_fault_pages
num_page_faults
num_prefetchs_handled
num_prefetch_pages
Counter Name Description
invalidations_faults_contentions Number of times that page fault events were dropped or
prefetch operations were restarted due to OS page invalida-
tions.
num_invalidation_pages Total number of pages invalidated during all invalidation
events.
num_invalidations Number of invalidation events.
num_page_fault_pages Total number of pages faulted in by page fault events.
num_page_faults Number of page fault events.
num_prefetches_handled Number of prefetch verb calls that were completed success-
fully.
num_prefetch_pages Total number of pages that were prefetched by the prefetch
verb.
The debug statistics are reported by debugfs entries with the following format:
/sys/kernel/debug/mlx5/<pci-dev-id>/odp_stats/
num_failed_resolutions
num_mrs_not_found
num_odp_mr_pages
num_odp_mrs