ASCEND_HOST_LOG_FILE_NUM
Description
Sets the number of log files of each process stored in the application log directories (plog and device-id) in the Ascend EP scenario.
The value range of the environment variable is [1, 1000]. The default value is 10.
- You can run the echo $ASCEND_HOST_LOG_FILE_NUM command to view the values set through environment variables.
- If the environment variable is not configured, invalid, or left empty, the default log setting is used.
- If the actual file number stored in the plog and device-id directories per process exceeds the set value, the earliest logs are automatically deleted. In addition, the maximum file size of plog-pid_*.log or device-pid_*.log file is 20 MB. If the file size is greater than this maximum value, a new log file is generated.
Example
export ASCEND_HOST_LOG_FILE_NUM=20
Restrictions
This environment variable is applicable only to the Ascend EP form.
Applicability
Parent topic: Logs