Print Download PDF Send Feedback

Previous

Next

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:

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

Syntax

fw [-d] ctl bench

-h

lock

[packet | ioctl] [<Limit>]

[stop]

packet [<Limit> | stop]

Parameters

Parameter

Description

-d

Runs the command in debug mode.

Use only if you troubleshoot the command itself.

-h

Shows the built-in help.

lock

[packet | ioctl] [<Limit>]

[stop]

Runs the lock benchmark that collects the FireWall Lock Statistics.

Available options:

  • No parameters - Starts the lock benchmark.
  • packet - Calculates the packet flow statistics.
  • ioctl - Calculates the IOCTL flow statistics.
  • <Limit> - Specifies the time limit (in seconds) for the benchmark. 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. Default is 10 seconds. Maximum is 200 seconds.
  • stop - Stops the current packet benchmark.

Example for lock benchmark

[Expert@MyGW:0]# dmesg -c

... ... ...

[Expert@MyGW:0]#

[Expert@MyGW:0]# fw ctl bench lock 5

starting to collect statistics for 5 seconds

[Expert@MyGW:0]#

[Expert@MyGW:0]# dmesg

[fw4_1];

 

[fw4_1];BENCHMARKER

[fw4_1];===================================

[fw4_1];Type: FW LOCK STATISTICS

 

[fw4_1];General info

[fw4_1];-------------

[fw4_1];TU = Time Units

[fw4_1];Calibration: number of TU in one second 2401506325

[fw4_1];Testing period in TU: 11998021084

 

[fw4_1];Number of samples taken: 18476

 

[fw4_1];Interval Name % of total cpu Total TU Average TU Max TU sampled

[fw4_1];----------------------------------- --------------- --------- ----------- ---------------

 

[fw4_1];lock 0 91646831 4960 4724016

[fw4_2];

 

[fw4_2];BENCHMARKER

[fw4_2];===================================

[fw4_2];Type: FW LOCK STATISTICS

 

[fw4_2];General info

[fw4_2];-------------

[fw4_2];TU = Time Units

[fw4_2];Calibration: number of TU in one second 2398783828

[fw4_2];Testing period in TU: 11999333782

 

[fw4_2];Number of samples taken: 8624

 

[fw4_0];

 

[fw4_2];Interval Name % of total cpu Total TU Average TU Max TU sampled

[fw4_0];BENCHMARKER

[fw4_0];===================================

[fw4_0];Type: FW LOCK STATISTICS

 

[fw4_0];General info

[fw4_0];-------------

[fw4_0];TU = Time Units

[fw4_2];----------------------------------- --------------- --------- ----------- ---------------

 

[fw4_2];lock 0 46269343 5365 2978418

[fw4_0];Calibration: number of TU in one second 2399455273

[fw4_0];Testing period in TU: 11999522911

 

[fw4_0];Number of samples taken: 8911

 

[fw4_0];Interval Name % of total cpu Total TU Average TU Max TU sampled

[fw4_0];----------------------------------- --------------- --------- ----------- ---------------

 

[fw4_0];lock 0 40686039 4565 2973453

[Expert@MyGW:0]#

Example for packet benchmark

[Expert@MyGW:0]# dmesg -c

... ... ...

[Expert@MyGW:0]#

[Expert@MyGW:0]# fw ctl bench packet

starting to collect statistics for 10 seconds

[Expert@MyGW:0]#

[fw4_1];

 

[fw4_1];BENCHMARKER

[fw4_1];===================================

[fw4_1];Type: OUTBOUND PACKETS STATISCITCS

 

[fw4_1];General info

[fw4_1];-------------

[fw4_1];TU = Time Units

[fw4_1];Calibration: number of TU in one second 2401506325

[fw4_1];Testing period in TU: 23998127929

 

[fw4_1];Number of samples taken: 3

 

[fw4_1];Interval Name % of total cpu Total TU Average TU Max TU sampled

[fw4_1];----------------------------------- --------------- --------- ----------- ---------------

 

[fw4_1];fw_filter - first chain module (out) 0 27534 9178 13695

[fw4_1];

 

[fw4_1];IP Options Strip (out) 0 1119 373 543

[fw4_1];

 

[fw4_1];TCP streaming (out) 0 16650 5550 8886

[fw4_1];

 

[fw4_1];passive streaming (out) 0 4137 1379 2082

[fw4_1];

 

[fw4_1];Stateless verifications (out) 0 2547 849 1482

[fw4_1];

 

[fw4_1];fw VM outbound 0 21603 7201 10692

[fw4_1];

 

[fw4_1];fw post VM outbound 0 14574 4858 7545

[fw4_1];

 

[fw4_1];QoS outbound offload chain modul 0 9051 3017 4689

[fw4_1];

 

[fw4_1];QoS slowpath outbound chain mod 0 95691 31897 38586

[fw4_1];

 

