QAT_Engine icon indicating copy to clipboard operation
QAT_Engine copied to clipboard

is there a way to measure usage of QAT?

Open lioncfliu opened this issue 5 years ago • 8 comments

I wonder get a way to monitor usage of QAT . Just like usage of CPU or bandwidth of Ethernet card .

lioncfliu avatar Mar 06 '19 10:03 lioncfliu

Hi @lioncfliu , There is no explicit way to measure the usage of QAT card like CPU but instead we can check the count for number of requests over time via cat /sys/kernel/debug/<QAT_device_id>/fw_counters for QAT1.7 devices and cat /proc/icp_<device_number>/qat for QAT1.6 devices which is answered in the thread https://github.com/intel/QAT_Engine/issues/78 in terms of QAT utilization.

Example Commands: For QAT1.7 : cat /sys/kernel/debug/qat_c6xx_0000:05:00.0/fw_counters For QAT1.6 : cat /proc/icp_dh895xcc_dev0/qat

Please check and let us know if you need further information.

Yogaraj-Alamenda avatar Mar 06 '19 18:03 Yogaraj-Alamenda

thanks a lot . I am going to try it out .

lioncfliu avatar Mar 08 '19 08:03 lioncfliu

Hi @Yogaraj-Alamenda ,

Do I have to install any additional components to view "fw_counters" . I observed only the following under /sys/kernel/debug

ls /sys/kernel/debug/qat_dh895xcc_0000:03:00.0/

dev_cfg transport

sonyarpita avatar Jul 28 '21 05:07 sonyarpita

@sonyarpita Normal make install will do, Additional components installation not needed. Am able to see the below folders when installed with root using the latest driver (4.14) .Could you please let us know what is the driver version you are using ?


 ls /sys/kernel/debug/qat_dh895xcc_0000\:05\:00.0/
cnv_errors  dev_cfg  fw_counters  heartbeat  heartbeat_failed  heartbeat_sent  transport  version

Yogaraj-Alamenda avatar Jul 28 '21 09:07 Yogaraj-Alamenda

I have inboxed driver -

modinfo qat_dh895xcc

filename: /lib/modules/5.13.0-rc3/kernel/drivers/crypto/qat/qat_dh895xcc/qat_dh895xcc.ko version: 0.6.0 description: Intel(R) QuickAssist Technology firmware: qat_895xcc_mmp.bin firmware: qat_895xcc.bin author: Intel

Could you please point me to the latest driver location .

sonyarpita avatar Jul 28 '21 10:07 sonyarpita

Hi @Yogaraj-Alamenda ,

I want to know conclusion of this thread. not fw_counter, is there any other way to measure usage like cpu? If not yet, do you have support plan in future? or if fix code, is it possible?

jhseodev avatar Nov 01 '21 08:11 jhseodev

@jhseodev At present, QAT Engine doesn't have any facility within to measure CPU usage. We rely on other CPU Usage tools to measure. There is no plan for adding it within QAT Engine in near future. However if you can submit any PR that supports within QAT Engine we will be able to test and integrate it.

Latest Driver version can be found here

Yogaraj-Alamenda avatar Nov 01 '21 09:11 Yogaraj-Alamenda

@Yogaraj-Alamenda Sorry, I asked a question about to measure usage of QAT. "not fw_counters, any other way to measure usage of QAT." Thank you for comment.

jhseodev avatar Nov 02 '21 00:11 jhseodev