[Expert@fw01:0]# ./7-commands
./7-commands: line 1: T: command not found
+-----------------------------------------------------------------------------+
| Super Seven Performance Assessment Commands v0.5 (Thanks to Timothy Hall) |
+-----------------------------------------------------------------------------+
| Inspecting your environment: OK |
| This is a firewall....(continuing) |
| |
| Referred pagenumbers are to be found in the following book: |
| Max Power: Check Point Firewall Performance Optimization - Second Edition |
| |
| Available at http://www.maxpowerfirewalls.com/ |
| |
+-----------------------------------------------------------------------------+
| Command #1: fwaccel stat |
| |
| Check for : Accelerator Status must be enabled (R77.xx/R80.10 versions) |
| Status must be enabled (R80.20 and higher) |
| Accept Templates must be enabled |
| Message "disabled" from (low rule number) = bad |
| |
| Chapter 9: SecureXL throughput acceleration |
| Page 278 |
+-----------------------------------------------------------------------------+
| Output: |
+---------------------------------------------------------------------------------+
|Id|Name |Status |Interfaces |Features |
+---------------------------------------------------------------------------------+
|0 |KPPAK |enabled |Sync,Mgmt,eth1-01, |Acceleration,Cryptography |
| | | |eth1-03,eth1-04 | |
| | | | |Crypto: Tunnel,UDPEncap,MD5, |
| | | | |SHA1,3DES,DES,AES-128,AES-256,|
| | | | |ESP,LinkSelection,DynamicVPN, |
| | | | |NatTraversal,AES-XCBC,SHA256, |
| | | | |SHA384,SHA512 |
+---------------------------------------------------------------------------------+
Accept Templates : enabled
Drop Templates : enabled
NAT Templates : enabled
LightSpeed Accel : disabled
+-----------------------------------------------------------------------------+
| Command #2: fwaccel stats -s |
| |
| Check for : Accelerated conns/Totals conns: >25% good, >50% great |
| Accelerated pkts/Total pkts : >50% great |
| PXL pkts/Total pkts : >50% OK |
| F2Fed pkts/Total pkts : <30% good, <10% great |
| |
| Chapter 9: SecureXL throughput acceleration |
| Page 287, Packet/Throughput Acceleration: The Three Kernel Paths |
+-----------------------------------------------------------------------------+
| Output: |
Accelerated conns/Total conns : 322/55702 (0%)
LightSpeed conns/Total conns : 0/55702 (0%)
Accelerated pkts/Total pkts : 81827077067/92068000877 (88%)
LightSpeed pkts/Total pkts : 0/92068000877 (0%)
F2Fed pkts/Total pkts : 10240923810/92068000877 (11%)
F2V pkts/Total pkts : 441769332/92068000877 (0%)
CPASXL pkts/Total pkts : 3381281037/92068000877 (3%)
PSLXL pkts/Total pkts : 75181471945/92068000877 (81%)
CPAS pipeline pkts/Total pkts : 0/92068000877 (0%)
PSL pipeline pkts/Total pkts : 0/92068000877 (0%)
QOS inbound pkts/Total pkts : 0/92068000877 (0%)
QOS outbound pkts/Total pkts : 0/92068000877 (0%)
Corrected pkts/Total pkts : 0/92068000877 (0%)
+-----------------------------------------------------------------------------+
| Command #3: grep -c ^processor /proc/cpuinfo && /sbin/cpuinfo |
| |
| Check for : If number of cores is roughly double what you are excpecting, |
| hyperthreading may be enabled |
| |
| Chapter 7: CoreXL Tuning |
| Page 239 |
+-----------------------------------------------------------------------------+
| Output: |
8
HyperThreading=enabled
+-----------------------------------------------------------------------------+
| Command #4: fw ctl affinity -l -r |
| |
| Check for : SND/IRQ/Dispatcher Cores, # of CPU's allocated to interface(s) |
| Firewall Workers/INSPECT Cores, # of CPU's allocated to fw_x |
| R77.30: Support processes executed on ALL CPU's |
| R80.xx: Support processes only executed on Firewall Worker Cores|
| |
| Chapter 7: CoreXL Tuning |
| Page 221 |
+-----------------------------------------------------------------------------+
| Output: |
no stats available
no stats available
CPU 0:
CPU 1: fw_5 (active)
lpd core_uploader cprid usrchkd rtmd vpnd in.asessiond in.msd mpdaemon pepd in.acapd wsdnsd in.emaild.smtp rad in.geod in.emaild.pop3 in.pingd pdpd fwd topod cprid msgd cpd
CPU 2: fw_3 (active)
lpd core_uploader cprid usrchkd rtmd vpnd in.asessiond in.msd mpdaemon pepd in.acapd wsdnsd in.emaild.smtp rad in.geod in.emaild.pop3 in.pingd pdpd fwd topod cprid msgd cpd
CPU 3: fw_1 (active)
lpd core_uploader cprid usrchkd rtmd vpnd in.asessiond in.msd mpdaemon pepd in.acapd wsdnsd in.emaild.smtp rad in.geod in.emaild.pop3 in.pingd pdpd fwd topod cprid msgd cpd
CPU 4:
CPU 5: fw_4 (active)
lpd core_uploader cprid usrchkd rtmd vpnd in.asessiond in.msd mpdaemon pepd in.acapd wsdnsd in.emaild.smtp rad in.geod in.emaild.pop3 in.pingd pdpd fwd topod cprid msgd cpd
CPU 6: fw_2 (active)
lpd core_uploader cprid usrchkd rtmd vpnd in.asessiond in.msd mpdaemon pepd in.acapd wsdnsd in.emaild.smtp rad in.geod in.emaild.pop3 in.pingd pdpd fwd topod cprid msgd cpd
CPU 7: fw_0 (active)
lpd core_uploader cprid usrchkd rtmd vpnd in.asessiond in.msd mpdaemon pepd in.acapd wsdnsd in.emaild.smtp rad in.geod in.emaild.pop3 in.pingd pdpd fwd topod cprid msgd cpd
All:
Interface Sync: has multi queue enabled
Interface Mgmt: has multi queue enabled
Interface eth1-01: has multi queue enabled
Interface eth1-03: has multi queue enabled
Interface eth1-04: has multi queue enabled
+-----------------------------------------------------------------------------+
| Command #5: netstat -ni |
| |
| Check for : RX/TX errors |
| RX-DRP % should be <0.1% calculated by (RX-DRP/RX-OK)*100 |
| TX-ERR might indicate Fast Ethernet/100Mbps Duplex Mismatch |
| |
| Chapter 2: Layers 1&2 Performance Optimization |
| Page 28-35 |
| |
| Chapter 7: CoreXL Tuning |
| Page 204 |
| Page 206 (Network Buffering Misses) |
+-----------------------------------------------------------------------------+
| Output: |
Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
Mgmt 1500 0 0 0 0 0 0 0 0 0 BMU
Sync 1500 0 329575016 0 0 0 628024755 0 0 0 BMRU
bond0 1500 0 26631989142 0 0 0 60538593213 0 0 0 BMmRU
bond0.90 1500 0 873969112 0 0 0 2268163407 0 0 0 BMRU
bond0.255 1500 0 533561833 0 0 0 1474327702 0 0 0 BMRU
bond0.259 1500 0 2280983440 0 0 0 5772005086 0 0 0 BMRU
bond0.277 1500 0 106537 0 0 0 554906 0 0 0 BMRU
bond0.409 1500 0 18550183 0 0 0 10936491952 0 0 0 BMRU
bond0.418 1500 0 488310780 0 0 0 1286864766 0 0 0 BMRU
bond0.497 1500 0 7008872 0 0 0 6979566 0 0 0 BMRU
bond0.504 1500 0 10359 0 0 0 41537 0 0 0 BMRU
bond0.530 1500 0 7263047939 0 0 0 12582478714 0 0 0 BMRU
bond0.560 1500 0 41232015 0 0 0 77213221 0 0 0 BMRU
bond0.561 1500 0 77216786 0 0 0 112916427 0 0 0 BMRU
bond0.586 1500 0 15034044946 0 0 0 26010983741 0 0 0 BMRU
bond0.700 1500 0 4000190 0 0 0 2931603 0 0 0 BMRU
bond0.2053 1500 0 9745189 0 0 0 6440514 0 0 0 BMRU
eth1-01 1500 0 60293754384 0 0 0 27315239367 0 0 0 ABMRU
eth1-03 1500 0 14273332500 0 0 0 31712433868 0 0 0 BMsRU
eth1-04 1500 0 12358585857 0 0 0 28826105847 0 0 0 BMsRU
lo 65536 0 42734351 0 0 0 42734351 0 0 0 LMdNRU
vpnt10 1500 0 0 0 0 0 2854 0 0 0 MOPRU
vpnt11 1500 0 0 0 0 0 0 0 0 0 MOPRU
interface eth1-01: There were no RX drops in the past 0.5 seconds
interface eth1-01 rx_missed_errors : 0
interface eth1-01 rx_fifo_errors : 0
interface eth1-01 rx_no_buffer_count: 0
interface eth1-03: There were no RX drops in the past 0.5 seconds
interface eth1-03 rx_missed_errors : 0
interface eth1-03 rx_fifo_errors : 0
interface eth1-03 rx_no_buffer_count: 0
interface eth1-04: There were no RX drops in the past 0.5 seconds
interface eth1-04 rx_missed_errors : 0
interface eth1-04 rx_fifo_errors : 0
interface eth1-04 rx_no_buffer_count: 0
+-----------------------------------------------------------------------------+
| Command #6: fw ctl multik stat |
| |
| Check for : Large # of conns on Worker 0 - IPSec VPN/VoIP? |
| Large imbalance of connections on a single or multiple Workers |
| |
| Chapter 7: CoreXL Tuning |
| Page 241 |
| |
| Chapter 8: CoreXL VPN Optimization |
| Page 256 |
+-----------------------------------------------------------------------------+
| Output: |
ID | Active | CPU | Connections | Peak
-----------------------------------------------
0 | Yes | 7 | 8953 | 14823
1 | Yes | 3 | 9709 | 16804
2 | Yes | 6 | 9519 | 15751
3 | Yes | 2 | 9194 | 16090
4 | Yes | 5 | 9651 | 15266
5 | Yes | 1 | 9506 | 15967
+-----------------------------------------------------------------------------+
| Command #7: cpstat os -f multi_cpu -o 1 -c 5 |
| |
| Check for : High SND/IRQ Core Utilization |
| High Firewall Worker Core Utilization |
| |
| Chapter 6: CoreXL & Multi-Queue |
| Page 173 |
+-----------------------------------------------------------------------------+
| Output: |
Processors load
---------------------------------------------------------------------------------
|CPU#|User Time(%)|System Time(%)|Idle Time(%)|Usage(%)|Run queue|Interrupts/sec|
---------------------------------------------------------------------------------
| 1| 0| 15| 85| 15| ?| 1208992|
| 2| 7| 56| 37| 63| ?| 1208993|
| 3| 7| 53| 40| 60| ?| 1208993|
| 4| 6| 57| 37| 63| ?| 1208993|
| 5| 0| 16| 84| 16| ?| 1208992|
| 6| 5| 59| 36| 64| ?| 1208991|
| 7| 5| 65| 30| 70| ?| 1208992|
| 8| 6| 60| 35| 65| ?| 1208974|
---------------------------------------------------------------------------------
Processors load
---------------------------------------------------------------------------------
|CPU#|User Time(%)|System Time(%)|Idle Time(%)|Usage(%)|Run queue|Interrupts/sec|
---------------------------------------------------------------------------------
| 1| 0| 15| 85| 15| ?| 1208992|
| 2| 7| 56| 37| 63| ?| 1208993|
| 3| 7| 53| 40| 60| ?| 1208993|
| 4| 6| 57| 37| 63| ?| 1208993|
| 5| 0| 16| 84| 16| ?| 1208992|
| 6| 5| 59| 36| 64| ?| 1208991|
| 7| 5| 65| 30| 70| ?| 1208992|
| 8| 6| 60| 35| 65| ?| 1208974|
---------------------------------------------------------------------------------
Processors load
---------------------------------------------------------------------------------
|CPU#|User Time(%)|System Time(%)|Idle Time(%)|Usage(%)|Run queue|Interrupts/sec|
---------------------------------------------------------------------------------
| 1| 0| 15| 85| 15| ?| 5078253|
| 2| 4| 56| 40| 60| ?| 5078256|
| 3| 4| 63| 33| 67| ?| 5078258|
| 4| 5| 52| 43| 57| ?| 5078255|
| 5| 0| 16| 84| 16| ?| 5078253|
| 6| 4| 50| 45| 55| ?| 5078249|
| 7| 2| 61| 37| 63| ?| 5078250|
| 8| 2| 59| 40| 60| ?| 5078180|
---------------------------------------------------------------------------------
Processors load
---------------------------------------------------------------------------------
|CPU#|User Time(%)|System Time(%)|Idle Time(%)|Usage(%)|Run queue|Interrupts/sec|
---------------------------------------------------------------------------------
| 1| 0| 15| 85| 15| ?| 5078253|
| 2| 4| 56| 40| 60| ?| 5078256|
| 3| 4| 63| 33| 67| ?| 5078258|
| 4| 5| 52| 43| 57| ?| 5078255|
| 5| 0| 16| 84| 16| ?| 5078253|
| 6| 4| 50| 45| 55| ?| 5078249|
| 7| 2| 61| 37| 63| ?| 5078250|
| 8| 2| 59| 40| 60| ?| 5078180|
---------------------------------------------------------------------------------
Processors load
---------------------------------------------------------------------------------
|CPU#|User Time(%)|System Time(%)|Idle Time(%)|Usage(%)|Run queue|Interrupts/sec|
---------------------------------------------------------------------------------
| 1| 0| 16| 84| 16| ?| 235636|
| 2| 5| 65| 30| 70| ?| 235644|
| 3| 7| 60| 33| 67| ?| 235642|
| 4| 6| 59| 35| 65| ?| 235642|
| 5| 0| 15| 85| 15| ?| 235641|
| 6| 7| 57| 37| 63| ?| 117822|
| 7| 5| 60| 35| 65| ?| 235644|
| 8| 5| 61| 34| 66| ?| 235640|
---------------------------------------------------------------------------------
+-----------------------------------------------------------------------------+
| Thanks for using s7pac |
+-----------------------------------------------------------------------------+
You can also check my other post about performance:
https://community.checkpoint.com/t5/General-Topics/VPN-disturbances/m-p/226354#M37793
usnig the command: fwaccel templates -R
fwaccel templates -R
Matched connections not allowed to use templates:
% Prevention : 1.281%
Reason Count Reason Prevented From Matched %
Non-Syn/Empty First Packet |267373 |0.802 %
Src/dst IP Blacklisted |159739 |0.479 %
Dynamic VPN Connection |2 |0.000 %
--------------------
Connections failed to create templates:
% Fail to Create : 78.011%
Reason Count Reason Fail To Create %
NON TCP/UDP PROTO |4714670 |1.098 %
Conn Not Accelerated |9176797 |2.137 %
NAT Disallowed Conn |47721578 |11.114 %
DHCP Check Feature Isn't Supported Or Disabled|10 |0.000 %
General Error |986319 |0.230 %
Malicious Destination IP Detected |270268 |0.063 %
Prevented By Policy Rules |272080388 |63.368 %
Prevented By Policy Rules is decreasing steadily but very slowly, about 2% per day
same is true for "%Fail to Create" also decreasing steadily but very slowly
So, i wonder why Accelerated conns/Total conns still 0%