centos7 tcp内核参数优化 发表于 2019-02-05 | 分类于 linux , centos7 查看系统tcp参数 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113[root@centos7cz ~]# sysctl -a|grep ipv4|grep -i --color tcpnet.ipv4.tcp_abort_on_overflow = 0net.ipv4.tcp_adv_win_scale = 1net.ipv4.tcp_allowed_congestion_control = cubic renonet.ipv4.tcp_app_win = 31net.ipv4.tcp_autocorking = 1net.ipv4.tcp_available_congestion_control = cubic renonet.ipv4.tcp_base_mss = 512net.ipv4.tcp_challenge_ack_limit = 1000net.ipv4.tcp_congestion_control = cubicnet.ipv4.tcp_dsack = 1net.ipv4.tcp_early_retrans = 3net.ipv4.tcp_ecn = 2net.ipv4.tcp_fack = 1net.ipv4.tcp_fastopen = 0net.ipv4.tcp_fastopen_key = 00000000-00000000-00000000-00000000net.ipv4.tcp_fin_timeout = 60net.ipv4.tcp_frto = 2net.ipv4.tcp_invalid_ratelimit = 500net.ipv4.tcp_keepalive_intvl = 75net.ipv4.tcp_keepalive_probes = 9net.ipv4.tcp_keepalive_time = 7200net.ipv4.tcp_limit_output_bytes = 262144net.ipv4.tcp_low_latency = 0net.ipv4.tcp_max_orphans = 32768net.ipv4.tcp_max_ssthresh = 0net.ipv4.tcp_max_syn_backlog = 256net.ipv4.tcp_max_tw_buckets = 32768net.ipv4.tcp_mem = 184824 246434 369648net.ipv4.tcp_min_tso_segs = 2net.ipv4.tcp_moderate_rcvbuf = 1net.ipv4.tcp_mtu_probing = 0net.ipv4.tcp_no_metrics_save = 0net.ipv4.tcp_notsent_lowat = -1net.ipv4.tcp_orphan_retries = 0net.ipv4.tcp_reordering = 3net.ipv4.tcp_retrans_collapse = 1net.ipv4.tcp_retries1 = 3net.ipv4.tcp_retries2 = 15net.ipv4.tcp_rfc1337 = 0net.ipv4.tcp_rmem = 4096 87380 6291456net.ipv4.tcp_sack = 1net.ipv4.tcp_slow_start_after_idle = 1net.ipv4.tcp_stdurg = 0net.ipv4.tcp_syn_retries = 6net.ipv4.tcp_synack_retries = 5net.ipv4.tcp_syncookies = 1net.ipv4.tcp_thin_dupack = 0net.ipv4.tcp_thin_linear_timeouts = 0net.ipv4.tcp_timestamps = 1net.ipv4.tcp_tso_win_divisor = 3net.ipv4.tcp_tw_recycle = 0net.ipv4.tcp_tw_reuse = 0net.ipv4.tcp_window_scaling = 1net.ipv4.tcp_wmem = 4096 16384 4194304net.ipv4.tcp_workaround_signed_windows = 0[root@centos7cz ~]# sysctl -a|grep ipv4|grep -i --color tcpnet.ipv4.tcp_abort_on_overflow = 0net.ipv4.tcp_adv_win_scale = 1net.ipv4.tcp_allowed_congestion_control = cubic renonet.ipv4.tcp_app_win = 31net.ipv4.tcp_autocorking = 1net.ipv4.tcp_available_congestion_control = cubic renonet.ipv4.tcp_base_mss = 512net.ipv4.tcp_challenge_ack_limit = 1000net.ipv4.tcp_congestion_control = cubicnet.ipv4.tcp_dsack = 1net.ipv4.tcp_early_retrans = 3net.ipv4.tcp_ecn = 2net.ipv4.tcp_fack = 1net.ipv4.tcp_fastopen = 0net.ipv4.tcp_fastopen_key = 00000000-00000000-00000000-00000000net.ipv4.tcp_fin_timeout = 60net.ipv4.tcp_frto = 2net.ipv4.tcp_invalid_ratelimit = 500net.ipv4.tcp_keepalive_intvl = 75net.ipv4.tcp_keepalive_probes = 9net.ipv4.tcp_keepalive_time = 7200net.ipv4.tcp_limit_output_bytes = 262144net.ipv4.tcp_low_latency = 0net.ipv4.tcp_max_orphans = 32768net.ipv4.tcp_max_ssthresh = 0net.ipv4.tcp_max_syn_backlog = 256net.ipv4.tcp_max_tw_buckets = 32768net.ipv4.tcp_mem = 184824 246434 369648net.ipv4.tcp_min_tso_segs = 2net.ipv4.tcp_moderate_rcvbuf = 1net.ipv4.tcp_mtu_probing = 0net.ipv4.tcp_no_metrics_save = 0net.ipv4.tcp_notsent_lowat = -1net.ipv4.tcp_orphan_retries = 0net.ipv4.tcp_reordering = 3net.ipv4.tcp_retrans_collapse = 1net.ipv4.tcp_retries1 = 3net.ipv4.tcp_retries2 = 15net.ipv4.tcp_rfc1337 = 0net.ipv4.tcp_rmem = 4096 87380 6291456net.ipv4.tcp_sack = 1net.ipv4.tcp_slow_start_after_idle = 1net.ipv4.tcp_stdurg = 0net.ipv4.tcp_syn_retries = 6net.ipv4.tcp_synack_retries = 5net.ipv4.tcp_syncookies = 1net.ipv4.tcp_thin_dupack = 0net.ipv4.tcp_thin_linear_timeouts = 0net.ipv4.tcp_timestamps = 1net.ipv4.tcp_tso_win_divisor = 3net.ipv4.tcp_tw_recycle = 0net.ipv4.tcp_tw_reuse = 0net.ipv4.tcp_window_scaling = 1net.ipv4.tcp_wmem = 4096 16384 4194304net.ipv4.tcp_workaround_signed_windows = 0[root@centos7cz ~]#