VSXモードでの「fw ctl affinity -s」コマンドの実行

説明

fw ctl affinity -s コマンドは、VSX閉じた 仮想システム拡張。Check Point Security Gatewayおよびその他のネットワークデバイスの仮想抽象化を備えたコンピュータまたはクラスタでホストされるCheckPoint仮想ネットワークソリューション。これらの仮想デバイスは、物理的な対応デバイスと同じ機能を提供します。 GatewayのCoreXL閉じた マルチコア処理プラットフォーム上のセキュリティゲートウェイのパフォーマンス向上テクノロジー。複数のCheck Point Firewallインスタンスが、複数のCPUコアで並行して実行されています。アフィニティ閉じた 指定されたCoreXL Firewall インスタンス、VSX Virtual System、インタフェース、ユーザスペースプロセス、またはIRQ を1 つ以上の指定されたCPU コアに割り当てます。設定を次のように構成します。

構文

  • 内蔵のヘルプを見るには

    fw ctl affinity

  • Virtual Systemsのアフィニティを設定する。

    fw ctl affinity -s -d [-vsid <VSID ranges> ] -cpu <CPU ID ranges>

  • 指定されたユーザスペースプロセスのアフィニティを設定する。

    fw ctl affinity -s -d -pname <Process Name> [-vsid <VSID ranges>]

          -cpu all

          -cpu <CPU ID ranges>

  • 指定したFWKデーモンインスタンス(ユーザスペースファイアウォール)のアフィニティを設定する。

    fw ctl affinity -s -d -inst <Instances Ranges> -cpu <CPU ID ranges>

  • すべてのFWKインスタンス(ユーザスペースファイアウォール)のアフィニティを設定すること。

    fw ctl affinity -s -d -fwkall <Number of CPUs>

  • アフィニティをデフォルトに戻すには。

    fw ctl affinity

          -vsx_factory_defaults

          -vsx_factory_defaults_no_prompt

重要:

パラメータ

パラメータ

説明

-vsid <VSID ranges>

アフィニティーを設定します。

  • 指定された1つの仮想システム。

    例: -vsid 7

  • 複数の指定された仮想システム。

    例: -vsid 0-2 4

--vsid パラメータを省略した場合、コマンドは現在の仮想コンテキストを使用します。

<CPU ID ranges>

へのアフィニティを設定します。

  • 指定された1つのCPUコア。

    例: -cpu 7

  • 指定された複数のCPUコア。

    例: -cpu 0-2 4

重要- CPUコアの数は0から始まります。

-pname <Process Name>

名前によって指定された Check Point デーモンに対するアフィニティを設定します(例)。fwd, vpnd).

重要- プロセス名は大文字と小文字が区別されます。

-inst <Instances Ranges>

アフィニティーを設定します。

  • 指定された1つのFWKデーモンインスタンス。

    例: -inst 7

  • 指定された複数のFWKデーモンインスタンス。

    例: -inst 0 2 4

-fwkall <Number of CPUs>

実行中のすべてのFWKデーモンインスタンスのアフィニティを、指定されたCPUコア数に設定します。

実行中のすべてのFWKデーモンインスタンスをすべてのCPUコアにアフィンする必要がある場合は、利用可能なすべてのCPUコアの数を入力します。

-vsx_factory_defaults

既存のアフィニティ設定をすべて削除し、次回の再起動時にデフォルトのアフィニティ設定を作成します。

重要- この操作の前に、コマンドは続行するかどうかをユーザに尋ねます。操作を完了するには、再起動が必要です。

-vsx_factory_defaults_no_prompt

現在のアフィニティ設定をすべて削除し、次回の再起動時にデフォルトのアフィニティ設定を作成します。

重要- この操作の前に、コマンドは続行するかどうかをユーザに尋ねません。操作を完了するには、再起動が必要です。

例1 - 仮想デバイス#0,1,2,4,7,8とCPUコア#0,1,2,4のアフィン化

[Expert@MyGW:0]# fw ctl affinity -s -d -vsid 0-2 4 6-8 -cpu 0-2 4
VDevice 0-2 4 6-8 : CPU 0 1 2 4 - set successfully
Multi-queue affinity was not changed.  For More info, see sk113834.
[Expert@MyGW:0]#

例2 - 仮想デバイス#0-12のプロセスCPDをCPUコア#7にその名前でアフィンする

[Expert@MyGW:0]# fw ctl affinity -s -d -pname cpd -vsid 0-12 -cpu 7
VDevice 0-12 : CPU 7 - set successfully
Multi-queue affinity was not changed.  For More info, see sk113834.
Warning: some of the VSIDs did not exist
[Expert@MyGW:0]#

例3 - FWKデーモンインスタンス#0,2,4をCPUコア#5にアフィンする。

[Expert@MyGW:0]# fw ctl affinity -s -d -inst 0 2 4 -cpu 5
VDevice 0 2 4: CPU 5 - set successfully
Multi-queue affinity was not changed.  For More info, see sk113834.
[Expert@MyGW:0]#

例4 - すべてのFWKデーモン・インスタンスを最後の2つのCPUコアにアフィンする

[Expert@MyGW:0]# fw ctl affinity -s -d -fwkall 2
VDevice 0-2 : CPU 2 3 - set successfully
Multi-queue affinity was not changed.  For More info, see sk113834.
[Expert@MyGW:0]#

例 5 - すべての FWK デーモンインスタンスをすべての CPU コアにアフィンする。

[Expert@MyGW:0]# fw ctl affinity -s -d -fwkall 4
There are configured processes/FWK instances
(y) will override all currently configured affinity and erase the configuration files
(n) will set affinity only for unconfigured processes/threads
Do you want to override existing configurations (y/n) ? y
VDevice 0-2 : CPU all - set successfully
Multi-queue affinity was not changed.  For More info, see sk113834.
[Expert@MyGW:0]#