Hello,
we have some bash scripts that fetch external security feeds and populate dynamic objects, which are then used in rulebase to block a lot of malicious IPs.
Since these scripts execute several heavy actions, we'd like to assign a specific CPU only for such bash scripts so that CP processes running on other CPUs are not interested.
We have 3 x 23900 appliances with 36 cores. The architecture is configured in VSX with 4 VS: Active/Standby/Backup. The first 4 cores are assigned to interfaces, the other 32 are for all VS processes.
At present the configuration is the following:
- VS1 has 10 instances assigned
- VS2 has 8 instances assigned
- VS4 has 10 instances assigned
- VS5 has 1 instances assigned
[Expert@lntfw-pgtw1:0]# fw ctl affinity -l
Mgmt: CPU 0
Sync: CPU 1
eth1-01: CPU 2
eth1-02: CPU 3
eth1-03: CPU 3
eth1-04: CPU 2
eth2-01: CPU 1
eth2-02: CPU 0
eth2-03: CPU 0
eth2-04: CPU 1
eth2-05: CPU 2
eth2-06: CPU 3
eth2-07: CPU 3
eth2-08: CPU 2
VS_0 fwk: CPU 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
VS_1 fwk: CPU 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
VS_2 fwk: CPU 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
VS_3 fwk: CPU 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
VS_4 fwk: CPU 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
VS_5 fwk: CPU 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
Interface eth3-01: has multi queue enabled
Interface eth3-02: has multi queue enabled
I know CPU reservation to specific process is possible in Linux (e.g. isolcpus). How can we do that in GAIA OS?
Thanks.