[Oisf-users] Setting up CPU affinity.

Charles DeVoe scarecrow_57 at yahoo.com
Fri Dec 9 20:44:01 UTC 2016


I am attempting to understand CPU Affinity.  My system is a single processor system with 8 cores.  I'm running pfring with 16 threads.  Following are the affinity settings.  the RxPF....threads are tied to cpus 3,4,5.  Management threads are tied to 7.  Suricata-Main moves around.  So under the mode setting, I thought "exclusive" would mean only the detect-cpu-set would use those threads.  As it turns out, other process use those threads as well.  

So the questions.  
1.  How do the various groups map to the threads?2.  What are the mode settings and what do they do?
3. And what doe the priority section do?

 cpu-affinity:    - management-cpu-set:        cpu: [ 7 ]  # include only these cpus in affinity settings    - receive-cpu-set:        cpu: [ 6 ]  # include only these cpus in affinity settings    - decode-cpu-set:        cpu: [ 0, 1 ]        mode: "balanced"    - stream-cpu-set:        cpu: [ 2 ]    - detect-cpu-set:        cpu: [ 3,4,5 ]        mode: "exclusive" # run detect threads in these cpus        # Use explicitely 3 threads and don't compute number by using        # detect-thread-ratio variable:        # threads: 3        prio:          low: [ 0 ]          medium: [ "1-2" ]          high: [ 3 ]          default: "medium"    - verdict-cpu-set:        cpu: [ 0 ]        prio:          default: "high"    - reject-cpu-set:        cpu: [ 0 ]        prio:          default: "low"    - output-cpu-set:        cpu: [ "all" ]        prio:           default: "medium"

PID    Name                 State Minor     User      Kernel    PRIO THR   VM             RSS       Processor                                  Faults    Time      Time                 Size
17124  (Suricata-Main)      S     235496    3002      105 20   21    3076055040     395338    317126  (RxPFRbond01)        S     2076      34        3         18   21    3076055040     395338    317127  (RxPFRbond02)        S     2008      24        3         20   21    3076055040     395338    417128  (RxPFRbond03)        S     2122      46        3         20   21    3076055040     395338    517129  (RxPFRbond04)        S     2036      27        2         18   21    3076055040     395338    317130  (RxPFRbond05)        S     2022      60        2         20   21    3076055040     395338    417131  (RxPFRbond06)        S     2062      73        3         20   21    3076055040     395338    517132  (RxPFRbond07)        S     2008      71        2         18   21    3076055040     395338    317133  (RxPFRbond08)        S     2012      45        3         20   21    3076055040     395338    417134  (RxPFRbond09)        S     2062      32        2         20   21    3076055040     395338    517135  (RxPFRbond010)       S     1991      25        2         18   21    3076055040     395338    317136  (RxPFRbond011)       S     2035      78        2         20   21    3076055040     395338    417137  (RxPFRbond012)       S     2002      27        2         20   21    3076055040     395338    517138  (RxPFRbond013)       S     2006      38        2         18   21    3076055040     395338    317139  (RxPFRbond014)       S     2000      40        2         20   21    3076055040     395338    417140  (RxPFRbond015)       S     2032      74        2         20   21    3076055040     395338    517141  (RxPFRbond016)       S     1986      23        2         18   21    3076055040     395338    317142  (FlowManagerThre)    S     2461      107       0         20   21    3076055040     395338    717143  (FlowRecyclerThr)    S     26        1         6         20   21    3076055040     395338    717144  (StatsWakeupThre)    S     3         0         0         20   21    3076055040     395338    717145  (StatsMgmtThread)    S     24        0         0         20   21    3076055040     395338    7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-users/attachments/20161209/ea81d957/attachment-0001.html>


More information about the Oisf-users mailing list