ASCEND_TRACE_RECORD_NUM
Description
Sets the aging policy for trace log files. The value range is [10, 1000].
Specifically, this environment variable is used to configure the aging policy of the schedule_event_{PID of the current process}_{Timestamp when the directory is generated} subdirectory under the $HOME/ascend/atrace/trace_{Process group PID}_{PID of the process that loads the dynamic trace library for the first time}_{Timestamp when the dynamic trace library is loaded for the first time} directory. The numbers of trace log files on the host and device are counted separately. This configuration takes effect independently on host and device directories.
Example
export ASCEND_TRACE_RECORD_NUM=15
This configuration allows a maximum of 15 schedule_event_{PID of the current process}_{Timestamp when the directory is generated} subdirectories under the $HOME/ascend/atrace/trace_{Process group PID}_{PID of the process that loads the dynamic trace library for the first time}_{Timestamp when the dynamic trace library is loaded for the first time}/ directory. If the number of directories exceeds the limit, the directories with earlier timestamps are automatically deleted.
Constraints
None
Applicability
Atlas 350 Accelerator Card