The mlxtrace utility is used to configure and extract HW events generated by different units in NVIDIA devices. The utility generates a dump ".trc" file which contains HW events that assist us with debug, troubleshooting and performance analysis. Events can be stored in host memory if driver is up or in a small on-chip buffer (always available) depending on the utility running mode. In order to run the utility it's required to have a configuration file first, this file should be provided by the NVIDIA representative.
A dump file "mlxtrace.trc" will be generated by end of run (file name can be controlled by "-o" flag), this file should be sent to the NVIDIA representative for further diagnostics/troubleshooting.
Memory mode on 5th generation (Group II) devices is supported only by PCI mst devices. Memory mode is supported in Windows, as well as in Linux.
For the tool to properly work with Inband devices, both the MFT and the Firmware must be updated to the latest (MFT v4.18.0 & firmware vXX.32.1xxx).
If ConnectX-4 adapter card is used as an Inband device, for the tool to work properly, you need to use MFT 4.17.0.
- The mst driver must be started prior to running the mlxtrace tool.
- For MEM buffer mode driver must be "loaded" also.
Enter the following command:
Print help and exit
Print version (default=off)
Move to parser mode (default=off)
Activation mode: FIFO - HW BUFFER , MEM - KERNEL BUFFER (possible values="FIFO", "MEM")
Memory access method: OB_GW, MEM, DMEM, FMEM, VMEM (possible values="OB_GW", "MEM", "DMEM", "FMEM", "VMEM")
Note: As of MFT v4.21.0, the following values will be deprecated: MEM, DMEM, FMEM.
|--gvmi||Global virtual machine interface|
Mlxtrace configuration file
Output TRC file path (default=`mlxtrace.trc')
Configure tracer and exit (default=off)
Take events snapshot - this assumes previous run with -- config_only (default=off)
User buffer size [MB] (default=`1')
Don't save events to file parse it immediately (default=off)
Ignore collecting old events in MEM mode (default=off)
Do not stop recording (stopping only with ^C), keep filling user's buffer cyclically (default=off)
Delay between samples when polling new events in [usec] (default=`0')
Keep the HW tracer unit running after exit (default=off)
|--enable_limiting_every_chunk||Limit the HW tracer after reading every chunk (default=off)|
|--skip_ownership||Skip taking ownership (default=off)|
Input file (default=`mlxtrace.trc')
Enable csv output format (default=off)
Print timestamp events (default=off)
Print real timestamps in [hh:mm:ss.nsec] format (default=off)
Print event bytes in each line header (default=off)
Choose printed TS format hex/dec (possible values="hex", "dec" default=`dec')
Enable printing delta between events (in cycles) (default=off)
Print parsed event to the given file and not to stdout
Enable events DB checks (default=off)
Choose the suitable .cfg file depending on the device you are using, and run the following command to generate a .trc file:
To generate a .trc file with a maximal size of 100 MB, run the following command: