QAT_Engine
QAT_Engine copied to clipboard
is there a way to measure usage of QAT?
I wonder get a way to monitor usage of QAT . Just like usage of CPU or bandwidth of Ethernet card .
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.
thanks a lot . I am going to try it out .
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 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
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 .
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 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 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.