FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
leej
Staff
Staff
Article Id 197524
Description
This article describes the way to find out which process runs on which CPU core.

Solution
1) Access to the FortiGate via SSH.

2) Execute a CLI command to see process list on the CLI.
# diagnose sys top

(global) # diagnose sys top
Run Time:  0 days, 7 hours and 50 minutes
0U, 0N, 0S, 100I, 0WA, 0HI, 0SI, 0ST; 2012T, 681F
       ipshelper      314      S <     0.0     3.9
         cmdbsvr      124      S       0.0     3.3
       ipsengine      315      S <     0.0     3.0
          httpsd      379      S       0.0     3.0
         miglogd      144      S       0.0     2.4
         pyfcgid      284      S       0.0     2.3
          httpsd      209      S       0.0     2.2
          httpsd      380      S       0.0     2.0
         reportd      163      S       0.0     2.0
httpsd      317      S       0.0     1.8
         pyfcgid      286      S       0.0     1.8
       forticron      155      S       0.0     1.7
          httpsd      656      S       0.0     1.6
cw_acd      180      S       0.0     1.4
          httpsd     1338      S       0.0     1.4
         miglogd      196      S       0.0     1.4
3) Two examples to find out which process runs on which CPU core, based on above process lists.

ipsengine.
# diagnose sys process dump 315 | grep Cpu
Cpus_allowed: 1                                                 <---- 0001 (converted by binary).
Cpus_allowed_list: 0                                             <----  CPU no. 0 (1st from the far right is “1”).
miglogd.
# diagnose sys process dump 196 | grep Cpu
Cpus_allowed: 2                                       <----- 0010 (converted by binary).
Cpus_allowed_list: 1                                  <-----  CPU no. 1 (2nd from the far right is “1”).

Contributors