fw ctl bench

Description

The benchmark mechanism provides a way to measure the time spent in the code between two points.

This command runs the CPU benchmark tests that collect these statistics:

  • FireWall Lock Statistics

  • Outbound Packets Statistics

  • Inbound Packets Statistics.

Note - This command writes the output of these tests to the dmesg.

Syntax

fw [-d] ctl bench

      -h

      lock

            [{ioctl | packet} [<Limit>]]

            [stop]

      packet [{<Limit> | stop}]

Parameters

Parameter

Description

-d

Runs the command in debug mode.

Use only if you troubleshoot the command itself.

Best Practice - If you use this parameter, then redirect the output to a file, or use the script command to save the entire CLI session.

-h

Shows the built-in help.

lock

      [ioctl[ <Limit>]]

      [packet [<Limit>]]

      [stop]

Runs the lock benchmark that collects the FireWall Lock Statistics.

Available options:

  • No parameters - Starts the lock benchmark.

  • ioctl - Calculates the IOCTL flow statistics.

  • packet - Calculates the packet flow statistics.

  • <Limit> - Specifies the time limit (in seconds) for the benchmark to run. Default is 10 seconds. Maximum is 200 seconds.

  • stop - Stops the current lock benchmark.

packet [{<Limit> | stop}]

Runs the packet benchmark test that collects these statistics:

  • Outbound Packets Statistics

  • Inbound Packets Statistics

Available options:

  • No parameters - Starts the packet benchmark.

  • <Limit> - Specifies the time limit (in seconds) for the benchmark to run. Default is 10 seconds. Maximum is 200 seconds.

  • stop - Stops the current packet benchmark.

Examples