[fw4_1];fw accounting outbound 0 1080 360 456

[fw4_1];

 

[fw4_1];TCP streaming post VM 0 3864 1288 2070

[fw4_1];

 

[fw4_1];IP Options Restore (out) 0 1263 421 627

[fw4_1];

 

[fw4_1];BENCHMARKER

[fw4_1];===================================

[fw4_1];Type: INBOUND PACKETS STATISCITCS

 

[fw4_1];General info

[fw4_1];-------------

[fw4_1];TU = Time Units

[fw4_1];Calibration: number of TU in one second 2401506325

[fw4_1];Testing period in TU: 23998363528

 

[fw4_1];Number of samples taken: 2

 

[fw4_1];Interval Name % of total cpu Total TU Average TU Max TU sampled

[fw4_1];----------------------------------- --------------- --------- ----------- ---------------

 

[fw4_1];fw_filter - first chain module (in) 0 33612 16806 27489

[fw4_1];

 

[fw4_1];IP Options Strip (in) 0 981 490 732

[fw4_1];

 

[fw4_1];Stateless verifications (in) 0 1995 997 1416

[fw4_1];

 

[fw4_1];fw multik misc proto forwarding 0 17040 8520 9366

[fw4_1];

 

[fw4_1];fw VM inbound 0 25701 12850 16110

[fw4_1];

 

[fw4_1];fw SCV inbound 0 570 285 300

[fw4_1];

 

[fw4_1];QoS inbound offload chain module 0 2499 1249 1851

[fw4_1];

 

[fw4_1];fw offload inbound 0 1458 729 738

[fw4_1];

 

[fw4_1];fw post VM inbound 0 10275 5137 7584

[fw4_1];

 

[fw4_1];fw accounting inbound 0 483 241 300

[fw4_1];

 

[fw4_1];QoS slowpath inbound chain mod 0 64650 32325 39846

[fw4_1];

 

[fw4_1];passive streaming (in) 0 4272 2136 3072

[fw4_1];

 

[fw4_1];TCP streaming (in) 0 5577 2788 3363

[fw4_1];

 

[fw4_1];IP Options Restore (in) 0 441 220 312

[fw4_1];

 

[fw4_1];Cluster Late Correction 0 2010 1005 1038

[fw4_2];

 

[fw4_2];BENCHMARKER

[fw4_2];===================================

[fw4_2];Type: INBOUND PACKETS STATISCITCS

 

[fw4_2];General info

[fw4_2];-------------

[fw4_2];TU = Time Units

[fw4_2];Calibration: number of TU in one second 2398783828

[fw4_2];Testing period in TU: 23995572652

 

[fw4_2];Number of samples taken: 100

 

[fw4_2];Interval Name % of total cpu Total TU Average TU Max TU sampled

[fw4_2];----------------------------------- --------------- --------- ----------- ---------------

 

[fw4_2];fw_filter - first chain module (in) 0 1948305 19483 65454

[fw4_2];

 

[fw4_2];IP Options Strip (in) 0 125625 1256 64737

[fw4_2];

 

[fw4_2];Stateless verifications (in) 0 60024 600 1116

[fw4_2];

 

[fw4_2];fw multik misc proto forwarding 0 698478 6984 10260

[fw4_2];

 

[fw4_2];fw VM inbound 0 1885545 18855 42528

[fw4_2];

 

[fw4_2];fw SCV inbound 0 32229 322 984

[fw4_2];

 

[fw4_2];QoS inbound offload chain module 0 170295 1702 2682

[fw4_2];

 

[fw4_2];fw offload inbound 0 93720 937 2958

[fw4_2];

 

[fw4_2];fw post VM inbound 0 366336 3663 18180

[fw4_2];

 

[fw4_2];fw accounting inbound 0 51537 515 1182

[fw4_2];

 

[fw4_2];QoS slowpath inbound chain mod 0 4392585 43925 82623

[fw4_2];

 

[fw4_2];passive streaming (in) 0 289659 2896 5013

[fw4_2];

 

[fw4_2];TCP streaming (in) 0 66417 664 2766

[fw4_2];

 

[fw4_2];IP Options Restore (in) 0 31596 315 1215

[fw4_2];

 

[fw4_2];Cluster Late Correction 0 172422 1724 10737

[fw4_0];

 

[fw4_0];BENCHMARKER

[fw4_0];===================================

[fw4_0];Type: OUTBOUND PACKETS STATISCITCS

 

[fw4_0];General info

[fw4_0];-------------

[fw4_0];TU = Time Units

[fw4_0];Calibration: number of TU in one second 2399455273

[fw4_0];Testing period in TU: 23995636055

 

[fw4_0];Number of samples taken: 7

 

[fw4_0];Interval Name % of total cpu Total TU Average TU Max TU sampled

[fw4_0];----------------------------------- --------------- --------- ----------- ---------------

 

