diff options
author | Eric Dumazet <edumazet@google.com> | 2014-12-04 19:13:23 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-09 14:58:23 -0500 |
commit | 6e3a8a937c2f86ee0b2d354808fc026a143b4518 (patch) | |
tree | f787c8960845386d7950fa04d704224d94c4cc38 /include/uapi/linux/snmp.h | |
parent | 5cccc702fd54e5c3dc5ee16a129770aae79ae60b (diff) |
tcp_cubic: add SNMP counters to track how effective is Hystart
When deploying FQ pacing, one thing we noticed is that CUBIC Hystart
triggers too soon.
Having SNMP counters to have an idea of how often the various Hystart
methods trigger is useful prior to any modifications.
This patch adds SNMP counters tracking, how many time "ack train" or
"Delay" based Hystart triggers, and cumulative sum of cwnd at the time
Hystart decided to end SS (Slow Start)
myhost:~# nstat -a | grep Hystart
TcpExtTCPHystartTrainDetect 9 0.0
TcpExtTCPHystartTrainCwnd 20650 0.0
TcpExtTCPHystartDelayDetect 10 0.0
TcpExtTCPHystartDelayCwnd 360 0.0
->
Train detection was triggered 9 times, and average cwnd was
20650/9=2294,
Delay detection was triggered 10 times and average cwnd was 36
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/snmp.h')
-rw-r--r-- | include/uapi/linux/snmp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/snmp.h b/include/uapi/linux/snmp.h index 30f541b32895..b22224100011 100644 --- a/include/uapi/linux/snmp.h +++ b/include/uapi/linux/snmp.h | |||
@@ -266,6 +266,10 @@ enum | |||
266 | LINUX_MIB_TCPWANTZEROWINDOWADV, /* TCPWantZeroWindowAdv */ | 266 | LINUX_MIB_TCPWANTZEROWINDOWADV, /* TCPWantZeroWindowAdv */ |
267 | LINUX_MIB_TCPSYNRETRANS, /* TCPSynRetrans */ | 267 | LINUX_MIB_TCPSYNRETRANS, /* TCPSynRetrans */ |
268 | LINUX_MIB_TCPORIGDATASENT, /* TCPOrigDataSent */ | 268 | LINUX_MIB_TCPORIGDATASENT, /* TCPOrigDataSent */ |
269 | LINUX_MIB_TCPHYSTARTTRAINDETECT, /* TCPHystartTrainDetect */ | ||
270 | LINUX_MIB_TCPHYSTARTTRAINCWND, /* TCPHystartTrainCwnd */ | ||
271 | LINUX_MIB_TCPHYSTARTDELAYDETECT, /* TCPHystartDelayDetect */ | ||
272 | LINUX_MIB_TCPHYSTARTDELAYCWND, /* TCPHystartDelayCwnd */ | ||
269 | __LINUX_MIB_MAX | 273 | __LINUX_MIB_MAX |
270 | }; | 274 | }; |
271 | 275 | ||