The content you are looking for has been archived. View related content below.
Description |
This article describes how to troubleshoot CPU-related issues on where each daemon is running on which CPU core. |
Scope |
FortiOS 7.0 and later. |
Solution |
Use the following command to check which CPU core is used by each daemon. The last column shows the CPU core index
diagnose sys top
Run Time: 31 days, 18 hours and 12 minutes 0U, 0N, 0S, 100I, 0WA, 0HI, 0SI, 0ST; 2007T, 663F cmdbsvr 145 S 4.0 2.7 0 node 28235 S 3.3 2.5 1 updated 194 R 2.1 1.7 4 reportd 190 S 6.0 1.5 3 cw_acd 211 S 6.3 1.4 2 forticron 180 S 2.7 1.3 3 miglogd 189 R 1.1 1.3 1 autod 215 S 5.8 1.2 4
From the above output, it is possible to conclude that the daemon updated process ID is 194 and it is running on CPU core 4.
The following command can also be used to check which CPU core is used by each daemon.
diagnose sys process dump 189 | grep Cpu <----- 189 is the Process ID(PID) of a daemon/process
get sys performance status
For example: CPU core 3 has the highest load in the system, softirq. Now, proceed with CPU core profiling, which will give insight into what may be the problem (e.g. offloading).
diagnose sys profile cpumask <cpu core number> diagnose sys profile start <- Run the command and leave it for 10-15 seconds. diagnose sys profile stop <- After 10-15 seconds run it to stop the profiler. diagnose sys profile show <- Will print the result on the console. diagnose sys profile show order <- Shows in order.
Note: If the process is in the S state (sleeping state), '# diagnose sys top' will display the last used CPU because the process is sleeping.
Identify the CPU core being used on older versions before FortiOS 7.0:
diagnose sys top
diagnose sys process dump 7091 | grep Cpus_allowed Convert the HEX value to binary to find out the core using the following table:
Use a HEX to Binary converter. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.