[fw4_0];fw_filter - first chain module (out) 0 52110 7444 30537

[fw4_0];

 

[fw4_0];IP Options Strip (out) 0 2496 356 1152

[fw4_0];

 

[fw4_0];TCP streaming (out) 0 21528 3075 9399

[fw4_0];

 

[fw4_0];passive streaming (out) 0 6240 891 2829

[fw4_0];

 

[fw4_0];Stateless verifications (out) 0 3558 508 1272

[fw4_0];

 

[fw4_0];fw VM outbound 0 29139 4162 13431

[fw4_0];

 

[fw4_0];fw post VM outbound 0 19554 2793 8079

[fw4_0];

 

[fw4_0];QoS outbound offload chain modul 0 12984 1854 5478

[fw4_0];

 

[fw4_0];QoS slowpath outbound chain mod 0 138486 19783 43347

[fw4_0];

 

[fw4_0];fw accounting outbound 0 1812 453 576

[fw4_0];

 

[fw4_0];TCP streaming post VM 0 6210 1552 2235

[fw4_0];

 

[fw4_0];IP Options Restore (out) 0 1839 459 762

[fw4_0];

 

[fw4_0];BENCHMARKER

[fw4_0];===================================

[fw4_0];Type: INBOUND PACKETS STATISCITCS

 

[fw4_0];General info

[fw4_0];-------------

[fw4_0];TU = Time Units

[fw4_0];Calibration: number of TU in one second 2399455273

[fw4_0];Testing period in TU: 23997573677

 

[fw4_0];Number of samples taken: 7

 

[fw4_0];Interval Name % of total cpu Total TU Average TU Max TU sampled

[fw4_0];----------------------------------- --------------- --------- ----------- ---------------

 

[fw4_0];fw_filter - first chain module (in) 0 23706 3386 5688

[fw4_0];

 

[fw4_0];IP Options Strip (in) 0 1494 213 612

[fw4_0];

 

[fw4_0];Stateless verifications (in) 0 2166 309 519

[fw4_0];

 

[fw4_0];fw multik misc proto forwarding 0 2703 386 858

[fw4_0];

 

[fw4_0];fw VM inbound 0 37902 5414 10083

[fw4_0];

 

[fw4_0];fw SCV inbound 0 999 142 279

[fw4_0];

 

[fw4_0];QoS inbound offload chain module 0 2328 332 621

[fw4_0];

 

[fw4_0];fw offload inbound 0 2400 342 777

[fw4_0];

 

[fw4_0];fw post VM inbound 0 11742 1677 2820

[fw4_0];

 

[fw4_0];fw accounting inbound 0 597 85 153

[fw4_0];

 

[fw4_0];QoS slowpath inbound chain mod 0 118860 16980 27087

[fw4_0];

 

[fw4_0];passive streaming (in) 0 4194 838 1371

[fw4_0];

 

[fw4_0];TCP streaming (in) 0 8826 1765 3231

[fw4_0];

 

[fw4_0];IP Options Restore (in) 0 405 81 99

[fw4_0];

 

[fw4_0];Cluster Late Correction 0 3825 765 1374

[fw4_2];

 

[fw4_2];BENCHMARKER

[fw4_2];===================================

[fw4_2];Type: OUTBOUND PACKETS STATISCITCS

 

[fw4_2];General info

[fw4_2];-------------

[fw4_2];TU = Time Units

[fw4_2];Calibration: number of TU in one second 2398783828

[fw4_2];Testing period in TU: 24000292567

 

[fw4_2];Number of samples taken: 1

 

[fw4_2];Interval Name % of total cpu Total TU Average TU Max TU sampled

[fw4_2];----------------------------------- --------------- --------- ----------- ---------------

 

[fw4_2];fw_filter - first chain module (out) 0 5418 5418 5418

[fw4_2];

 

[fw4_2];IP Options Strip (out) 0 375 375 375

[fw4_2];

 

[fw4_2];TCP streaming (out) 0 30435 30435 30435

[fw4_2];

 

[fw4_2];passive streaming (out) 0 1296 1296 1296

[fw4_2];

 

[fw4_2];Stateless verifications (out) 0 2508 2508 2508

[fw4_2];

 

[fw4_2];fw VM outbound 0 393270 393270 393270

[fw4_2];

 

[fw4_2];fw post VM outbound 0 9345 9345 9345

[fw4_2];

 

[fw4_2];QoS outbound offload chain modul 0 47829 47829 47829

[fw4_2];

 

[fw4_2];QoS slowpath outbound chain mod 0 10530 10530 10530

[fw4_2];

 

[fw4_2];fw accounting outbound 0 441 441 441

[fw4_2];

 

[fw4_2];TCP streaming post VM 0 1533 1533 1533

[fw4_2];

 

[fw4_2];IP Options Restore (out) 0 402 402 402

[Expert@MyGW:0]#