ASCEND_LOG_DEVICE_FLUSH_TIMEOUT
Description
Specifies the timeout for flushing app logs from the device to the host.
Before the service process exits, there is a default delay of 2000 ms for the system to send the application logs from the device to the host. The service process exits when the session times out. Logs that are not transferred back to the host are directly flushed to the device (path: /var/log/npu/slog). This environment variable is used to change the timeout. Value range: [0, 180000], in ms. Default: 2000.
- You can run the echo $ASCEND_LOG_DEVICE_FLUSH_TIMEOUT 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 environment variable is set to 0, no application logs on the device are sent to the host.
- If some application logs on the device are still not sent back to the host after the service process exits, you can set a longer delay. You can determine the delay according to the content on the device-app-pid log.
Example
export ASCEND_LOG_DEVICE_FLUSH_TIMEOUT=5000
Restrictions
This environment variable is applicable only to the Ascend EP standard form.
Applicability
Parent topic: Logs