Running the 'fw ctl affinity -s' command in VSX Mode
Description
The fw ctl affinity -s
command configures the CoreXL Performance-enhancing technology for Security Gateways on multi-core processing platforms. Multiple Check Point Firewall instances are running in parallel on multiple CPU cores. affinity The assignment of a specified CoreXL Firewall instance, VSX Virtual System, interface, user space process, or IRQ to one or more specified CPU cores. settings on a VSX Gateway Physical server that hosts VSX virtual networks, including all Virtual Devices that provide the functionality of physical network devices. It holds at least one Virtual System, which is called VS0. for:
-
Interfaces
-
User-space processes
-
CoreXL Firewall instances
Syntax
-
To see the built-in help:
fw ctl affinity
-
To configure the affinities of Virtual Systems:
fw ctl affinity -s -d [-vsid <VSID ranges> ] -cpu <CPU ID ranges>
-
To configure the affinities of a specified user-space process:
fw ctl affinity -s -d -pname <Process Name> [-vsid <VSID ranges>]
-cpu all
-cpu <CPU ID ranges>
-
To configure the affinities of specified FWK daemon instances (user-space Firewall):
fw ctl affinity -s -d -inst <Instances Ranges> -cpu <CPU ID ranges>
-
To configure the affinities of all FWK instances (user-space Firewalls):
fw ctl affinity -s -d -fwkall <Number of CPUs>
-
To reset the affinities to defaults:
fw ctl affinity
-vsx_factory_defaults
-vsx_factory_defaults_no_prompt
Important
-
The VSX Virtual System Extension. Check Point virtual networking solution, hosted on a computer or cluster with virtual abstractions of Check Point Security Gateways and other network devices. These Virtual Devices provide the same functionality as their physical counterparts. Gateway saves these changes in the $FWDIR/conf/fwaffinity.conf configuration file.
-
When you configure affinity of an interface, it automatically configures the affinities of all other interfaces that share the same IRQ to the same CPU core.
Parameters
Parameter |
Description |
||
---|---|---|---|
|
Configures the affinity for:
|
||
|
Configures the affinity to:
|
||
|
Configures the affinity for the Check Point daemon specified by its name (for example: fwd, vpnd).
|
||
|
Configures the affinity for:
|
||
|
Configures the affinity for all running FWK daemon instances to the specified number of CPU cores. If it is necessary to affine all running FWK daemon instances to all CPU cores, enter the number of all available CPU cores. |
||
|
Deletes all existing affinity settings and creates the default affinity settings during the next reboot.
|
||
|
Deletes all current affinity settings and creates the default affinity settings during the next reboot.
|
Example 1 - Affine the Virtual Devices #0,1,2,4,7,8 to the CPU cores #0,1,2,4
Example 2 - Affine the process CPD by its name for Virtual Devices #0-12 to the CPU core #7
Example 3 - Affine the FWK daemon instances #0,2,4 to the CPU core #5
Example 4 - Affine all FWK daemon instances to the last two CPU cores
Example 5 - Affine all FWK daemon instances to all CPU cores