Viewing Logs (Ascend RC Form)
This section describes log file storage paths and main information recorded in log files in the Ascend RC form.
- App logs can be aged. For each type of logs (debug, run, and security), a maximum of 48 device-app-pid directories are allowed by default. The system scans the directories every 15 seconds. If this limit is reached, the earliest directories are automatically deleted.
For details about the number of device-app-pid directories, the number of log files stored in each device-app-pid directory, and the size of each log file, see Viewing the Log Configuration File.
- Keep the number of concurrent app processes within 48 to avoid log data loss.
Log Directory |
Description |
|---|---|
/var/log/npu/slog/debug/device-os/device-os_*.log |
Debug logs generated by system processes on Ctrl CPUs, including user-mode logs and kernel-mode logs. |
/var/log/npu/slog/debug/device-app-pid/device-app-pid_*.log |
Debug logs generated by app processes on Ctrl CPUs. |
/var/log/npu/slog/run/event/event_*.log |
Event logs generated by system processes on Ctrl CPUs. |
/var/log/npu/slog/run/device-os/device-os_*.log |
Run logs generated by system processes on Ctrl CPUs. |
/var/log/npu/slog/run/device-app-pid/device-app-pid_*.log |
Run logs generated by app processes on Ctrl CPUs. |
/var/log/npu/slog/security/device-os/device-os_*.log |
Security logs generated by system processes on Ctrl CPUs. |
/var/log/npu/slog/security/device-app-pid/device-app-pid_*.log |
Security logs generated by app processes on Ctrl CPUs. |
/var/log/npu/slog/debug/device-id/device-id_*.log |
System logs of non-Ctrl CPUs, covering the following modules:
|
/var/log/npu/slog/slogd/slogdlog |
Maintenance and debugging logs, recording the runtime status of the log tool for troubleshooting. There is an aging policy for logs. When the size of the slogdlog file reaches the specified threshold (1 MB), the file is renamed slogdlog.old for backup. The earliest backup file is deleted after each backup. |
Note: Replace id and pid with the actual device ID and process ID, respectively. The asterisk (*) in each file name indicates the timestamp when the log file is created. |
|